javax.swing.plaf.metal
public class MetalInternalFrameUI extends BasicInternalFrameUI
JInternalFrame
component.BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected static String |
IS_PALETTE
The key (
JInternalFrame.isPalette ) for the client property
that controls whether the internal frame is displayed using the palette
style. |
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
Constructor and Description |
---|
MetalInternalFrameUI(JInternalFrame frame)
Constructs a new instance of
MetalInternalFrameUI . |
Modifier and Type | Method and Description |
---|---|
protected JComponent |
createNorthPane(JInternalFrame w)
Creates and returns the component that will be used for the north pane
of the
JInternalFrame . |
static ComponentUI |
createUI(JComponent component)
Returns an instance of
MetalInternalFrameUI . |
protected void |
installKeyboardActions()
Installs keyboard actions.
|
protected void |
installListeners()
Adds the required listeners.
|
void |
installUI(JComponent c)
Sets the fields and properties for the component.
|
void |
setPalette(boolean isPalette)
Sets the state of the
JInternalFrame to reflect whether or not
it is using the palette style. |
protected void |
uninstallListeners()
Removes the listeners used.
|
activateFrame, closeFrame, createBorderListener, 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, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update
protected static String IS_PALETTE
JInternalFrame.isPalette
) for the client property
that controls whether the internal frame is displayed using the palette
style.public MetalInternalFrameUI(JInternalFrame frame)
MetalInternalFrameUI
.frame
- the frame.public static ComponentUI createUI(JComponent component)
MetalInternalFrameUI
.component
- the internal frame.MetalInternalFrameUI
.public void installUI(JComponent c)
installUI
in class BasicInternalFrameUI
c
- the component.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected JComponent createNorthPane(JInternalFrame w)
JInternalFrame
.createNorthPane
in class BasicInternalFrameUI
w
- the internal frame.MetalInternalFrameTitlePane
.public void setPalette(boolean isPalette)
JInternalFrame
to reflect whether or not
it is using the palette style. When a frame is displayed as a palette,
it uses a different border and the title pane is drawn differently.isPalette
- use the palette style?protected void installListeners()
installListeners
in class BasicInternalFrameUI
protected void uninstallListeners()
uninstallListeners
in class BasicInternalFrameUI
protected void installKeyboardActions()
showSystemMenu
Action that is installed by the
BasicInternalFrameUI
, since Metal JInternalFrames don't have
a system menu.installKeyboardActions
in class BasicInternalFrameUI