Class ColorChooser
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ColorChooser

public class netscape.application.ColorChooser
    extends java.lang.Object
    implements netscape.application.Target,
               netscape.application.TextFieldOwner
{
    /* Constructors
     */
    public ColorChooser();

    /* Methods
     */
    public Color color();
    public View contentView();
    public void hide();
    public void performCommand(String, Object);
    public void setColor(Color);
    public void setWindow(Window);
    public void show();
    public void textEditingDidBegin(TextField);
    public void textEditingDidEnd(TextField, int, boolean);
    public boolean textEditingWillEnd(TextField, int, boolean);
    public void textWasModified(TextField);
    public Window window();
}
Object subclass creating a View containing controls for selecting a Color. A selected Color can be dragged from the ColorChooser into an accepting object within the Application. The ColorChooser can be added to the View hierarchy, or given a Window to display itself in, using the setWindow() method.
See Also:
showColorChooser

Constructors

ColorChooser

  public ColorChooser()
Constructs a ColorChooser.

Methods

show

  public void show()
If the ColorChooser is in a Window, makes the Window visible. You must have first set the ColorChooser's Window using its setWindow() method.
See Also:
showColorChooser

hide

  public void hide()
If the ColorChooser is in a Window, hides the Window.
See Also:
show

setColor

  public void setColor(Color aColor)
Sets the ColorChooser's current color.

color

  public Color color()
Returns the ColorChooser's current color.
See Also:
setColor

performCommand

  public void performCommand(String command,
                             Object data)
Performs the commands necessary for the ColorChooser to operate. You should never call this method.

textEditingDidBegin

  public void textEditingDidBegin(TextField textField)
Called when the user clicks in one of the ColorChooser's TextFields. You should never call this method.
See Also:
TextFieldOwner

textWasModified

  public void textWasModified(TextField textField)
Called when the user modifies one of the ColorChooser's TextFields. You should never call this method.
See Also:
TextFieldOwner

textEditingWillEnd

  public boolean textEditingWillEnd(TextField textField,
                                    int endCondition,
                                    boolean contentsChanged)
Called when the user starts editing one of the ColorChooser's TextFields. You should never call this method.
See Also:
TextFieldOwner

textEditingDidEnd

  public void textEditingDidEnd(TextField textField,
                                int endCondition,
                                boolean contentsChanged)
Called when the user edits one of the ColorChooser's TextFields. You should never call this method.
See Also:
TextFieldOwner

setWindow

  public void setWindow(Window aWindow)
Places the ColorChooser in aWindow. This method sizes the aWindow to the minimum size necessary to display the ColorChooser, as well as makes aWindow closable and sets its title.

window

  public Window window()
Returns the ColorChooser's Window.
See Also:
setWindow

contentView

  public View contentView()
Returns the ColorChooser's content View.

All Packages  Class Hierarchy  This Package  Previous  Next  Index