borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
ColorChooserDialog class
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----java.awt.Window
+----java.awt.Dialog
+----borland.jbcl.control.ButtonDialog
+----borland.jbcl.control.ColorChooserDialog
About the ColorChooserDialog class
Variables Constructors Properties Methods Event Listeners
Implements MenuContainer, ActionListener, KeyListener, ImageObserver, Serializable, EventListener
This component is a dialog box that contains controls for specifying a color. This component is the same as the ColorChooserPanel component, but this component is used in the UI Designer, whereas ColorChooserPanel is designed to be added to your own custom dialog or frame.
You need to be able to instantiate a Java Bean without setting any of its properties; you need a default constructor. ColorChooserDialog needs a parent when it is instantiated, so it can't be a Java Bean. super() must be called first.
After dropping a ColorChooserPanel onto the Component Tree or UI Designer, you generally need to set the frame property to "this". Otherwise, the dialog will not appear.
ColorChooserDialog variables
Variables implemented in this class
ColorChooserDialog constructors
ColorChooserDialog properties
*Read-only properties **Write-only properties
Properties implemented in this class
ColorChooserDialog methods
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- contains(int, int)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processFocusEvent(java.awt.event.FocusEvent)
- processKeyEvent(java.awt.event.KeyEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- repaint(long, int, int, int, int)
- requestFocus()
- reshape(int, int, int, int)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show(boolean)
- size()
- toString()
- transferFocus()
- update(java.awt.Graphics)
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paint(java.awt.Graphics)
- paintComponents(java.awt.Graphics)
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- removeNotify()
- validate()
- validateTree()
ColorChooserDialog event listeners
ColorChooserDialog variables
panel
protected ColorChooserPanel panel
The ColorChooserPanel object to show in this dialog box. Used to control the color of the panel.
ColorChooserDialog constructors
ColorChooserDialog(java.awt.Frame)
public ColorChooserDialog(java.awt.Frame frame)
Constructs a color chooser dialog box with the specified parent frame.
Parameters:
- frame
- The parent frame for the dialog box.
See also: java.awt.Frame
ColorChooserDialog(java.awt.Frame, java.lang.String)
public ColorChooserDialog(java.awt.Frame frame, java.lang.String title)
Constructs a color chooser dialog box with the specified parent frame.
Parameters:
- frame
- The parent frame for the dialog box.
- title
- The text that appears in the title bar of the dialog box.
See also: java.awt.Frame
ColorChooserDialog(java.awt.Frame, java.lang.String, java.awt.Color)
public ColorChooserDialog(java.awt.Frame frame, java.lang.String title, java.awt.Color value)
Constructs a color chooser dialog box.
Parameters:
- frame
- The parent frame for the dialog box.
- title
- The text that appears in the title bar of the dialog box.
- value
- The initially selected color.
See also: java.awt.Frame, java.lang.String, java.awt.Color
ColorChooserDialog properties
value
public Color getValue()
public void setValue(java.awt.Color value)
The value of the color currently selected in the dialog box. See also: java.awt.Color
ColorChooserDialog event listeners
This class is a source for the following event sets.
For information on the standard AWT event sets, see Standard Java events.
action
public synchronized void addActionListener(java.awt.event.ActionListener l)
public synchronized void removeActionListener(java.awt.event.ActionListener l)
component
public synchronized void addComponentListener(java.awt.event.ComponentListener l)
public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
container
public synchronized void addContainerListener(java.awt.event.ContainerListener l)
public void removeContainerListener(java.awt.event.ContainerListener l)
focus
public synchronized void addFocusListener(java.awt.event.FocusListener l)
public synchronized void removeFocusListener(java.awt.event.FocusListener l)
key
public synchronized void addKeyListener(java.awt.event.KeyListener l)
public synchronized void removeKeyListener(java.awt.event.KeyListener l)
mouse
public synchronized void addMouseListener(java.awt.event.MouseListener l)
public synchronized void removeMouseListener(java.awt.event.MouseListener l)
mouseMotion
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
window
public synchronized void addWindowListener(java.awt.event.WindowListener l)
public synchronized void removeWindowListener(java.awt.event.WindowListener l)