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.
BasicInternalFrameUI.BorderListener-
borderListener-
eastPane-
frame-
northPane-
sharedDesktopManager-
southPane-
westPane-
BasicInternalFrameUI(JInternalFrame)
-
activateFrame(JInternalFrame)
- This method is called when the frame becomes selected.
addLayoutComponent(String, Component)
-
closeFrame(JInternalFrame)
- This method is called when the user wants to close the frame.
createBorderListener(JInternalFrame)
-
createEastPane(JInternalFrame)
-
createNorthPane(JInternalFrame)
-
createSouthPane(JInternalFrame)
-
createUI(JComponent)
-
createWestPane(JInternalFrame)
-
deactivateFrame(JInternalFrame)
- This method is called when the frame is no longer selected.
deiconifyFrame(JInternalFrame)
- This method is called when the user wants to deiconify the frame.
deinstallMouseHandlers(JComponent)
-
getDesktopManager()
- Returns the proper DesktopManager.
getEastPane()
-
getMaximumSize(JComponent)
-
getMinimumSize(JComponent)
-
getNorthPane()
-
getPreferredSize(JComponent)
-
getSouthPane()
-
getWestPane()
-
iconifyFrame(JInternalFrame)
- This method is called when the user wants to iconify the frame.
installMouseHandlers(JComponent)
-
installUI(JComponent)
-
layoutContainer(Container)
-
maximizeFrame(JInternalFrame)
- This method is called when the user wants to maximize the frame.
minimizeFrame(JInternalFrame)
- This method is called when the user wants to minimize the frame.
minimumLayoutSize(Container)
-
paint(Graphics, JComponent)
-
preferredLayoutSize(Container)
-
propertyChange(PropertyChangeEvent)
- Detects changes in state from the JInternalFrame and handles actions.
removeLayoutComponent(Component)
-
replacePane(JComponent, JComponent)
- Adds necessary mouseHandlers to currentPane and adds it to frame.
setEastPane(JComponent)
-
setNorthPane(JComponent)
-
setSouthPane(JComponent)
-
setWestPane(JComponent)
-
uninstallUI(JComponent)
-
frame
protected JInternalFrame frame
borderListener
protected EventListener borderListener
northPane
protected JComponent northPane
southPane
protected JComponent southPane
westPane
protected JComponent westPane
eastPane
protected JComponent eastPane
sharedDesktopManager
protected static DesktopManager sharedDesktopManager
BasicInternalFrameUI
public BasicInternalFrameUI(JInternalFrame b)
createUI
public static ComponentUI createUI(JComponent b)
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent x)
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent x)
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent x)
- Overrides:
- getMaximumSize in class ComponentUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Detects changes in state from the JInternalFrame and handles actions.
replacePane
protected void replacePane(JComponent currentPane,
JComponent newPane)
- Adds necessary mouseHandlers to currentPane and adds it to frame.
Reverse process for the newPane.
deinstallMouseHandlers
protected void deinstallMouseHandlers(JComponent c)
installMouseHandlers
protected void installMouseHandlers(JComponent c)
createNorthPane
protected JComponent createNorthPane(JInternalFrame w)
createSouthPane
protected JComponent createSouthPane(JInternalFrame w)
createWestPane
protected JComponent createWestPane(JInternalFrame w)
createEastPane
protected JComponent createEastPane(JInternalFrame w)
createBorderListener
protected EventListener createBorderListener(JInternalFrame w)
getNorthPane
public JComponent getNorthPane()
setNorthPane
public void setNorthPane(JComponent c)
getSouthPane
public JComponent getSouthPane()
setSouthPane
public void setSouthPane(JComponent c)
getWestPane
public JComponent getWestPane()
setWestPane
public void setWestPane(JComponent c)
getEastPane
public JComponent getEastPane()
setEastPane
public void setEastPane(JComponent c)
addLayoutComponent
public void addLayoutComponent(String name,
Component c)
removeLayoutComponent
public void removeLayoutComponent(Component c)
preferredLayoutSize
public Dimension preferredLayoutSize(Container c)
minimumLayoutSize
public Dimension minimumLayoutSize(Container c)
layoutContainer
public void layoutContainer(Container c)
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.
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.
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.
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.
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.
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.
activateFrame
protected void activateFrame(JInternalFrame f)
- This method is called when the frame becomes selected.
This action is delegated to the desktopManager.
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