public static class ColorTable.ColorChooserDialog
extends java.lang.Object
Each public method emulates an option of the statement. They do a quick validation. If successful they return a reference to this object to allow other method to be chained.
The execute()
method does the final checks, send the request with gathered options
to client, awaits the user to interact and finally sets up the response and confirmation
variable update
.
Modifier and Type | Field and Description |
---|---|
private int |
colorRef
The (index of the) selected color that is to be selected by user.
|
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.
|
Modifier | Constructor and Description |
---|---|
private |
ColorChooserDialog(int64 colRef)
The constructor.
|
private |
ColorChooserDialog(long colRef)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Instruct the client to show the
Color Chooser dialog using the configured options
using previously chained methods. |
ColorTable.ColorChooserDialog |
setWindow(handle window)
Configures the file dialog to be created as child of a certain windows.
|
ColorTable.ColorChooserDialog |
update(logical update)
Configures the variable to be set when the file selection dialog is closed.
|
private int colorRef
private logical toUpdate
private handle inWindow
private ColorChooserDialog(int64 colRef)
execute
.colRef
- The (index of the) selected color that is to be selected by user.private ColorChooserDialog(long colRef)
execute
.colRef
- The (index of the) selected color that is to be selected by user.public ColorTable.ColorChooserDialog setWindow(handle window)
window
- A handle to a window that will be the parent of the file dialog.FileDialog
. Used for chaining.inWindow
public ColorTable.ColorChooserDialog update(logical update)
update
- A variable that will hold the status of the dialog.FileDialog
. Used for chaining.toUpdate
public void execute()
Color Chooser
dialog using the configured options
using previously chained methods. When the client returns, update the toUpdate
variable, if set, to let the programmer whether the client accepted the dialog or
rejected it.