Class BasicInternalFrameUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
- Direct Known Subclasses:
- MetalInternalFrameUI,- SynthInternalFrameUI
A basic L&F implementation of JInternalFrame.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classBasic internal frame listener.protected classListens for border adjustments.protected classComponent handler.protected classGlass pane dispatcher.classInternal frame layout.classInternal frame property change listener.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected MouseInputAdapterBorder listenerprotected ComponentListenerComponent listenerprotected JComponentEast paneprotected JInternalFrameframeprotected MouseInputListenerGlass pane dispatcherprotected LayoutManagerInternal frame layoutprotected JComponentNorth paneprotected KeyStrokeDeprecated.As of Java 2 platform v1.3.protected PropertyChangeListenerProperty change listenerprotected JComponentSouth paneprotected BasicInternalFrameTitlePaneTitle paneprotected JComponentWest pane
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidThis method is called when the frame becomes selected.protected voidThis method is called when the user wants to close the frame.protected MouseInputAdapterCreates the border listener.protected ComponentListenerCreates a component listener.protected DesktopManagerCreates the desktop manager.protected JComponentCreates the east pane.protected MouseInputListenerCreates aGlassPaneDispatcher.protected voidCreates the internal frame listener.protected LayoutManagerCreates the layout manager.protected JComponentCreates the north pane.protected PropertyChangeListenerCreates the property change listener.protected JComponentCreates the north pane.static ComponentUIReturns a component UI.protected JComponentCreates the west pane.protected voidThis method is called when the frame is no longer selected.protected voidThis method is called when the user wants to deiconify the frame.protected voidDeinstalls the mouse handlers.protected DesktopManagerReturns the proper DesktopManager.Returns the east pane.Returns the maximum size.Returns the minimum size.Returns the north pane.Returns the preferred size.Returns the south pane.Returns the west pane.protected voidThis method is called when the user wants to iconify the frame.protected voidInstalls the components.protected voidInstalls the defaults.protected voidInstalls the keyboard actions.protected voidInstalls the listeners.protected voidInstalls the mouse handlers.voidInstalls the UI.final booleanReturns whether or no the key binding is active.protected final booleanReturns whether or no the key binding is registered.protected voidThis method is called when the user wants to maximize the frame.protected voidThis 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.voidSets the east pane.protected final voidsetKeyBindingActive(boolean b) Sets the key binding activity.protected final voidsetKeyBindingRegistered(boolean b) Sets the key binding registration.voidSets the north pane.voidSets the south pane.protected voidSetup the menu close key.protected voidSetup the menu open key.voidSets the west pane.protected voidUninstalls the components.protected voidUninstalls the defaults.protected voidUninstalls the keyboard actions.protected voidUninstalls the listeners.voidUninstalls the UI.Methods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
- 
Field Details- 
frameframe
- 
borderListenerBorder listener
- 
propertyChangeListenerProperty change listener
- 
internalFrameLayoutInternal frame layout
- 
componentListenerComponent listener
- 
glassPaneDispatcherGlass pane dispatcher
- 
northPaneNorth pane
- 
southPaneSouth pane
- 
westPaneWest pane
- 
eastPaneEast pane
- 
titlePaneTitle pane
- 
openMenuKeyDeprecated.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 Details- 
BasicInternalFrameUIConstructs aBasicInternalFrameUI.- Parameters:
- b- the internal frame
 
 
- 
- 
Method Details- 
createUIReturns a component UI.- Parameters:
- b- a component
- Returns:
- a component UI
 
- 
installUIInstalls the UI.- Overrides:
- installUIin class- ComponentUI
- Parameters:
- c- the component
- See Also:
 
- 
uninstallUIUninstalls the UI.- Overrides:
- uninstallUIin class- ComponentUI
- Parameters:
- c- the component
- See Also:
 
- 
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.
- 
createLayoutManagerCreates the layout manager.- Returns:
- the layout manager
 
- 
createPropertyChangeListenerCreates the property change listener.- Returns:
- the property change listener
 
- 
getPreferredSizeReturns the preferred size.- Overrides:
- getPreferredSizein class- ComponentUI
- Parameters:
- x- the component
- Returns:
- the preferred size
- See Also:
 
- 
getMinimumSizeReturns the minimum size.- Overrides:
- getMinimumSizein class- ComponentUI
- Parameters:
- x- the component
- Returns:
- the minimum size
- See Also:
 
- 
getMaximumSizeReturns the maximum size.- Overrides:
- getMaximumSizein class- ComponentUI
- Parameters:
- x- the component
- Returns:
- the maximum size
- See Also:
 
- 
replacePaneInstalls 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
 
- 
deinstallMouseHandlersDeinstalls the mouse handlers.- Parameters:
- c- the component
 
- 
installMouseHandlersInstalls the mouse handlers.- Parameters:
- c- the component
 
- 
createNorthPaneCreates the north pane.- Parameters:
- w- the internal frame
- Returns:
- the north pane
 
- 
createSouthPaneCreates the north pane.- Parameters:
- w- the internal frame
- Returns:
- the north pane
 
- 
createWestPaneCreates the west pane.- Parameters:
- w- the internal frame
- Returns:
- the west pane
 
- 
createEastPaneCreates the east pane.- Parameters:
- w- the internal frame
- Returns:
- the east pane
 
- 
createBorderListenerCreates 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.
- 
getNorthPane
- 
setNorthPane
- 
getSouthPane
- 
setSouthPane
- 
getWestPane
- 
setWestPane
- 
getEastPane
- 
setEastPane
- 
getDesktopManagerReturns 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
 
- 
createDesktopManagerCreates the desktop manager.- Returns:
- the desktop manager
 
- 
closeFrameThis 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
 
- 
maximizeFrameThis 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
 
- 
minimizeFrameThis 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
 
- 
iconifyFrameThis 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
 
- 
deiconifyFrameThis 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
 
- 
activateFrameThis method is called when the frame becomes selected. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
- 
deactivateFrameThis method is called when the frame is no longer selected. This action is delegated to the desktopManager.- Parameters:
- f- the- JInternalFramebeing viewed
 
- 
createComponentListenerCreates a component listener.- Returns:
- a component listener
 
- 
createGlassPaneDispatcherCreates aGlassPaneDispatcher.- Returns:
- a GlassPaneDispatcher
 
 
-