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 declared in class BasicInternalFrameUI
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
Modifier and TypeClassDescriptionprotected class
Basic internal frame listener.protected class
Listens for border adjustments.protected class
Component handler.protected class
Glass pane dispatcher.class
Internal frame layout.class
Internal frame property change listener. -
Field Summary
FieldsFields declared in class BasicInternalFrameUI
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
Modifier and TypeFieldDescriptionprotected MouseInputAdapter
Border listenerprotected ComponentListener
Component listenerprotected JComponent
East paneprotected JInternalFrame
frameprotected MouseInputListener
Glass pane dispatcherprotected LayoutManager
Internal frame layoutprotected JComponent
North paneprotected KeyStroke
Deprecated.As of Java 2 platform v1.3.protected PropertyChangeListener
Property change listenerprotected JComponent
South paneprotected BasicInternalFrameTitlePane
Title paneprotected JComponent
West pane -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newMetalInternalFrameUI
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected MouseInputAdapter
Returns theMouseInputAdapter
that will be installed on the TitlePane.static ComponentUI
Constructs a newMetalInternalFrameUI
instance.void
setPalette
(boolean isPalette) IfisPalette
istrue
, sets palette border and titleMethods declared in class BasicInternalFrameUI
activateFrame, closeFrame, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createNorthPane, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installDefaults, installKeyboardActions, installListeners, installMouseHandlers, installUI, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Modifier and TypeMethodDescriptionprotected void
This method is called when the frame becomes selected.protected void
This method is called when the user wants to close the frame.protected ComponentListener
Creates a component listener.protected DesktopManager
Creates the desktop manager.protected JComponent
Creates the east pane.protected MouseInputListener
Creates aGlassPaneDispatcher
.protected void
Creates the internal frame listener.protected LayoutManager
Creates the layout manager.protected JComponent
Creates the north pane.protected PropertyChangeListener
Creates the property change listener.protected JComponent
Creates the north pane.protected JComponent
Creates the west pane.protected void
This method is called when the frame is no longer selected.protected void
This method is called when the user wants to deiconify the frame.protected void
Deinstalls the mouse handlers.protected DesktopManager
Returns 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 void
This method is called when the user wants to iconify the frame.protected void
Installs the components.protected void
Installs the defaults.protected void
Installs the keyboard actions.protected void
Installs the listeners.protected void
Installs the mouse handlers.void
Installs the UI.final boolean
Returns whether or no the key binding is active.protected final boolean
Returns whether or no the key binding is registered.protected void
This method is called when the user wants to maximize the frame.protected void
This method is called when the user wants to minimize the frame.protected void
replacePane
(JComponent currentPane, JComponent newPane) Installs necessary mouse handlers onnewPane
and adds it to the frame.void
Sets the east pane.protected final void
setKeyBindingActive
(boolean b) Sets the key binding activity.protected final void
setKeyBindingRegistered
(boolean b) Sets the key binding registration.void
Sets the north pane.void
Sets the south pane.protected void
Setup the menu close key.protected void
Setup the menu open key.void
Sets the west pane.protected void
Uninstalls the components.protected void
Uninstalls the defaults.protected void
Uninstalls the keyboard actions.protected void
Uninstalls the listeners.void
Uninstalls the UI.Methods declared in class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
Modifier and TypeMethodDescriptionboolean
contains
(JComponent c, int x, int y) Returnstrue
if the specified x,y location is contained within the look and feel's defined shape of the specified component.getAccessibleChild
(JComponent c, int i) Returns thei
thAccessible
child of the object.int
Returns the number of accessible children in the object.int
getBaseline
(JComponent c, int width, int height) Returns the baseline.Returns an enum indicating how the baseline of the component changes as the size changes.void
paint
(Graphics g, JComponent c) Paints the specified component appropriately for the look and feel.void
update
(Graphics g, JComponent c) Notifies this UI delegate that it is time to paint the specified component.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Modifier and TypeMethodDescriptionprotected Object
clone()
Creates and returns a copy of this object.boolean
Indicates whether some other object is "equal to" this one.protected void
finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class
<?> getClass()
Returns the runtime class of thisObject
.int
hashCode()
Returns a hash code value for this object.final void
notify()
Wakes up a single thread that is waiting on this object's monitor.final void
Wakes up all threads that are waiting on this object's monitor.toString()
Returns a string representation of the object.final void
wait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final void
wait
(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final void
wait
(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
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
-
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
-