javax.swing.plaf.basic
public class BasicColorChooserUI extends ColorChooserUI
Nested Class Summary | |
---|---|
class | BasicColorChooserUI.PropertyHandler
This helper class handles property changes from the JColorChooser. |
Field Summary | |
---|---|
protected JColorChooser | chooser
The JColorChooser this is installed on. |
protected AbstractColorChooserPanel[] | defaultChoosers An array of default choosers to use in the JColorChooser. |
protected ChangeListener | previewListener The listener for the preview panel. |
protected PropertyChangeListener | propertyChangeListener The PropertyChangeListener for the JColorChooser. |
Constructor Summary | |
---|---|
BasicColorChooserUI()
Creates a new BasicColorChooserUI object. |
Method Summary | |
---|---|
protected AbstractColorChooserPanel[] | createDefaultChoosers()
This method creates the default chooser panels for the JColorChooser.
|
protected PropertyChangeListener | createPropertyChangeListener()
This method creates the PropertyChangeListener used for listening to the
JColorChooser.
|
static ComponentUI | createUI(JComponent c)
This method creates a new UI Component for the given JComponent.
|
protected void | installDefaults()
This method installs the default properties given by the Basic Look and
Feel. |
protected void | installListeners()
This method installs any listeners required for this UI to function. |
protected void | installPreviewPanel()
This method installs the preview panel for the JColorChooser. |
void | installUI(JComponent c)
This method installs the UI Component for the given JComponent.
|
protected void | uninstallDefaultChoosers()
Uninstalls the default color choosers that have been installed by this UI. |
protected void | uninstallDefaults()
This method uninstalls the default properties given by the Basic Look and
Feel. |
protected void | uninstallListeners()
This method uninstalls any listeners that were previously installed by
the UI. |
void | uninstallUI(JComponent c)
This method uninstalls this UI for the given JComponent.
|
Returns: The default chooser panels.
Returns: A PropertyChangeListener.
Parameters: c The JComponent to create an UI for.
Returns: A new BasicColorChooserUI.
Parameters: c The JComponent to install this UI for.
Parameters: c The JComponent that will have this UI removed.