Class MetalInternalFrameUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
javax.swing.plaf.metal.MetalInternalFrameUI
Metal implementation of JInternalFrame.
-
Nested Class Summary
Nested classes/interfaces inherited from class BasicInternalFrameUI
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
-
Field Summary
FieldsFields inherited from class BasicInternalFrameUI
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newMetalInternalFrameUI
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected MouseInputAdapter
Returns theMouseInputAdapter
that will be installed on the TitlePane.protected JComponent
Creates the north pane.static ComponentUI
Constructs a newMetalInternalFrameUI
instance.protected void
Installs the keyboard actions.protected void
Installs the listeners.void
Installs the UI.void
setPalette
(boolean isPalette) IfisPalette
istrue
, sets palette border and titleprotected void
Uninstalls the components.protected void
Uninstalls the keyboard actions.protected void
Uninstalls the listeners.void
Uninstalls the UI.Methods inherited from class BasicInternalFrameUI
activateFrame, closeFrame, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installDefaults, installMouseHandlers, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallDefaults
Methods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
Field Details
-
IS_PALETTE
The propertyJInternalFrame.isPalette
.
-
-
Constructor Details
-
MetalInternalFrameUI
Constructs a newMetalInternalFrameUI
instance.- Parameters:
b
- an internal frame
-
-
Method Details
-
createUI
Constructs a newMetalInternalFrameUI
instance.- Parameters:
c
- a component- Returns:
- a new
MetalInternalFrameUI
instance
-
installUI
Description copied from class:BasicInternalFrameUI
Installs the UI.- Overrides:
installUI
in classBasicInternalFrameUI
- Parameters:
c
- the component- See Also:
-
uninstallUI
Description copied from class:BasicInternalFrameUI
Uninstalls the UI.- Overrides:
uninstallUI
in classBasicInternalFrameUI
- Parameters:
c
- the component- See Also:
-
installListeners
protected void installListeners()Description copied from class:BasicInternalFrameUI
Installs the listeners.- Overrides:
installListeners
in classBasicInternalFrameUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicInternalFrameUI
Uninstalls the listeners.- Overrides:
uninstallListeners
in classBasicInternalFrameUI
-
installKeyboardActions
protected void installKeyboardActions()Description copied from class:BasicInternalFrameUI
Installs the keyboard actions.- Overrides:
installKeyboardActions
in classBasicInternalFrameUI
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()Description copied from class:BasicInternalFrameUI
Uninstalls the keyboard actions.- Overrides:
uninstallKeyboardActions
in classBasicInternalFrameUI
-
uninstallComponents
protected void uninstallComponents()Description copied from class:BasicInternalFrameUI
Uninstalls the components.- Overrides:
uninstallComponents
in classBasicInternalFrameUI
-
createNorthPane
Description copied from class:BasicInternalFrameUI
Creates the north pane.- Overrides:
createNorthPane
in classBasicInternalFrameUI
- Parameters:
w
- the internal frame- Returns:
- the north pane
-
setPalette
public void setPalette(boolean isPalette) IfisPalette
istrue
, sets palette border and title- Parameters:
isPalette
- iftrue
, sets palette border and title
-
createBorderListener
Returns theMouseInputAdapter
that will be installed on the TitlePane.- Overrides:
createBorderListener
in classBasicInternalFrameUI
- Parameters:
w
- theJInternalFrame
- Returns:
- the
MouseInputAdapter
that will be installed on the TitlePane. - Since:
- 1.6
-