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
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
public void hide()
- If the ColorChooser is in a Window, hides the Window.
- See Also:
- show
public void setColor(Color aColor)
- Sets the ColorChooser's current color.
public Color color()
- Returns the ColorChooser's current color.
- See Also:
- setColor
public void performCommand(String command,
Object data)
- Performs the commands necessary for the ColorChooser to operate. You
should never call this method.
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
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
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
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
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.
public Window window()
- Returns the ColorChooser's Window.
- See Also:
- setWindow
public View contentView()
- Returns the ColorChooser's content View.
All Packages Class Hierarchy This Package Previous Next Index
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Oct 1997