- java.lang.Object
- 
- javax.swing.plaf.ComponentUI
- 
- javax.swing.plaf.InternalFrameUI
- 
- javax.swing.plaf.basic.BasicInternalFrameUI
 
 
 
- 
- Direct Known Subclasses:
- MetalInternalFrameUI,- SynthInternalFrameUI
 
 public class BasicInternalFrameUI extends InternalFrameUI A basic L&F implementation of JInternalFrame.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classBasicInternalFrameUI.BasicInternalFrameListenerBasic internal frame listener.protected classBasicInternalFrameUI.BorderListenerListens for border adjustments.protected classBasicInternalFrameUI.ComponentHandlerComponent handler.protected classBasicInternalFrameUI.GlassPaneDispatcherGlass pane dispatcher.classBasicInternalFrameUI.InternalFrameLayoutInternal frame layout.classBasicInternalFrameUI.InternalFramePropertyChangeListenerInternal frame property change listener.
 - 
Field SummaryFields Modifier and Type Field Description protected MouseInputAdapterborderListenerBorder listenerprotected ComponentListenercomponentListenerComponent listenerprotected JComponenteastPaneEast paneprotected JInternalFrameframeframeprotected MouseInputListenerglassPaneDispatcherGlass pane dispatcherprotected LayoutManagerinternalFrameLayoutInternal frame layoutprotected JComponentnorthPaneNorth paneprotected KeyStrokeopenMenuKeyDeprecated.As of Java 2 platform v1.3.protected PropertyChangeListenerpropertyChangeListenerProperty change listenerprotected JComponentsouthPaneSouth paneprotected BasicInternalFrameTitlePanetitlePaneTitle paneprotected JComponentwestPaneWest pane
 - 
Constructor SummaryConstructors Constructor Description BasicInternalFrameUI(JInternalFrame b)Constructs aBasicInternalFrameUI.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivateFrame(JInternalFrame f)This method is called when the frame becomes selected.protected voidcloseFrame(JInternalFrame f)This method is called when the user wants to close the frame.protected MouseInputAdaptercreateBorderListener(JInternalFrame w)Creates the border listener.protected ComponentListenercreateComponentListener()Creates a component listener.protected DesktopManagercreateDesktopManager()Creates the desktop manager.protected JComponentcreateEastPane(JInternalFrame w)Creates the east pane.protected MouseInputListenercreateGlassPaneDispatcher()Creates aGlassPaneDispatcher.protected voidcreateInternalFrameListener()Creates the internal frame listener.protected LayoutManagercreateLayoutManager()Creates the layout manager.protected JComponentcreateNorthPane(JInternalFrame w)Creates the north pane.protected PropertyChangeListenercreatePropertyChangeListener()Creates the property change listener.protected JComponentcreateSouthPane(JInternalFrame w)Creates the north pane.static ComponentUIcreateUI(JComponent b)Returns a component UI.protected JComponentcreateWestPane(JInternalFrame w)Creates the west pane.protected voiddeactivateFrame(JInternalFrame f)This method is called when the frame is no longer selected.protected voiddeiconifyFrame(JInternalFrame f)This method is called when the user wants to deiconify the frame.protected voiddeinstallMouseHandlers(JComponent c)Deinstalls the mouse handlers.protected DesktopManagergetDesktopManager()Returns the proper DesktopManager.JComponentgetEastPane()Returns the east pane.DimensiongetMaximumSize(JComponent x)Returns the maximum size.DimensiongetMinimumSize(JComponent x)Returns the minimum size.JComponentgetNorthPane()Returns the north pane.DimensiongetPreferredSize(JComponent x)Returns the preferred size.JComponentgetSouthPane()Returns the south pane.JComponentgetWestPane()Returns the west pane.protected voidiconifyFrame(JInternalFrame f)This method is called when the user wants to iconify the frame.protected voidinstallComponents()Installs the components.protected voidinstallDefaults()Installs the defaults.protected voidinstallKeyboardActions()Installs the keyboard actions.protected voidinstallListeners()Installs the listeners.protected voidinstallMouseHandlers(JComponent c)Installs the mouse handlers.voidinstallUI(JComponent c)Installs the UI.booleanisKeyBindingActive()Returns whether or no the key binding is active.protected booleanisKeyBindingRegistered()Returns whether or no the key binding is registered.protected voidmaximizeFrame(JInternalFrame f)This method is called when the user wants to maximize the frame.protected voidminimizeFrame(JInternalFrame f)This method is called when the user wants to minimize the frame.protected voidreplacePane(JComponent currentPane, JComponent newPane)Installs necessary mouse handlers onnewPaneand adds it to the frame.voidsetEastPane(JComponent c)Sets the east pane.protected voidsetKeyBindingActive(boolean b)Sets the key binding activity.protected voidsetKeyBindingRegistered(boolean b)Sets the key binding registration.voidsetNorthPane(JComponent c)Sets the north pane.voidsetSouthPane(JComponent c)Sets the south pane.protected voidsetupMenuCloseKey()Setup the menu close key.protected voidsetupMenuOpenKey()Setup the menu open key.voidsetWestPane(JComponent c)Sets the west pane.protected voiduninstallComponents()Uninstalls the components.protected voiduninstallDefaults()Uninstalls the defaults.protected voiduninstallKeyboardActions()Uninstalls the keyboard actions.protected voiduninstallListeners()Uninstalls the listeners.voiduninstallUI(JComponent c)Uninstalls the UI.- 
Methods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
 
- 
 
- 
- 
- 
Field Detail- 
frameprotected JInternalFrame frame frame
 - 
borderListenerprotected MouseInputAdapter borderListener Border listener
 - 
propertyChangeListenerprotected PropertyChangeListener propertyChangeListener Property change listener
 - 
internalFrameLayoutprotected LayoutManager internalFrameLayout Internal frame layout
 - 
componentListenerprotected ComponentListener componentListener Component listener
 - 
glassPaneDispatcherprotected MouseInputListener glassPaneDispatcher Glass pane dispatcher
 - 
northPaneprotected JComponent northPane North pane
 - 
southPaneprotected JComponent southPane South pane
 - 
westPaneprotected JComponent westPane West pane
 - 
eastPaneprotected JComponent eastPane East pane
 - 
titlePaneprotected BasicInternalFrameTitlePane titlePane Title pane
 - 
openMenuKey@Deprecated protected KeyStroke openMenuKey Deprecated.As of Java 2 platform v1.3.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- 
BasicInternalFrameUIpublic BasicInternalFrameUI(JInternalFrame b) Constructs aBasicInternalFrameUI.- Parameters:
- b- the internal frame
 
 
- 
 - 
Method Detail- 
createUIpublic static ComponentUI createUI(JComponent b) Returns a component UI.- Parameters:
- b- a component
- Returns:
- a component UI
 
 - 
installUIpublic void installUI(JComponent c) Installs the UI.- Overrides:
- installUIin class- ComponentUI
- Parameters:
- c- the component
- See Also:
- ComponentUI.uninstallUI(javax.swing.JComponent),- JComponent.setUI(javax.swing.plaf.ComponentUI),- JComponent.updateUI()
 
 - 
uninstallUIpublic void uninstallUI(JComponent c) Uninstalls the UI.- Overrides:
- uninstallUIin class- ComponentUI
- Parameters:
- c- the component
- See Also:
- ComponentUI.installUI(javax.swing.JComponent),- JComponent.updateUI()
 
 - 
installDefaultsprotected void installDefaults() Installs the defaults.
 - 
installKeyboardActionsprotected void installKeyboardActions() Installs the keyboard actions.
 - 
installComponentsprotected void installComponents() Installs the components.
 - 
installListenersprotected void installListeners() Installs the listeners.- Since:
- 1.3
 
 - 
uninstallDefaultsprotected void uninstallDefaults() Uninstalls the defaults.
 - 
uninstallComponentsprotected void uninstallComponents() Uninstalls the components.
 - 
uninstallListenersprotected void uninstallListeners() Uninstalls the listeners.- Since:
- 1.3
 
 - 
uninstallKeyboardActionsprotected void uninstallKeyboardActions() Uninstalls the keyboard actions.
 - 
createLayoutManagerprotected LayoutManager createLayoutManager() Creates the layout manager.- Returns:
- the layout manager
 
 - 
createPropertyChangeListenerprotected PropertyChangeListener createPropertyChangeListener() Creates the property change listener.- Returns:
- the property change listener
 
 - 
getPreferredSizepublic Dimension getPreferredSize(JComponent x) Returns the preferred size.- Overrides:
- getPreferredSizein class- ComponentUI
- Parameters:
- x- the component
- Returns:
- the preferred size
- See Also:
- JComponent.getPreferredSize(),- LayoutManager.preferredLayoutSize(java.awt.Container)
 
 - 
getMinimumSizepublic Dimension getMinimumSize(JComponent x) Returns the minimum size.- Overrides:
- getMinimumSizein class- ComponentUI
- Parameters:
- x- the component
- Returns:
- the minimum size
- See Also:
- JComponent.getMinimumSize(),- LayoutManager.minimumLayoutSize(java.awt.Container),- ComponentUI.getPreferredSize(javax.swing.JComponent)
 
 - 
getMaximumSizepublic Dimension getMaximumSize(JComponent x) Returns the maximum size.- Overrides:
- getMaximumSizein class- ComponentUI
- Parameters:
- x- the component
- Returns:
- the maximum size
- See Also:
- JComponent.getMaximumSize(),- LayoutManager2.maximumLayoutSize(java.awt.Container)
 
 - 
replacePaneprotected void replacePane(JComponent currentPane, JComponent newPane) Installs necessary mouse handlers onnewPaneand adds it to the frame. Reverse process for thecurrentPane.- Parameters:
- currentPane- this- Jcomponentis the current pane being viewed that has mouse handlers installed
- newPane- this- Jcomponentis the pane which will be added and have mouse handlers installed
 
 - 
deinstallMouseHandlersprotected void deinstallMouseHandlers(JComponent c) Deinstalls the mouse handlers.- Parameters:
- c- the component
 
 - 
installMouseHandlersprotected void installMouseHandlers(JComponent c) Installs the mouse handlers.- Parameters:
- c- the component
 
 - 
createNorthPaneprotected JComponent createNorthPane(JInternalFrame w) Creates the north pane.- Parameters:
- w- the internal frame
- Returns:
- the north pane
 
 - 
createSouthPaneprotected JComponent createSouthPane(JInternalFrame w) Creates the north pane.- Parameters:
- w- the internal frame
- Returns:
- the north pane
 
 - 
createWestPaneprotected JComponent createWestPane(JInternalFrame w) Creates the west pane.- Parameters:
- w- the internal frame
- Returns:
- the west pane
 
 - 
createEastPaneprotected JComponent createEastPane(JInternalFrame w) Creates the east pane.- Parameters:
- w- the internal frame
- Returns:
- the east pane
 
 - 
createBorderListenerprotected MouseInputAdapter createBorderListener(JInternalFrame w) Creates the border listener.- Parameters:
- w- the internal frame
- Returns:
- the border listener
 
 - 
createInternalFrameListenerprotected void createInternalFrameListener() Creates the internal frame listener.
 - 
isKeyBindingRegisteredprotected final boolean isKeyBindingRegistered() Returns whether or no the key binding is registered.- Returns:
- whether or no the key binding is registered
 
 - 
setKeyBindingRegisteredprotected final void setKeyBindingRegistered(boolean b) Sets the key binding registration.- Parameters:
- b- new value for key binding registration
 
 - 
isKeyBindingActivepublic final boolean isKeyBindingActive() Returns whether or no the key binding is active.- Returns:
- whether or no the key binding is active
 
 - 
setKeyBindingActiveprotected final void setKeyBindingActive(boolean b) Sets the key binding activity.- Parameters:
- b- new value for key binding activity
 
 - 
setupMenuOpenKeyprotected void setupMenuOpenKey() Setup the menu open key.
 - 
setupMenuCloseKeyprotected void setupMenuCloseKey() Setup the menu close key.
 - 
getNorthPanepublic JComponent getNorthPane() Returns the north pane.- Returns:
- the north pane
 
 - 
setNorthPanepublic void setNorthPane(JComponent c) Sets the north pane.- Parameters:
- c- the new north pane
 
 - 
getSouthPanepublic JComponent getSouthPane() Returns the south pane.- Returns:
- the south pane
 
 - 
setSouthPanepublic void setSouthPane(JComponent c) Sets the south pane.- Parameters:
- c- the new south pane
 
 - 
getWestPanepublic JComponent getWestPane() Returns the west pane.- Returns:
- the west pane
 
 - 
setWestPanepublic void setWestPane(JComponent c) Sets the west pane.- Parameters:
- c- the new west pane
 
 - 
getEastPanepublic JComponent getEastPane() Returns the east pane.- Returns:
- the east pane
 
 - 
setEastPanepublic void setEastPane(JComponent c) Sets the east pane.- Parameters:
- c- the new east pane
 
 - 
getDesktopManagerprotected 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.- Returns:
- the proper DesktopManager
 
 - 
createDesktopManagerprotected DesktopManager createDesktopManager() Creates the desktop manager.- Returns:
- the desktop manager
 
 - 
closeFrameprotected void closeFrame(JInternalFrame f) This method is called when the user wants to close the frame. TheplayCloseSoundAction is fired. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
maximizeFrameprotected void maximizeFrame(JInternalFrame f) This method is called when the user wants to maximize the frame. TheplayMaximizeSoundAction is fired. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
minimizeFrameprotected void minimizeFrame(JInternalFrame f) This method is called when the user wants to minimize the frame. TheplayRestoreDownSoundAction is fired. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
iconifyFrameprotected void iconifyFrame(JInternalFrame f) This method is called when the user wants to iconify the frame. TheplayMinimizeSoundAction is fired. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
deiconifyFrameprotected void deiconifyFrame(JInternalFrame f) This method is called when the user wants to deiconify the frame. TheplayRestoreUpSoundAction is fired. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
activateFrameprotected void activateFrame(JInternalFrame f) This method is called when the frame becomes selected. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
deactivateFrameprotected void deactivateFrame(JInternalFrame f) This method is called when the frame is no longer selected. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
 - 
createComponentListenerprotected ComponentListener createComponentListener() Creates a component listener.- Returns:
- a component listener
 
 - 
createGlassPaneDispatcherprotected MouseInputListener createGlassPaneDispatcher() Creates aGlassPaneDispatcher.- Returns:
- a GlassPaneDispatcher
 
 
- 
 
-