public static class FontTable.FontChooserDialog
extends java.lang.Object
SYSTEM-DIALOG FONT
statement.
It collects all options through dedicated methods and store them as an internal
configuration. When execute()
is called, a dialog box is displayed that allows the
user to select and associate a system font with the specified font number.
The SYSTEM-DIALOG FONT
statement provides a dialog box appropriate to the graphical
environment in which it runs.Modifier and Type | Field and Description |
---|---|
private boolean |
ansiOnly
Flag for allowing the font dialog to provide only fonts that contain character
representations and that do not include graphic symbols.
|
private boolean |
fixedOnly
Flag for allowing the font dialog to provide only mono-spaced fonts.
|
private int |
fontRef
The font reference to be associated by the dialog with the system font the user selects
in the dialog.
|
private handle |
inWindow
Specifies the window from which the dialog box is displayed.
|
private logical |
toUpdate
A logical variable to return the status of the user’s dialog interaction.
|
Constructor and Description |
---|
FontChooserDialog(int64 fontRef)
Constructor.
|
FontChooserDialog(long fontRef)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FontTable.FontChooserDialog |
ansiOnly()
Force the dialog to provide only fonts that contain character representations and that
do not include graphic symbols.
|
void |
execute()
Validates the options and tells the client to create the dialog according to options
configured and then interpret the results.
|
FontTable.FontChooserDialog |
fixedOnly()
Force the dialog to provide only mono-spaced fonts.
|
FontTable.FontChooserDialog |
setMaxSize(long maxVal)
Has no effect; supported only for backward compatibility.
|
FontTable.FontChooserDialog |
setMaxSize(NumberType maxVal)
Has no effect; supported only for backward compatibility.
|
FontTable.FontChooserDialog |
setMinSize(long minVal)
Has no effect; supported only for backward compatibility.
|
FontTable.FontChooserDialog |
setMinSize(NumberType minVal)
Has no effect; supported only for backward compatibility.
|
FontTable.FontChooserDialog |
setWindow(handle window)
Configures the dialog to be created as child of a certain windows.
|
FontTable.FontChooserDialog |
update(logical update)
Configures the variable to be set when the selection dialog is closed.
|
private int fontRef
private logical toUpdate
private handle inWindow
private boolean ansiOnly
private boolean fixedOnly
public FontChooserDialog(int64 fontRef)
fontRef
- The index of font to be selected by user.fontRef
public FontChooserDialog(long fontRef)
fontRef
- The index of font to be selected by user.fontRef
public FontTable.FontChooserDialog ansiOnly()
FontChooserDialog
. Used for chaining.ansiOnly
public FontTable.FontChooserDialog fixedOnly()
FontChooserDialog
. Used for chaining.fixedOnly
public FontTable.FontChooserDialog setMaxSize(NumberType maxVal)
maxVal
- Ignored.FontChooserDialog
. Used for chaining.public FontTable.FontChooserDialog setMaxSize(long maxVal)
maxVal
- Ignored.FontChooserDialog
. Used for chaining.public FontTable.FontChooserDialog setMinSize(NumberType minVal)
minVal
- Ignored.FontChooserDialog
. Used for chaining.public FontTable.FontChooserDialog setMinSize(long minVal)
minVal
- Ignored.FontChooserDialog
. Used for chaining.public FontTable.FontChooserDialog update(logical update)
update
- A variable that will hold the status of the dialog.FontChooserDialog
. Used for chaining.toUpdate
public FontTable.FontChooserDialog setWindow(handle window)
window
- A handle to a window that will be the parent of the dialog.FontChooserDialog
. Used for chaining.inWindow
public void execute()
SYSTEM-DIALOG FONT
statement provides
a dialog box appropriate to the graphical environment in which it runs.
This method must be the last in a chaining.