public class BasicInternalFrameUI extends InternalFrameUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicInternalFrameUI
|
protected class |
BasicInternalFrameUI
Listens for border adjustments.
|
protected class |
BasicInternalFrameUI
|
protected class |
BasicInternalFrameUI
|
class |
BasicInternalFrameUI
|
class |
BasicInternalFrameUI
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
BasicInternalFrameUI(JInternalFrame
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateFrame(JInternalFrame
This method is called when the frame becomes selected.
|
protected void |
closeFrame(JInternalFrame
This method is called when the user wants to close the frame.
|
protected MouseInputAdapter |
createBorderListener(JInternalFrame
|
protected ComponentListener |
createComponentListener()
|
protected DesktopManager |
createDesktopManager()
|
protected JComponent |
createEastPane(JInternalFrame
|
protected MouseInputListener |
createGlassPaneDispatcher()
|
protected void |
createInternalFrameListener()
|
protected LayoutManager |
createLayoutManager()
|
protected JComponent |
createNorthPane(JInternalFrame
|
protected PropertyChangeListener |
createPropertyChangeListener()
|
protected JComponent |
createSouthPane(JInternalFrame
|
static ComponentUI |
createUI(JComponent
|
protected JComponent |
createWestPane(JInternalFrame
|
protected void |
deactivateFrame(JInternalFrame
This method is called when the frame is no longer selected.
|
protected void |
deiconifyFrame(JInternalFrame
This method is called when the user wants to deiconify the frame.
|
protected void |
deinstallMouseHandlers(JComponent
|
protected DesktopManager |
getDesktopManager()
Returns the proper DesktopManager.
|
JComponent |
getEastPane()
|
Dimension |
getMaximumSize(JComponent
Returns the specified component's maximum size appropriate for the look and feel.
|
Dimension |
getMinimumSize(JComponent
Returns the specified component's minimum size appropriate for the look and feel.
|
JComponent |
getNorthPane()
|
Dimension |
getPreferredSize(JComponent
Returns the specified component's preferred size appropriate for the look and feel.
|
JComponent |
getSouthPane()
|
JComponent |
getWestPane()
|
protected void |
iconifyFrame(JInternalFrame
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
|
void |
installUI(JComponent
Configures the specified component appropriately for the look and feel.
|
boolean |
isKeyBindingActive()
|
protected boolean |
isKeyBindingRegistered()
|
protected void |
maximizeFrame(JInternalFrame
This method is called when the user wants to maximize the frame.
|
protected void |
minimizeFrame(JInternalFrame
This method is called when the user wants to minimize the frame.
|
protected void |
replacePane(JComponent
Installs necessary mouse handlers on
newPane and adds it to the frame.
|
void |
setEastPane(JComponent
|
protected void |
setKeyBindingActive(boolean b)
|
protected void |
setKeyBindingRegistered(boolean b)
|
void |
setNorthPane(JComponent
|
void |
setSouthPane(JComponent
|
protected void |
setupMenuCloseKey()
|
protected void |
setupMenuOpenKey()
|
void |
setWestPane(JComponent
|
protected void |
uninstallComponents()
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent
Reverses configuration which was done on the specified component during
installUI.
|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, updateprotected JInternalFrameframe
protected MouseInputAdapterborderListener
protected PropertyChangeListenerpropertyChangeListener
protected LayoutManagerinternalFrameLayout
protected ComponentListenercomponentListener
protected MouseInputListenerglassPaneDispatcher
protected JComponentnorthPane
protected JComponentsouthPane
protected JComponentwestPane
protected JComponenteastPane
protected BasicInternalFrameTitlePanetitlePane
@Deprecated protected KeyStrokeopenMenuKey
public BasicInternalFrameUI(JInternalFrameb)
public static ComponentUIcreateUI(JComponent b)
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()
protected void installKeyboardActions()
protected void installComponents()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected LayoutManagercreateLayoutManager()
protected PropertyChangeListenercreatePropertyChangeListener()
public DimensiongetPreferredSize(JComponent x)
ComponentUI
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.
getPreferredSize in class
ComponentUI
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
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensiongetMinimumSize(JComponent x)
ComponentUI
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.
getMinimumSize in class
ComponentUI
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
Dimension object or
null
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public DimensiongetMaximumSize(JComponent x)
ComponentUI
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.
getMaximumSize in class
ComponentUI
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
Dimension object or
null
JComponent.getMaximumSize() ,
LayoutManager2.maximumLayoutSize(java.awt.Container)
protected void replacePane(JComponentcurrentPane, JComponent newPane)
newPane and adds it to the frame. Reverse process for the
currentPane.
protected void deinstallMouseHandlers(JComponentc)
protected void installMouseHandlers(JComponentc)
protected JComponentcreateNorthPane(JInternalFrame w)
protected JComponentcreateSouthPane(JInternalFrame w)
protected JComponentcreateWestPane(JInternalFrame w)
protected JComponentcreateEastPane(JInternalFrame w)
protected MouseInputAdaptercreateBorderListener(JInternalFrame w)
protected void createInternalFrameListener()
protected final boolean isKeyBindingRegistered()
protected final void setKeyBindingRegistered(boolean b)
public final boolean isKeyBindingActive()
protected final void setKeyBindingActive(boolean b)
protected void setupMenuOpenKey()
protected void setupMenuCloseKey()
public JComponentgetNorthPane()
public void setNorthPane(JComponentc)
public JComponentgetSouthPane()
public void setSouthPane(JComponentc)
public JComponentgetWestPane()
public void setWestPane(JComponentc)
public JComponentgetEastPane()
public void setEastPane(JComponentc)
protected DesktopManagergetDesktopManager()
protected DesktopManagercreateDesktopManager()
protected void closeFrame(JInternalFramef)
playCloseSound Action is fired. This action is delegated to the desktopManager.
protected void maximizeFrame(JInternalFramef)
playMaximizeSound Action is fired. This action is delegated to the desktopManager.
protected void minimizeFrame(JInternalFramef)
playRestoreDownSound Action is fired. This action is delegated to the desktopManager.
protected void iconifyFrame(JInternalFramef)
playMinimizeSound Action is fired. This action is delegated to the desktopManager.
protected void deiconifyFrame(JInternalFramef)
playRestoreUpSound Action is fired. This action is delegated to the desktopManager.
protected void activateFrame(JInternalFramef)
protected void deactivateFrame(JInternalFramef)
protected ComponentListenercreateComponentListener()
protected MouseInputListenercreateGlassPaneDispatcher()