|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
javax.swing.plaf.metal.MetalInternalFrameUI
public class MetalInternalFrameUI
A UI delegate for the JInternalFrame component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameUI |
|---|
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class javax.swing.plaf.basic.BasicInternalFrameUI |
|---|
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane |
| Constructor Summary | |
|---|---|
MetalInternalFrameUI(JInternalFrame frame)
Constructs a new instance of MetalInternalFrameUI. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static String IS_PALETTE
JInternalFrame.isPalette) for the client property
that controls whether the internal frame is displayed using the palette
style.
| Constructor Detail |
|---|
public MetalInternalFrameUI(JInternalFrame frame)
MetalInternalFrameUI.
frame - the frame.| Method Detail |
|---|
public static ComponentUI createUI(JComponent component)
MetalInternalFrameUI.
component - the internal frame.
MetalInternalFrameUI.public void installUI(JComponent c)
installUI in class BasicInternalFrameUIc - the component.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected JComponent createNorthPane(JInternalFrame w)
JInternalFrame.
createNorthPane in class 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 BasicInternalFrameUIprotected void uninstallListeners()
uninstallListeners in class BasicInternalFrameUIprotected void installKeyboardActions()
showSystemMenu Action that is installed by the
BasicInternalFrameUI, since Metal JInternalFrames don't have
a system menu.
installKeyboardActions in class BasicInternalFrameUI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||