All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicInternalFrameUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.InternalFrameUI
                    |
                    +----java.awt.swing.basic.BasicInternalFrameUI

public class BasicInternalFrameUI
extends InternalFrameUI
implements LayoutManager, PropertyChangeListener, Serializable
A basic L&F implementation of JInternalFrame.


Class Index

 o BasicInternalFrameUI.BorderListener

Variable Index

 o borderListener
 o eastPane
 o frame
 o northPane
 o sharedDesktopManager
 o southPane
 o westPane

Constructor Index

 o BasicInternalFrameUI(JInternalFrame)

Method Index

 o activateFrame(JInternalFrame)
This method is called when the frame becomes selected.
 o addLayoutComponent(String, Component)
 o closeFrame(JInternalFrame)
This method is called when the user wants to close the frame.
 o createBorderListener(JInternalFrame)
 o createEastPane(JInternalFrame)
 o createNorthPane(JInternalFrame)
 o createSouthPane(JInternalFrame)
 o createUI(JComponent)
 o createWestPane(JInternalFrame)
 o deactivateFrame(JInternalFrame)
This method is called when the frame is no longer selected.
 o deiconifyFrame(JInternalFrame)
This method is called when the user wants to deiconify the frame.
 o deinstallMouseHandlers(JComponent)
 o getDesktopManager()
Returns the proper DesktopManager.
 o getEastPane()
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getNorthPane()
 o getPreferredSize(JComponent)
 o getSouthPane()
 o getWestPane()
 o iconifyFrame(JInternalFrame)
This method is called when the user wants to iconify the frame.
 o installMouseHandlers(JComponent)
 o installUI(JComponent)
 o layoutContainer(Container)
 o maximizeFrame(JInternalFrame)
This method is called when the user wants to maximize the frame.
 o minimizeFrame(JInternalFrame)
This method is called when the user wants to minimize the frame.
 o minimumLayoutSize(Container)
 o paint(Graphics, JComponent)
 o preferredLayoutSize(Container)
 o propertyChange(PropertyChangeEvent)
Detects changes in state from the JInternalFrame and handles actions.
 o removeLayoutComponent(Component)
 o replacePane(JComponent, JComponent)
Adds necessary mouseHandlers to currentPane and adds it to frame.
 o setEastPane(JComponent)
 o setNorthPane(JComponent)
 o setSouthPane(JComponent)
 o setWestPane(JComponent)
 o uninstallUI(JComponent)

Variables

 o frame
protected JInternalFrame frame
 o borderListener
protected EventListener borderListener
 o northPane
protected JComponent northPane
 o southPane
protected JComponent southPane
 o westPane
protected JComponent westPane
 o eastPane
protected JComponent eastPane
 o sharedDesktopManager
protected static DesktopManager sharedDesktopManager

Constructors

 o BasicInternalFrameUI
public BasicInternalFrameUI(JInternalFrame b)

Methods

 o createUI
public static ComponentUI createUI(JComponent b)
 o installUI
public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o getPreferredSize
public Dimension getPreferredSize(JComponent x)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
public Dimension getMinimumSize(JComponent x)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
public Dimension getMaximumSize(JComponent x)
Overrides:
getMaximumSize in class ComponentUI
 o paint
public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI
 o propertyChange
public void propertyChange(PropertyChangeEvent evt)
Detects changes in state from the JInternalFrame and handles actions.

 o replacePane
protected void replacePane(JComponent currentPane,
                           JComponent newPane)
Adds necessary mouseHandlers to currentPane and adds it to frame. Reverse process for the newPane.

 o deinstallMouseHandlers
protected void deinstallMouseHandlers(JComponent c)
 o installMouseHandlers
protected void installMouseHandlers(JComponent c)
 o createNorthPane
protected JComponent createNorthPane(JInternalFrame w)
 o createSouthPane
protected JComponent createSouthPane(JInternalFrame w)
 o createWestPane
protected JComponent createWestPane(JInternalFrame w)
 o createEastPane
protected JComponent createEastPane(JInternalFrame w)
 o createBorderListener
protected EventListener createBorderListener(JInternalFrame w)
 o getNorthPane
public JComponent getNorthPane()
 o setNorthPane
public void setNorthPane(JComponent c)
 o getSouthPane
public JComponent getSouthPane()
 o setSouthPane
public void setSouthPane(JComponent c)
 o getWestPane
public JComponent getWestPane()
 o setWestPane
public void setWestPane(JComponent c)
 o getEastPane
public JComponent getEastPane()
 o setEastPane
public void setEastPane(JComponent c)
 o addLayoutComponent
public void addLayoutComponent(String name,
                               Component c)
 o removeLayoutComponent
public void removeLayoutComponent(Component c)
 o preferredLayoutSize
public Dimension preferredLayoutSize(Container c)
 o minimumLayoutSize
public Dimension minimumLayoutSize(Container c)
 o layoutContainer
public void layoutContainer(Container c)
 o getDesktopManager
protected DesktopManager getDesktopManager()
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.

 o closeFrame
protected void closeFrame(JInternalFrame f)
This method is called when the user wants to close the frame. This action is delegated to the desktopManager.

 o maximizeFrame
protected void maximizeFrame(JInternalFrame f)
This method is called when the user wants to maximize the frame. This action is delegated to the desktopManager.

 o minimizeFrame
protected void minimizeFrame(JInternalFrame f)
This method is called when the user wants to minimize the frame. This action is delegated to the desktopManager.

 o iconifyFrame
protected void iconifyFrame(JInternalFrame f)
This method is called when the user wants to iconify the frame. This action is delegated to the desktopManager.

 o deiconifyFrame
protected void deiconifyFrame(JInternalFrame f)
This method is called when the user wants to deiconify the frame. This action is delegated to the desktopManager.

 o activateFrame
protected void activateFrame(JInternalFrame f)
This method is called when the frame becomes selected. This action is delegated to the desktopManager.

 o deactivateFrame
protected void deactivateFrame(JInternalFrame f)
This method is called when the frame is no longer selected. This action is delegated to the desktopManager.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature