Quaqua 7.4.2 2011-07-05

ch.randelshofer.quaqua
Class QuaquaRootPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.RootPaneUI
          extended by javax.swing.plaf.basic.BasicRootPaneUI
              extended by ch.randelshofer.quaqua.QuaquaRootPaneUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class QuaquaRootPaneUI
extends javax.swing.plaf.basic.BasicRootPaneUI

QuaquaRootPaneUI.

Version:
$Id: QuaquaRootPaneUI.java 361 2010-11-21 11:19:20Z wrandelshofer $
Author:
Werner Randelshofer

Constructor Summary
QuaquaRootPaneUI()
          Creates a new instance.
 
Method Summary
protected  javax.swing.event.AncestorListener createAncestorListener()
           
protected  java.awt.event.ComponentListener createComponentListener()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installDefaults(javax.swing.JRootPane c)
           
protected  void installListeners(javax.swing.JRootPane root)
           
 void installUI(javax.swing.JComponent c)
          Invokes supers implementation of installUI to install the necessary state onto the passed in JRootPane to render the metal look and feel implementation of RootPaneUI.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 void propertyChange(java.beans.PropertyChangeEvent e)
          Invoked when a property changes on the root pane.
protected  void uninstallListeners(javax.swing.JRootPane root)
           
 void uninstallUI(javax.swing.JComponent c)
          Invokes supers implementation to uninstall any of its state.
 void update(java.awt.Graphics gr, javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicRootPaneUI
installComponents, installKeyboardActions, uninstallComponents, uninstallDefaults, uninstallKeyboardActions
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaRootPaneUI

public QuaquaRootPaneUI()
Creates a new instance.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Invokes supers implementation of installUI to install the necessary state onto the passed in JRootPane to render the metal look and feel implementation of RootPaneUI. If the windowDecorationStyle property of the JRootPane is other than JRootPane.NONE, this will add a custom Component to render the widgets to JRootPane, as well as installing a custom Border and LayoutManager on the JRootPane.

Overrides:
installUI in class javax.swing.plaf.basic.BasicRootPaneUI
Parameters:
c - the JRootPane to install state onto

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Invokes supers implementation to uninstall any of its state. This will also reset the LayoutManager of the JRootPane. If a Component has been added to the JRootPane to render the window decoration style, this method will remove it. Similarly, this will revert the Border and LayoutManager of the JRootPane to what it was before installUI was invoked.

Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicRootPaneUI
Parameters:
c - the JRootPane to uninstall state from

installDefaults

protected void installDefaults(javax.swing.JRootPane c)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicRootPaneUI

update

public void update(java.awt.Graphics gr,
                   javax.swing.JComponent c)
Overrides:
update in class javax.swing.plaf.ComponentUI

installListeners

protected void installListeners(javax.swing.JRootPane root)
Overrides:
installListeners in class javax.swing.plaf.basic.BasicRootPaneUI

uninstallListeners

protected void uninstallListeners(javax.swing.JRootPane root)
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicRootPaneUI

createComponentListener

protected java.awt.event.ComponentListener createComponentListener()

createAncestorListener

protected javax.swing.event.AncestorListener createAncestorListener()

propertyChange

public void propertyChange(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 in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class javax.swing.plaf.basic.BasicRootPaneUI

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.