All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicInternalFrameUI

java.lang.Object
   |
   +----com.sun.java.swing.basic.BasicInternalFrameUI

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


Variable Index

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

Constructor Index

 o BasicInternalFrameUI(JInternalFrame)

Method Index

 o addLayoutComponent(String, Component)
 o becomeMainFrame(JInternalFrame)
This method is called when the frame becomes main.
 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(JInternalFrame)
 o createWestPane(JInternalFrame)
 o deiconifyFrame(JInternalFrame)
This method is called when the user wants to deiconify the frame.
 o deinstallMouseHandlers(JComponent)
 o deinstallUI(JComponent)
 o getDesktopManager()
Returns the proper DesktopManager.
 o getEastPane()
 o getInsets(JComponent)
 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 loseMainFrame(JInternalFrame)
This method is called when the frame loses main.
 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)

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 InternalFrameUI createUI(JInternalFrame b)
 o installUI
 public void installUI(JComponent c)
 o deinstallUI
 public void deinstallUI(JComponent c)
 o getPreferredSize
 public Dimension getPreferredSize(JComponent x)
 o getMinimumSize
 public Dimension getMinimumSize(JComponent x)
 o getMaximumSize
 public Dimension getMaximumSize(JComponent x)
 o getInsets
 public Insets getInsets(JComponent c)
 o paint
 public void paint(Graphics g,
                   JComponent c)
 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 becomeMainFrame
 protected void becomeMainFrame(JInternalFrame f)
This method is called when the frame becomes main. This action is delegated to the desktopManager.

 o loseMainFrame
 protected void loseMainFrame(JInternalFrame f)
This method is called when the frame loses main. This action is delegated to the desktopManager.


All Packages  Class Hierarchy  This Package  Previous  Next  Index