javax.swing.plaf.basic
Class BasicRootPaneUI

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.RootPaneUI sample code for javax.swing.plaf.RootPaneUI definition code for javax.swing.plaf.RootPaneUI 
          extended by javax.swing.plaf.basic.BasicRootPaneUI
All Implemented Interfaces:
PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener
Direct Known Subclasses:
MetalRootPaneUI sample code for javax.swing.plaf.metal.MetalRootPaneUI definition code for javax.swing.plaf.metal.MetalRootPaneUI

public class BasicRootPaneUI
extends RootPaneUI sample code for javax.swing.plaf.RootPaneUI definition code for javax.swing.plaf.RootPaneUI
implements PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener

Basic implementation of RootPaneUI, there is one shared between all JRootPane instances.


Constructor Summary
BasicRootPaneUI sample code for javax.swing.plaf.basic.BasicRootPaneUI.BasicRootPaneUI() definition code for javax.swing.plaf.basic.BasicRootPaneUI.BasicRootPaneUI() ()
           
 
Method Summary
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicRootPaneUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
           
protected  void installComponents sample code for javax.swing.plaf.basic.BasicRootPaneUI.installComponents(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.installComponents(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicRootPaneUI.installDefaults(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.installDefaults(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  c)
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicRootPaneUI.installKeyboardActions(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.installKeyboardActions(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicRootPaneUI.installListeners(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.installListeners(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
 void installUI sample code for javax.swing.plaf.basic.BasicRootPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.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.
 void propertyChange sample code for javax.swing.plaf.basic.BasicRootPaneUI.propertyChange(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.propertyChange(java.beans.PropertyChangeEvent) (PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
          Invoked when a property changes on the root pane.
protected  void uninstallComponents sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallComponents(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallComponents(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallDefaults(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallDefaults(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallKeyboardActions(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallKeyboardActions(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallListeners(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallListeners(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.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)
 

Constructor Detail

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

public BasicRootPaneUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicRootPaneUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.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)

installUI sample code for javax.swing.plaf.basic.BasicRootPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.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.BasicRootPaneUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.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()

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

protected void installDefaults(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  c)

installComponents sample code for javax.swing.plaf.basic.BasicRootPaneUI.installComponents(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.installComponents(javax.swing.JRootPane)

protected void installComponents(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

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

protected void installListeners(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

installKeyboardActions sample code for javax.swing.plaf.basic.BasicRootPaneUI.installKeyboardActions(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.installKeyboardActions(javax.swing.JRootPane)

protected void installKeyboardActions(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

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

protected void uninstallDefaults(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

uninstallComponents sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallComponents(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallComponents(javax.swing.JRootPane)

protected void uninstallComponents(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

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

protected void uninstallListeners(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallKeyboardActions(javax.swing.JRootPane) definition code for javax.swing.plaf.basic.BasicRootPaneUI.uninstallKeyboardActions(javax.swing.JRootPane)

protected void uninstallKeyboardActions(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)

propertyChange sample code for javax.swing.plaf.basic.BasicRootPaneUI.propertyChange(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicRootPaneUI.propertyChange(java.beans.PropertyChangeEvent)

public void propertyChange(PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
Invoked when a property changes on the root pane. If the event indicates the defaultButton has changed, this will reinstall the keyboard actions.

Specified by:
propertyChange sample code for java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent) definition code for java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent) in interface PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener
Parameters:
e - A PropertyChangeEvent object describing the event source and the property that has changed.