APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.plaf.basic

public Class BasicInternalFrameUI

extends InternalFrameUI
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.metal.MetalInternalFrameUI, javax.swing.plaf.synth.SynthInternalFrameUI, com.sun.java.swing.plaf.motif.MotifInternalFrameUI
Imports
java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.plaf.*, javax.swing.event.*, java.beans.*, sun.swing.DefaultLookup, .UIAction

A basic L&F implementation of JInternalFrame.
Authors
David Kloba, Rich Schiavi

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
protected class
BasicInternalFrameUI.BorderListener

Listens for border adjustments.

protected class
protected class
private class
public class
public class
BasicInternalFrameUI.InternalFramePropertyChangeListener

Internal frame property change listener.

Field Summary

Modifier and TypeField and Description
protected MouseInputAdapter
borderListener

Border listener

protected ComponentListener
componentListener

Component listener

private boolean
private boolean
protected JComponent
eastPane

East pane

protected JInternalFrame
frame

frame

protected MouseInputListener
glassPaneDispatcher

Glass pane dispatcher

private BasicInternalFrameUI.Handler
protected LayoutManager
internalFrameLayout

Internal frame layout

private InternalFrameListener
private boolean
private boolean
protected JComponent
northPane

North pane

protected KeyStroke
openMenuKey

Deprecated As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used.
private Rectangle
protected PropertyChangeListener
propertyChangeListener

Property change listener

private boolean
private static DesktopManager
protected JComponent
southPane

South pane

protected BasicInternalFrameTitlePane
titlePane

Title pane

protected JComponent
westPane

West pane

Constructor Summary

AccessConstructor and Description
public
BasicInternalFrameUI(JInternalFrame
the internal frame
b
)

Constructs a BasicInternalFrameUI.

Method Summary

Modifier and TypeMethod and Description
protected void
activateFrame(JInternalFrame
the JInternalFrame being viewed
f
)

This method is called when the frame becomes selected.

private void
protected void
closeFrame(JInternalFrame
the JInternalFrame being viewed
f
)

This method is called when the user wants to close the frame.

protected MouseInputAdapter

Returns:

the border listener
createBorderListener
(JInternalFrame
the internal frame
w
)

Creates the border listener.

protected ComponentListener

Returns:

a component listener
createComponentListener
()

Creates a component listener.

protected DesktopManager

Returns:

the desktop manager
createDesktopManager
()

Creates the desktop manager.

protected JComponent

Returns:

the east pane
createEastPane
(JInternalFrame
the internal frame
w
)

Creates the east pane.

protected MouseInputListener

Returns:

a GlassPaneDispatcher
createGlassPaneDispatcher
()

Creates a GlassPaneDispatcher.

pack-priv InputMap
createInputMap(int condition)

protected void
createInternalFrameListener()

Creates the internal frame listener.

protected LayoutManager

Returns:

the layout manager
createLayoutManager
()

Creates the layout manager.

protected JComponent

Returns:

the north pane
createNorthPane
(JInternalFrame
the internal frame
w
)

Creates the north pane.

protected PropertyChangeListener

Returns:

the property change listener
createPropertyChangeListener
()

Creates the property change listener.

protected JComponent

Returns:

the north pane
createSouthPane
(JInternalFrame
the internal frame
w
)

Creates the north pane.

public static ComponentUI

Returns:

a component UI
createUI
(JComponent
a component
b
)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a component UI.

protected JComponent

Returns:

the west pane
createWestPane
(JInternalFrame
the internal frame
w
)

Creates the west pane.

protected void
deactivateFrame(JInternalFrame
the JInternalFrame being viewed
f
)

This method is called when the frame is no longer selected.

protected void
deiconifyFrame(JInternalFrame
the JInternalFrame being viewed
f
)

This method is called when the user wants to deiconify the frame.

protected void
deinstallMouseHandlers(JComponent
the component
c
)

Deinstalls the mouse handlers.

protected DesktopManager

Returns:

the proper DesktopManager
getDesktopManager
()

Returns the proper DesktopManager.

public JComponent

Returns:

the east pane
getEastPane
()

Returns the east pane.

private BasicInternalFrameUI.Handler
pack-priv InputMap
getInputMap(int condition)

public Dimension

Returns:

the maximum size
getMaximumSize
(JComponent
the component
x
)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Returns the maximum size.

public Dimension

Returns:

the minimum size
getMinimumSize
(JComponent
the component
x
)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Returns the minimum size.

public JComponent

Returns:

the north pane
getNorthPane
()

Returns the north pane.

public Dimension

Returns:

the preferred size
getPreferredSize
(JComponent
the component
x
)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Returns the preferred size.

public JComponent

Returns:

the south pane
getSouthPane
()

Returns the south pane.

public JComponent

Returns:

the west pane
getWestPane
()

Returns the west pane.

private WindowFocusListener
protected void
iconifyFrame(JInternalFrame
the JInternalFrame being viewed
f
)

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(JComponent
the component
c
)

Installs the mouse handlers.

public void
installUI(JComponent
the component
c
)

Overrides javax.swing.plaf.ComponentUI.installUI.

Installs the UI.

public final boolean

Returns:

whether or no the key binding is active
isKeyBindingActive
()

Returns whether or no the key binding is active.

protected final boolean

Returns:

whether or no the key binding is registered
isKeyBindingRegistered
()

Returns whether or no the key binding is registered.

pack-priv static void
protected void
maximizeFrame(JInternalFrame
the JInternalFrame being viewed
f
)

This method is called when the user wants to maximize the frame.

protected void
minimizeFrame(JInternalFrame
the JInternalFrame being viewed
f
)

This method is called when the user wants to minimize the frame.

protected void
replacePane(JComponent
this JComponent is the current pane being viewed that has mouse handlers installed
currentPane
,
JComponent
this JComponent is the pane which will be added and have mouse handlers installed
newPane
)

Installs necessary mouse handlers on newPane and adds it to the frame.

public void
setEastPane(JComponent
the new east pane
c
)

Sets the east pane.

protected final void
setKeyBindingActive(boolean
new value for key binding activity
b
)

Sets the key binding activity.

protected final void
setKeyBindingRegistered(boolean
new value for key binding registration
b
)

Sets the key binding registration.

public void
setNorthPane(JComponent
the new north pane
c
)

Sets the north pane.

public void
setSouthPane(JComponent
the new south pane
c
)

Sets the south pane.

protected void
setupMenuCloseKey()

Setup the menu close key.

protected void
setupMenuOpenKey()

Setup the menu open key.

public void
setWestPane(JComponent
the new west pane
c
)

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.

public void
uninstallUI(JComponent
the component
c
)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Uninstalls the UI.

pack-priv void