javax.swing.plaf.basic
Class BasicInternalFrameUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.InternalFrameUI
          extended by javax.swing.plaf.basic.BasicInternalFrameUI
Direct Known Subclasses:
MetalInternalFrameUI, SynthInternalFrameUI

public class BasicInternalFrameUI
extends InternalFrameUI

Disabled: no SafeJ information.

A basic L&F implementation of JInternalFrame.


Nested Class Summary
protected  class BasicInternalFrameUI.BasicInternalFrameListener
           
protected  class BasicInternalFrameUI.BorderListener
          Listens for border adjustments.
protected  class BasicInternalFrameUI.ComponentHandler
           
protected  class BasicInternalFrameUI.GlassPaneDispatcher
           
 class BasicInternalFrameUI.InternalFrameLayout
           
 class BasicInternalFrameUI.InternalFramePropertyChangeListener
           
 
Field Summary
protected  MouseInputAdapter borderListener
           
protected  ComponentListener componentListener
           
protected  JComponent eastPane
           
protected  JInternalFrame frame
           
protected  MouseInputListener glassPaneDispatcher
           
protected  LayoutManager internalFrameLayout
           
protected  JComponent northPane
           
protected  KeyStroke openMenuKey
          Deprecated. As of Java 2 platform v1.3.
protected  PropertyChangeListener propertyChangeListener
           
protected  JComponent southPane
           
protected  BasicInternalFrameTitlePane titlePane
           
protected  JComponent westPane
           
 
Constructor Summary
BasicInternalFrameUI(JInternalFrame b)
           
 
Method Summary
protected  void activateFrame(JInternalFrame f)
          This method is called when the frame becomes selected.
protected  void closeFrame(JInternalFrame f)
          This method is called when the user wants to close the frame.
protected  MouseInputAdapter createBorderListener(JInternalFrame w)
           
protected  ComponentListener createComponentListener()
           
protected  DesktopManager createDesktopManager()
           
protected  JComponent createEastPane(JInternalFrame w)
           
protected  MouseInputListener createGlassPaneDispatcher()
           
protected  void createInternalFrameListener()
           
protected  LayoutManager createLayoutManager()
           
protected  JComponent createNorthPane(JInternalFrame w)
           
protected  PropertyChangeListener createPropertyChangeListener()
           
protected  JComponent createSouthPane(JInternalFrame w)
           
static ComponentUI createUI(JComponent b)
           
protected  JComponent createWestPane(JInternalFrame w)
           
protected  void deactivateFrame(JInternalFrame f)
          This method is called when the frame is no longer selected.
protected  void deiconifyFrame(JInternalFrame f)
          This method is called when the user wants to deiconify the frame.
protected  void deinstallMouseHandlers(JComponent c)
           
protected  DesktopManager getDesktopManager()
          Returns the proper DesktopManager.
 JComponent getEastPane()
           
 Dimension getMaximumSize(JComponent x)
          Returns the specified component's maximum size appropriate for the look and feel.
 Dimension getMinimumSize(JComponent x)
          Returns the specified component's minimum size appropriate for the look and feel.
 JComponent getNorthPane()
           
 Dimension getPreferredSize(JComponent x)
          Returns the specified component's preferred size appropriate for the look and feel.
 JComponent getSouthPane()
           
 JComponent getWestPane()
           
protected  void iconifyFrame(JInternalFrame f)
          This method is called when the user wants to iconify the frame.
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
protected  void installMouseHandlers(JComponent c)
           
 void installUI(JComponent c)
          Configures the specified component appropriately for the look and feel.
 boolean isKeyBindingActive()
           
protected  boolean isKeyBindingRegistered()
           
protected  void maximizeFrame(JInternalFrame f)
          This method is called when the user wants to maximize the frame.
protected  void minimizeFrame(JInternalFrame f)
          This method is called when the user wants to minimize the frame.
protected  void replacePane(JComponent currentPane, JComponent newPane)
          Installs necessary mouse handlers on newPane and adds it to the frame.
 void setEastPane(JComponent c)
           
protected  void setKeyBindingActive(boolean b)
           
protected  void setKeyBindingRegistered(boolean b)
           
 void setNorthPane(JComponent c)
           
 void setSouthPane(JComponent c)
           
protected  void setupMenuCloseKey()
           
protected  void setupMenuOpenKey()
           
 void setWestPane(JComponent c)
           
protected  void uninstallComponents()
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected JInternalFrame frame
Class is disabled.


borderListener

protected MouseInputAdapter borderListener
Class is disabled.


propertyChangeListener

protected PropertyChangeListener propertyChangeListener
Class is disabled.


internalFrameLayout

protected LayoutManager internalFrameLayout
Class is disabled.


componentListener

protected ComponentListener componentListener
Class is disabled.


glassPaneDispatcher

protected MouseInputListener glassPaneDispatcher
Class is disabled.


northPane

protected JComponent northPane
Class is disabled.


southPane

protected JComponent southPane
Class is disabled.


westPane

protected JComponent westPane
Class is disabled.


eastPane

protected JComponent eastPane
Class is disabled.


titlePane

protected BasicInternalFrameTitlePane titlePane
Class is disabled.


openMenuKey

@Deprecated
protected KeyStroke openMenuKey
Deprecated. As of Java 2 platform v1.3.
Class is disabled.

As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.

Constructor Detail

BasicInternalFrameUI

public BasicInternalFrameUI(JInternalFrame b)
Class is disabled.

Method Detail

createUI

public static ComponentUI createUI(JComponent b)
Class is disabled.


installUI

public void installUI(JComponent c)
Class is disabled.

Description copied from class: ComponentUI
Configures the specified component appropriately 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 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 in class ComponentUI
Parameters:
c - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

uninstallUI

public void uninstallUI(JComponent c)
Class is disabled.

Description copied from class: ComponentUI
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 in class 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), JComponent.updateUI()

installDefaults

protected void installDefaults()
Class is disabled.


installKeyboardActions

protected void installKeyboardActions()
Class is disabled.


installComponents

protected void installComponents()
Class is disabled.


installListeners

protected void installListeners()
Class is disabled.

Since:
1.3

uninstallDefaults

protected void uninstallDefaults()
Class is disabled.


uninstallComponents

protected void uninstallComponents()
Class is disabled.


uninstallListeners

protected void uninstallListeners()
Class is disabled.

Since:
1.3

uninstallKeyboardActions

protected void uninstallKeyboardActions()
Class is disabled.


createLayoutManager

protected LayoutManager createLayoutManager()
Class is disabled.


createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
Class is disabled.


getPreferredSize

public Dimension getPreferredSize(JComponent x)
Class is disabled.

Description copied from class: ComponentUI
Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.

Overrides:
getPreferredSize in class ComponentUI
Parameters:
x - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
JComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)

getMinimumSize

public Dimension getMinimumSize(JComponent x)
Class is disabled.

Description copied from class: ComponentUI
Returns the specified component's minimum size appropriate for the look and feel. If null is returned, the minimum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMinimumSize in class ComponentUI
Parameters:
x - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)

getMaximumSize

public Dimension getMaximumSize(JComponent x)
Class is disabled.

Description copied from class: ComponentUI
Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMaximumSize in class ComponentUI
Parameters:
x - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)

replacePane

protected void replacePane(JComponent currentPane,
                           JComponent newPane)
Class is disabled.

Installs necessary mouse handlers on newPane and adds it to the frame. Reverse process for the currentPane.


deinstallMouseHandlers

protected void deinstallMouseHandlers(JComponent c)
Class is disabled.


installMouseHandlers

protected void installMouseHandlers(JComponent c)
Class is disabled.


createNorthPane

protected JComponent createNorthPane(JInternalFrame w)
Class is disabled.


createSouthPane

protected JComponent createSouthPane(JInternalFrame w)
Class is disabled.


createWestPane

protected JComponent createWestPane(JInternalFrame w)
Class is disabled.


createEastPane

protected JComponent createEastPane(JInternalFrame w)
Class is disabled.


createBorderListener

protected MouseInputAdapter createBorderListener(JInternalFrame w)
Class is disabled.


createInternalFrameListener

protected void createInternalFrameListener()
Class is disabled.


isKeyBindingRegistered

protected final boolean isKeyBindingRegistered()
Class is disabled.


setKeyBindingRegistered

protected final void setKeyBindingRegistered(boolean b)
Class is disabled.


isKeyBindingActive

public final boolean isKeyBindingActive()
Class is disabled.


setKeyBindingActive

protected final void setKeyBindingActive(boolean b)
Class is disabled.


setupMenuOpenKey

protected void setupMenuOpenKey()
Class is disabled.


setupMenuCloseKey

protected void setupMenuCloseKey()
Class is disabled.


getNorthPane

public JComponent getNorthPane()
Class is disabled.


setNorthPane

public void setNorthPane(JComponent c)
Class is disabled.


getSouthPane

public JComponent getSouthPane()
Class is disabled.


setSouthPane

public void setSouthPane(JComponent c)
Class is disabled.


getWestPane

public JComponent getWestPane()
Class is disabled.


setWestPane

public void setWestPane(JComponent c)
Class is disabled.


getEastPane

public JComponent getEastPane()
Class is disabled.


setEastPane

public void setEastPane(JComponent c)
Class is disabled.


getDesktopManager

protected DesktopManager getDesktopManager()
Class is disabled.

Returns the proper DesktopManager. Calls getDesktopPane() to find the JDesktop component and returns the desktopManager from it. If this fails, it will return a default DesktopManager that should work in arbitrary parents.


createDesktopManager

protected DesktopManager createDesktopManager()
Class is disabled.


closeFrame

protected void closeFrame(JInternalFrame f)
Class is disabled.

This method is called when the user wants to close the frame. The playCloseSound Action is fired. This action is delegated to the desktopManager.


maximizeFrame

protected void maximizeFrame(JInternalFrame f)
Class is disabled.

This method is called when the user wants to maximize the frame. The playMaximizeSound Action is fired. This action is delegated to the desktopManager.


minimizeFrame

protected void minimizeFrame(JInternalFrame f)
Class is disabled.

This method is called when the user wants to minimize the frame. The playRestoreDownSound Action is fired. This action is delegated to the desktopManager.


iconifyFrame

protected void iconifyFrame(JInternalFrame f)
Class is disabled.

This method is called when the user wants to iconify the frame. The playMinimizeSound Action is fired. This action is delegated to the desktopManager.


deiconifyFrame

protected void deiconifyFrame(JInternalFrame f)
Class is disabled.

This method is called when the user wants to deiconify the frame. The playRestoreUpSound Action is fired. This action is delegated to the desktopManager.


activateFrame

protected void activateFrame(JInternalFrame f)
Class is disabled.

This method is called when the frame becomes selected. This action is delegated to the desktopManager.


deactivateFrame

protected void deactivateFrame(JInternalFrame f)
Class is disabled.

This method is called when the frame is no longer selected. This action is delegated to the desktopManager.


createComponentListener

protected ComponentListener createComponentListener()
Class is disabled.


createGlassPaneDispatcher

protected MouseInputListener createGlassPaneDispatcher()
Class is disabled.