javax.swing.plaf.basic
public class BasicColorChooserUI extends ColorChooserUI
Modifier and Type | Class and Description |
---|---|
class |
BasicColorChooserUI.PropertyHandler
This helper class handles property changes from the JColorChooser.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BasicColorChooserUI()
Creates a new BasicColorChooserUI object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
protected AbstractColorChooserPanel[] defaultChoosers
protected ChangeListener previewListener
protected PropertyChangeListener propertyChangeListener
protected JColorChooser chooser
public BasicColorChooserUI()
public static ComponentUI createUI(JComponent c)
c
- The JComponent to create an UI for.protected AbstractColorChooserPanel[] createDefaultChoosers()
public void installUI(JComponent c)
installUI
in class ComponentUI
c
- The JComponent to install this UI for.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
- The JComponent that will have this UI removed.ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected void uninstallDefaultChoosers()
protected void installPreviewPanel()
protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected PropertyChangeListener createPropertyChangeListener()
protected void uninstallListeners()