public class MetalInternalFrameUI extends javax.swing.plaf.basic.BasicInternalFrameUI
JInternalFrame component.javax.swing.plaf.basic.BasicInternalFrameUI.BasicInternalFrameListener, javax.swing.plaf.basic.BasicInternalFrameUI.BorderListener, javax.swing.plaf.basic.BasicInternalFrameUI.ComponentHandler, javax.swing.plaf.basic.BasicInternalFrameUI.GlassPaneDispatcher, javax.swing.plaf.basic.BasicInternalFrameUI.InternalFrameLayout, javax.swing.plaf.basic.BasicInternalFrameUI.InternalFramePropertyChangeListener| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
IS_PALETTE
The key (
JInternalFrame.isPalette) for the client property
that controls whether the internal frame is displayed using the palette
style. |
| Constructor and Description |
|---|
MetalInternalFrameUI(javax.swing.JInternalFrame frame)
Constructs a new instance of
MetalInternalFrameUI. |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.JComponent |
createNorthPane(javax.swing.JInternalFrame w)
Creates and returns the component that will be used for the north pane
of the
JInternalFrame. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent component)
Returns an instance of
MetalInternalFrameUI. |
protected void |
installKeyboardActions()
Installs keyboard actions.
|
protected void |
installListeners()
Adds the required listeners.
|
void |
installUI(javax.swing.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, uninstallUIprotected static java.lang.String IS_PALETTE
JInternalFrame.isPalette) for the client property
that controls whether the internal frame is displayed using the palette
style.public MetalInternalFrameUI(javax.swing.JInternalFrame frame)
MetalInternalFrameUI.frame - the frame.public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
MetalInternalFrameUI.component - the internal frame.MetalInternalFrameUI.public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicInternalFrameUIc - the component.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected javax.swing.JComponent createNorthPane(javax.swing.JInternalFrame w)
JInternalFrame.createNorthPane in class javax.swing.plaf.basic.BasicInternalFrameUIw - 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 javax.swing.plaf.basic.BasicInternalFrameUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicInternalFrameUIprotected void installKeyboardActions()
showSystemMenu Action that is installed by the
BasicInternalFrameUI, since Metal JInternalFrames don't have
a system menu.installKeyboardActions in class javax.swing.plaf.basic.BasicInternalFrameUI