javax.swing.plaf.basic
Class BasicRootPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.RootPaneUI
          extended by javax.swing.plaf.basic.BasicRootPaneUI
All Implemented Interfaces:
PropertyChangeListener, EventListener
Direct Known Subclasses:
MetalRootPaneUI

public class BasicRootPaneUI
extends RootPaneUI
implements PropertyChangeListener


Constructor Summary
BasicRootPaneUI()
           
 
Method Summary
static ComponentUI createUI(JComponent x)
           
protected  void installComponents(JRootPane rp)
          Installs additional look and feel components to the root pane.
protected  void installDefaults(JRootPane rp)
          Installs the look and feel defaults for JRootPane.
protected  void installKeyboardActions(JRootPane rp)
          Installs look and feel keyboard actions on the root pane.
protected  void installListeners(JRootPane rp)
          Installs any look and feel specific listeners on the root pane.
 void installUI(JComponent c)
          Sets up the specified component so it conforms the the design guidelines of the implemented look and feel.
 void propertyChange(PropertyChangeEvent event)
          Fired after a Bean's property has changed.
protected  void uninstallComponents(JRootPane rp)
          Uninstalls look and feel components from the root pane.
protected  void uninstallDefaults(JRootPane rp)
          Uninstalls the look and feel defaults that have been installed in installDefaults(javax.swing.JRootPane).
protected  void uninstallKeyboardActions(JRootPane rp)
          Uninstalls look and feel keyboard actions from the root pane.
protected  void uninstallListeners(JRootPane rp)
          Uninstalls any look and feel specific listeners from the root pane.
 void uninstallUI(JComponent c)
          Uninstalls this UI from the root pane.
 
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
 

Constructor Detail

BasicRootPaneUI

public BasicRootPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent x)

installUI

public void installUI(JComponent c)
Description copied from class: ComponentUI
Sets up the specified component so it conforms the the design guidelines of the implemented look and feel. When the look and feel changes, a ComponentUI delegate is created. The delegate object then receives an installUI message.

This method should perform the following tasks:

Overrides:
installUI in class ComponentUI
Parameters:
c - the component for which this delegate will provide services.
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

installDefaults

protected void installDefaults(JRootPane rp)
Installs the look and feel defaults for JRootPane.

Parameters:
rp - the root pane to install the defaults to

installComponents

protected void installComponents(JRootPane rp)
Installs additional look and feel components to the root pane.

Parameters:
rp - the root pane to install the components to

installListeners

protected void installListeners(JRootPane rp)
Installs any look and feel specific listeners on the root pane.

Parameters:
rp - the root pane to install the listeners to

installKeyboardActions

protected void installKeyboardActions(JRootPane rp)
Installs look and feel keyboard actions on the root pane.

Parameters:
rp - the root pane to install the keyboard actions to

propertyChange

public void propertyChange(PropertyChangeEvent event)
Description copied from interface: PropertyChangeListener
Fired after a Bean's property has changed.

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
event - the change (containing the old and new values)

uninstallUI

public void uninstallUI(JComponent c)
Uninstalls this UI from the root pane. This calls uninstallDefaults(javax.swing.JRootPane), uninstallComponents(javax.swing.JRootPane), uninstallListeners(javax.swing.JRootPane), uninstallKeyboardActions(javax.swing.JRootPane) in this order.

Overrides:
uninstallUI in class ComponentUI
Parameters:
c - the root pane to uninstall the UI from
See Also:
ComponentUI.installUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

uninstallDefaults

protected void uninstallDefaults(JRootPane rp)
Uninstalls the look and feel defaults that have been installed in installDefaults(javax.swing.JRootPane).

Parameters:
rp - the root pane to uninstall the defaults from

uninstallComponents

protected void uninstallComponents(JRootPane rp)
Uninstalls look and feel components from the root pane.

Parameters:
rp - the root pane to uninstall the components from

uninstallListeners

protected void uninstallListeners(JRootPane rp)
Uninstalls any look and feel specific listeners from the root pane.

Parameters:
rp - the root pane to uninstall the listeners from

uninstallKeyboardActions

protected void uninstallKeyboardActions(JRootPane rp)
Uninstalls look and feel keyboard actions from the root pane.

Parameters:
rp - the root pane to uninstall the keyboard actions from