Class UIColorDialog
public class UIColorDialog extends UIDialog
{
// Constructors
public UIColorDialog(UIFrame parent);
// Methods
public Color getColor();
public FxColor getFxColor();
public boolean handleEvent(Event event);
public void setColor(Color color);
public void setFxColor(FxColor fxColor);
}
This class displays a dialog window from which the user can select a color.
A UIColorDialog object is a modal dialog window, engaged by calling the show method. The application will not let the user proceed until a color is chosen.
Also see com.ms.ui.UIDialog.show
UIComponent
|
+--UIContainer
|
+--UIStateContainer
|
+--UIPanel
|
+--UIRoot
|
+--UIWindow
|
+--UIDialog
|
+--UIColorDialog
public UIColorDialog(UIFrame parent);
Creates a color dialog for picking a color.
Parameter | Description |
parent
| The owner of the dialog.
|
public Color getColor();
Gets the selected color of this color dialog.
Return Value:
Returns the currently selected color of this color dialog; returns null if no color is selected.
See Also: getFxColor, setColor
public FxColor getFxColor();
Gets the selected extended color of this color dialog.
Return Value:
Returns the currently selected color of this color dialog; returns null if no color is selected.
See Also: getColor, setFxColor
public boolean handleEvent(Event event);
Responds to events occurring within the control.
Return Value:
Returns true if the event was handled; otherwise, returns false.
Parameter | Description |
event
| The event.
|
Overrides:
handleEvent(Event) in UIDialog.
public void setColor(Color color);
Sets the selected color for this dialog.
- Comments:
- This color becomes the default color when the color dialog window is first shown. If no color is specified, the default initial color will be white.
Return Value:
No return value.
Parameter | Description |
color
| The color being set.
|
See Also: setFxColor, getColor
public void setFxColor(FxColor fxColor);
Sets the selected color for this color dialog to be the extended color.
- Comments:
- This color becomes the default color when the color dialog window is first shown. If no color is specified, the default initial color will be white.
Return Value:
No return value.
Parameter | Description |
color
| The color being set.
|
See Also: setColor, getFxColor