Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.ui   Previous This
Package
Next

 


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

Constructors

UIColorDialog

public UIColorDialog(UIFrame parent);

Creates a color dialog for picking a color.

ParameterDescription
parent The owner of the dialog.

Methods

getColor

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

getFxColor

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

handleEvent

public boolean handleEvent(Event event);

Responds to events occurring within the control.

Return Value:

Returns true if the event was handled; otherwise, returns false.

ParameterDescription
event The event.

Overrides:

handleEvent(Event) in UIDialog.

setColor

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.

ParameterDescription
color The color being set.

See Also: setFxColor, getColor

setFxColor

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.

ParameterDescription
color The color being set.

See Also: setColor, getFxColor

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.