MetalInternalFrameUI
, SynthInternalFrameUI
public class BasicInternalFrameUI extends InternalFrameUI
Modifier and Type | Class | Description |
---|---|---|
protected class |
BasicInternalFrameUI.BasicInternalFrameListener |
Basic internal frame listener. |
protected class |
BasicInternalFrameUI.BorderListener |
Listens for border adjustments. |
protected class |
BasicInternalFrameUI.ComponentHandler |
Component handler. |
protected class |
BasicInternalFrameUI.GlassPaneDispatcher |
Glass pane dispatcher. |
class |
BasicInternalFrameUI.InternalFrameLayout |
Internal frame layout. |
class |
BasicInternalFrameUI.InternalFramePropertyChangeListener |
Internal frame property change listener. |
Modifier and Type | Field | Description |
---|---|---|
protected MouseInputAdapter |
borderListener |
Border listener |
protected ComponentListener |
componentListener |
Component listener |
protected JComponent |
eastPane |
East pane |
protected JInternalFrame |
frame |
frame |
protected MouseInputListener |
glassPaneDispatcher |
Glass pane dispatcher |
protected LayoutManager |
internalFrameLayout |
Internal frame layout |
protected JComponent |
northPane |
North pane |
protected KeyStroke |
openMenuKey |
Deprecated. As of Java 2 platform v1.3. |
protected PropertyChangeListener |
propertyChangeListener |
Property change listener |
protected JComponent |
southPane |
South pane |
protected BasicInternalFrameTitlePane |
titlePane |
Title pane |
protected JComponent |
westPane |
West pane |
Constructor | Description |
---|---|
BasicInternalFrameUI |
Constructs a BasicInternalFrameUI . |
Modifier and Type | Method | Description |
---|---|---|
protected void |
activateFrame |
This method is called when the frame becomes selected. |
protected void |
closeFrame |
This method is called when the user wants to close the frame. |
protected MouseInputAdapter |
createBorderListener |
Creates the border listener. |
protected ComponentListener |
createComponentListener() |
Creates a component listener. |
protected DesktopManager |
createDesktopManager() |
Creates the desktop manager. |
protected JComponent |
createEastPane |
Creates the east pane. |
protected MouseInputListener |
createGlassPaneDispatcher() |
Creates a GlassPaneDispatcher . |
protected void |
createInternalFrameListener() |
Creates the internal frame listener. |
protected LayoutManager |
createLayoutManager() |
Creates the layout manager. |
protected JComponent |
createNorthPane |
Creates the north pane. |
protected PropertyChangeListener |
createPropertyChangeListener() |
Creates the property change listener. |
protected JComponent |
createSouthPane |
Creates the north pane. |
static ComponentUI |
createUI |
Returns a component UI. |
protected JComponent |
createWestPane |
Creates the west pane. |
protected void |
deactivateFrame |
This method is called when the frame is no longer selected. |
protected void |
deiconifyFrame |
This method is called when the user wants to deiconify the frame. |
protected void |
deinstallMouseHandlers |
Deinstalls the mouse handlers. |
protected DesktopManager |
getDesktopManager() |
Returns the proper DesktopManager. |
JComponent |
getEastPane() |
Returns the east pane. |
Dimension |
getMaximumSize |
Returns the maximum size. |
Dimension |
getMinimumSize |
Returns the minimum size. |
JComponent |
getNorthPane() |
Returns the north pane. |
Dimension |
getPreferredSize |
Returns the preferred size. |
JComponent |
getSouthPane() |
Returns the south pane. |
JComponent |
getWestPane() |
Returns the west pane. |
protected void |
iconifyFrame |
This method is called when the user wants to iconify the frame. |
protected void |
installComponents() |
Installs the components. |
protected void |
installDefaults() |
Installs the defaults. |
protected void |
installKeyboardActions() |
Installs the keyboard actions. |
protected void |
installListeners() |
Installs the listeners. |
protected void |
installMouseHandlers |
Installs the mouse handlers. |
void |
installUI |
Installs the UI. |
final boolean |
isKeyBindingActive() |
Returns whether or no the key binding is active. |
protected final boolean |
isKeyBindingRegistered() |
Returns whether or no the key binding is registered. |
protected void |
maximizeFrame |
This method is called when the user wants to maximize the frame. |
protected void |
minimizeFrame |
This method is called when the user wants to minimize the frame. |
protected void |
replacePane |
Installs necessary mouse handlers on newPane and adds it to the frame. |
void |
setEastPane |
Sets the east pane. |
protected final void |
setKeyBindingActive |
Sets the key binding activity. |
protected final void |
setKeyBindingRegistered |
Sets the key binding registration. |
void |
setNorthPane |
Sets the north pane. |
void |
setSouthPane |
Sets the south pane. |
protected void |
setupMenuCloseKey() |
Setup the menu close key. |
protected void |
setupMenuOpenKey() |
Setup the menu open key. |
void |
setWestPane |
Sets the west pane. |
protected void |
uninstallComponents() |
Uninstalls the components. |
protected void |
uninstallDefaults() |
Uninstalls the defaults. |
protected void |
uninstallKeyboardActions() |
Uninstalls the keyboard actions. |
protected void |
uninstallListeners() |
Uninstalls the listeners. |
void |
uninstallUI |
Uninstalls the UI. |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
protected JInternalFrame frame
protected MouseInputAdapter borderListener
protected PropertyChangeListener propertyChangeListener
protected LayoutManager internalFrameLayout
protected ComponentListener componentListener
protected MouseInputListener glassPaneDispatcher
protected JComponent northPane
protected JComponent southPane
protected JComponent westPane
protected JComponent eastPane
protected BasicInternalFrameTitlePane titlePane
@Deprecated protected KeyStroke openMenuKey
public BasicInternalFrameUI(JInternalFrame b)
BasicInternalFrameUI
.b
- the internal framepublic static ComponentUI createUI(JComponent b)
b
- a componentpublic void installUI(JComponent c)
installUI
in class ComponentUI
c
- the componentpublic void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
- the componentprotected void installDefaults()
protected void installKeyboardActions()
protected void installComponents()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected LayoutManager createLayoutManager()
protected PropertyChangeListener createPropertyChangeListener()
public Dimension getPreferredSize(JComponent x)
getPreferredSize
in class ComponentUI
x
- the componentpublic Dimension getMinimumSize(JComponent x)
getMinimumSize
in class ComponentUI
x
- the componentpublic Dimension getMaximumSize(JComponent x)
getMaximumSize
in class ComponentUI
x
- the componentprotected void replacePane(JComponent currentPane, JComponent newPane)
newPane
and adds it to the frame. Reverse process for the currentPane
.currentPane
- this Jcomponent
is the current pane being viewed that has mouse handlers installednewPane
- this Jcomponent
is the pane which will be added and have mouse handlers installedprotected void deinstallMouseHandlers(JComponent c)
c
- the componentprotected void installMouseHandlers(JComponent c)
c
- the componentprotected JComponent createNorthPane(JInternalFrame w)
w
- the internal frameprotected JComponent createSouthPane(JInternalFrame w)
w
- the internal frameprotected JComponent createWestPane(JInternalFrame w)
w
- the internal frameprotected JComponent createEastPane(JInternalFrame w)
w
- the internal frameprotected MouseInputAdapter createBorderListener(JInternalFrame w)
w
- the internal frameprotected void createInternalFrameListener()
protected final boolean isKeyBindingRegistered()
protected final void setKeyBindingRegistered(boolean b)
b
- new value for key binding registrationpublic final boolean isKeyBindingActive()
protected final void setKeyBindingActive(boolean b)
b
- new value for key binding activityprotected void setupMenuOpenKey()
protected void setupMenuCloseKey()
public JComponent getNorthPane()
public void setNorthPane(JComponent c)
c
- the new north panepublic JComponent getSouthPane()
public void setSouthPane(JComponent c)
c
- the new south panepublic JComponent getWestPane()
public void setWestPane(JComponent c)
c
- the new west panepublic JComponent getEastPane()
public void setEastPane(JComponent c)
c
- the new east paneprotected DesktopManager getDesktopManager()
protected DesktopManager createDesktopManager()
protected void closeFrame(JInternalFrame f)
playCloseSound
Action is fired. This action is delegated to the desktopManager.f
- the JInternalFrame
being viewedprotected void maximizeFrame(JInternalFrame f)
playMaximizeSound
Action is fired. This action is delegated to the desktopManager.f
- the JInternalFrame
being viewedprotected void minimizeFrame(JInternalFrame f)
playRestoreDownSound
Action is fired. This action is delegated to the desktopManager.f
- the JInternalFrame
being viewedprotected void iconifyFrame(JInternalFrame f)
playMinimizeSound
Action is fired. This action is delegated to the desktopManager.f
- the JInternalFrame
being viewedprotected void deiconifyFrame(JInternalFrame f)
playRestoreUpSound
Action is fired. This action is delegated to the desktopManager.f
- the JInternalFrame
being viewedprotected void activateFrame(JInternalFrame f)
f
- the JInternalFrame
being viewedprotected void deactivateFrame(JInternalFrame f)
f
- the JInternalFrame
being viewedprotected ComponentListener createComponentListener()
protected MouseInputListener createGlassPaneDispatcher()
GlassPaneDispatcher
.GlassPaneDispatcher
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicInternalFrameUI.html