|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ColorChooserUI
javax.swing.plaf.basic.BasicColorChooserUI
public class BasicColorChooserUI
This is the UI Class for the JColorChooser in the Basic Look and Feel.
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. |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractColorChooserPanel[] defaultChoosers
protected ChangeListener previewListener
protected PropertyChangeListener propertyChangeListener
protected JColorChooser chooser
Constructor Detail |
---|
public BasicColorChooserUI()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |