javax.swing.plaf.basic
Class BasicColorChooserUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.ColorChooserUI sample code for javax.swing.plaf.ColorChooserUI definition code for javax.swing.plaf.ColorChooserUI 
          extended by javax.swing.plaf.basic.BasicColorChooserUI

public class BasicColorChooserUI
extends ColorChooserUI sample code for javax.swing.plaf.ColorChooserUI definition code for javax.swing.plaf.ColorChooserUI

Provides the basic look and feel for a JColorChooser.


Nested Class Summary
 class BasicColorChooserUI.PropertyHandler sample code for javax.swing.plaf.basic.BasicColorChooserUI.PropertyHandler definition code for javax.swing.plaf.basic.BasicColorChooserUI.PropertyHandler
          This inner class is marked "public" due to a compiler bug.
 
Field Summary
protected  JColorChooser sample code for javax.swing.JColorChooser definition code for javax.swing.JColorChooser chooser sample code for javax.swing.plaf.basic.BasicColorChooserUI.chooser definition code for javax.swing.plaf.basic.BasicColorChooserUI.chooser
          JColorChooser this BasicColorChooserUI is installed on.
protected  AbstractColorChooserPanel sample code for javax.swing.colorchooser.AbstractColorChooserPanel definition code for javax.swing.colorchooser.AbstractColorChooserPanel [] defaultChoosers sample code for javax.swing.plaf.basic.BasicColorChooserUI.defaultChoosers definition code for javax.swing.plaf.basic.BasicColorChooserUI.defaultChoosers
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener previewListener sample code for javax.swing.plaf.basic.BasicColorChooserUI.previewListener definition code for javax.swing.plaf.basic.BasicColorChooserUI.previewListener
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener propertyChangeListener sample code for javax.swing.plaf.basic.BasicColorChooserUI.propertyChangeListener definition code for javax.swing.plaf.basic.BasicColorChooserUI.propertyChangeListener
           
 
Constructor Summary
BasicColorChooserUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.BasicColorChooserUI() definition code for javax.swing.plaf.basic.BasicColorChooserUI.BasicColorChooserUI() ()
           
 
Method Summary
protected  AbstractColorChooserPanel sample code for javax.swing.colorchooser.AbstractColorChooserPanel definition code for javax.swing.colorchooser.AbstractColorChooserPanel [] createDefaultChoosers sample code for javax.swing.plaf.basic.BasicColorChooserUI.createDefaultChoosers() definition code for javax.swing.plaf.basic.BasicColorChooserUI.createDefaultChoosers() ()
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicColorChooserUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicColorChooserUI.createPropertyChangeListener() ()
           
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicColorChooserUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
           
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicColorChooserUI.installDefaults() definition code for javax.swing.plaf.basic.BasicColorChooserUI.installDefaults() ()
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicColorChooserUI.installListeners() definition code for javax.swing.plaf.basic.BasicColorChooserUI.installListeners() ()
           
protected  void installPreviewPanel sample code for javax.swing.plaf.basic.BasicColorChooserUI.installPreviewPanel() definition code for javax.swing.plaf.basic.BasicColorChooserUI.installPreviewPanel() ()
           
 void installUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicColorChooserUI.installUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Configures the specified component appropriate for the look and feel.
protected  void uninstallDefaultChoosers sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaultChoosers() definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaultChoosers() ()
           
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaults() ()
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallListeners() ()
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) , getMaximumSize sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) , getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) , getPreferredSize sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) , paint sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) , update sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

chooser sample code for javax.swing.plaf.basic.BasicColorChooserUI.chooser

protected JColorChooser sample code for javax.swing.JColorChooser definition code for javax.swing.JColorChooser  chooser
JColorChooser this BasicColorChooserUI is installed on.

Since:
1.5

defaultChoosers sample code for javax.swing.plaf.basic.BasicColorChooserUI.defaultChoosers

protected AbstractColorChooserPanel sample code for javax.swing.colorchooser.AbstractColorChooserPanel definition code for javax.swing.colorchooser.AbstractColorChooserPanel [] defaultChoosers

previewListener sample code for javax.swing.plaf.basic.BasicColorChooserUI.previewListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  previewListener

propertyChangeListener sample code for javax.swing.plaf.basic.BasicColorChooserUI.propertyChangeListener

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  propertyChangeListener
Constructor Detail

BasicColorChooserUI sample code for javax.swing.plaf.basic.BasicColorChooserUI() definition code for javax.swing.plaf.basic.BasicColorChooserUI()

public BasicColorChooserUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicColorChooserUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)

createDefaultChoosers sample code for javax.swing.plaf.basic.BasicColorChooserUI.createDefaultChoosers() definition code for javax.swing.plaf.basic.BasicColorChooserUI.createDefaultChoosers()

protected AbstractColorChooserPanel sample code for javax.swing.colorchooser.AbstractColorChooserPanel definition code for javax.swing.colorchooser.AbstractColorChooserPanel [] createDefaultChoosers()

uninstallDefaultChoosers sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaultChoosers() definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaultChoosers()

protected void uninstallDefaultChoosers()

installUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicColorChooserUI.installUI(javax.swing.JComponent)

public void installUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Overrides:
installUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

uninstallUI sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallUI(javax.swing.JComponent)

public void uninstallUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Overrides:
uninstallUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

installPreviewPanel sample code for javax.swing.plaf.basic.BasicColorChooserUI.installPreviewPanel() definition code for javax.swing.plaf.basic.BasicColorChooserUI.installPreviewPanel()

protected void installPreviewPanel()

installDefaults sample code for javax.swing.plaf.basic.BasicColorChooserUI.installDefaults() definition code for javax.swing.plaf.basic.BasicColorChooserUI.installDefaults()

protected void installDefaults()

uninstallDefaults sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallDefaults()

protected void uninstallDefaults()

installListeners sample code for javax.swing.plaf.basic.BasicColorChooserUI.installListeners() definition code for javax.swing.plaf.basic.BasicColorChooserUI.installListeners()

protected void installListeners()

createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicColorChooserUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicColorChooserUI.createPropertyChangeListener()

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createPropertyChangeListener()

uninstallListeners sample code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicColorChooserUI.uninstallListeners()

protected void uninstallListeners()