public class BasicRootPaneUI extends RootPaneUIimplements PropertyChangeListener
| Constructor and Description |
|---|
BasicRootPaneUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
|
protected void |
installComponents(JRootPane
|
protected void |
installDefaults(JRootPane
|
protected void |
installKeyboardActions(JRootPane
|
protected void |
installListeners(JRootPane
|
void |
installUI(JComponent
Configures the specified component appropriately for the look and feel.
|
void |
propertyChange(PropertyChangeEvent
Invoked when a property changes on the root pane.
|
protected void |
uninstallComponents(JRootPane
|
protected void |
uninstallDefaults(JRootPane
|
protected void |
uninstallKeyboardActions(JRootPane
|
protected void |
uninstallListeners(JRootPane
|
void |
uninstallUI(JComponent
Reverses configuration which was done on the specified component during
installUI.
|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updatepublic static ComponentUIcreateUI(JComponent c)
public void installUI(JComponentc)
ComponentUI
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:
LayoutManager on the component if necessary. PropertyChangeListener on the component in order to detect and respond to component property changes appropriately. installUI in class
ComponentUI
c - the component where this UI delegate is being installed
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
public void uninstallUI(JComponentc)
ComponentUI
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:
uninstallUI in class
ComponentUI
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
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
protected void installDefaults(JRootPanec)
protected void installComponents(JRootPaneroot)
protected void installListeners(JRootPaneroot)
protected void installKeyboardActions(JRootPaneroot)
protected void uninstallDefaults(JRootPaneroot)
protected void uninstallComponents(JRootPaneroot)
protected void uninstallListeners(JRootPaneroot)
protected void uninstallKeyboardActions(JRootPaneroot)
public void propertyChange(PropertyChangeEvente)
defaultButton has changed, this will reinstall the keyboard actions.
propertyChange in interface
PropertyChangeListener
e - A PropertyChangeEvent object describing the event source and the property that has changed.