public class BasicInternalFrameUI extends javax.swing.plaf.InternalFrameUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicInternalFrameUI.BasicInternalFrameListener
This is a helper class that listens to the JInternalFrame for
InternalFrameEvents.
|
protected class |
BasicInternalFrameUI.BorderListener
This helper class listens to the edges of the JInternalFrame and the
TitlePane for mouse events.
|
protected class |
BasicInternalFrameUI.ComponentHandler
This helper class listens to the JDesktopPane that parents this
JInternalFrame and listens for resize events and resizes the
JInternalFrame appropriately.
|
protected class |
BasicInternalFrameUI.GlassPaneDispatcher
This helper class is used to listen to the JDesktopPane's glassPane for
MouseEvents.
|
class |
BasicInternalFrameUI.InternalFrameLayout
This helper class acts as the LayoutManager for JInternalFrames.
|
class |
BasicInternalFrameUI.InternalFramePropertyChangeListener
This helper class listens for PropertyChangeEvents from the
JInternalFrame.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.event.MouseInputAdapter |
borderListener
The MouseListener that is responsible for dragging and resizing the
JInternalFrame in response to MouseEvents.
|
protected java.awt.event.ComponentListener |
componentListener
The ComponentListener that is responsible for resizing the JInternalFrame
in response to ComponentEvents from the JDesktopPane.
|
protected javax.swing.JComponent |
eastPane
The JComponent placed at the east region of the JInternalFrame.
|
protected javax.swing.JInternalFrame |
frame
The JInternalFrame this UI is responsible for.
|
protected javax.swing.event.MouseInputListener |
glassPaneDispatcher
The MouseListener that is responsible for activating the JInternalFrame
when the mouse press activates one of its descendents.
|
protected java.awt.LayoutManager |
internalFrameLayout
The LayoutManager used in the JInternalFrame.
|
protected javax.swing.JComponent |
northPane
The JComponent placed at the north region of the JInternalFrame.
|
protected javax.swing.KeyStroke |
openMenuKey
Deprecated.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener
The PropertyChangeListener that is responsible for listening to
PropertyChangeEvents from the JInternalFrame.
|
protected javax.swing.JComponent |
southPane
The JComponent placed at the south region of the JInternalFrame.
|
protected BasicInternalFrameTitlePane |
titlePane
The TitlePane displayed at the top of the JInternalFrame.
|
protected javax.swing.JComponent |
westPane
The JComponent placed at the west region of the JInternalFrame.
|
| Constructor and Description |
|---|
BasicInternalFrameUI(javax.swing.JInternalFrame b)
Creates a new BasicInternalFrameUI object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateFrame(javax.swing.JInternalFrame f)
This is a convenience method that activates the JInternalFrame.
|
protected void |
closeFrame(javax.swing.JInternalFrame f)
This is a convenience method that closes the JInternalFrame.
|
protected javax.swing.event.MouseInputAdapter |
createBorderListener(javax.swing.JInternalFrame w)
This method returns a new BorderListener for the given JInternalFrame.
|
protected java.awt.event.ComponentListener |
createComponentListener()
This method returns a new ComponentListener for the JDesktopPane.
|
protected javax.swing.DesktopManager |
createDesktopManager()
This method returns a default DesktopManager that can be used with this
JInternalFrame.
|
protected javax.swing.JComponent |
createEastPane(javax.swing.JInternalFrame w)
This method creates the east pane used in the JInternalFrame.
|
protected javax.swing.event.MouseInputListener |
createGlassPaneDispatcher()
This method returns a new GlassPaneDispatcher.
|
protected void |
createInternalFrameListener()
This method creates a new InternalFrameListener for the JInternalFrame.
|
protected java.awt.LayoutManager |
createLayoutManager()
This method creates a new LayoutManager for the JInternalFrame.
|
protected javax.swing.JComponent |
createNorthPane(javax.swing.JInternalFrame w)
This method creates the north pane used in the JInternalFrame.
|
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
This method creates a new PropertyChangeListener for the JInternalFrame.
|
protected javax.swing.JComponent |
createSouthPane(javax.swing.JInternalFrame w)
This method creates the south pane used in the JInternalFrame.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b)
This method will create a new BasicInternalFrameUI for the given
JComponent.
|
protected javax.swing.JComponent |
createWestPane(javax.swing.JInternalFrame w)
This method creates the west pane used in the JInternalFrame.
|
protected void |
deactivateFrame(javax.swing.JInternalFrame f)
This is a convenience method that deactivates the JInternalFrame.
|
protected void |
deiconifyFrame(javax.swing.JInternalFrame f)
This is a convenience method that deiconifies the JInternalFrame.
|
protected void |
deinstallMouseHandlers(javax.swing.JComponent c)
This method removes the necessary MouseListeners from the given
JComponent.
|
protected javax.swing.DesktopManager |
getDesktopManager()
This method returns the DesktopManager to use with the JInternalFrame.
|
javax.swing.JComponent |
getEastPane()
This method returns the east pane.
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent x)
This method returns the maximum size of the given JComponent.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent x)
This method returns the minimum size of the given JComponent.
|
javax.swing.JComponent |
getNorthPane()
This method returns the north pane.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent x)
This method returns the preferred size of the given JComponent.
|
javax.swing.JComponent |
getSouthPane()
This method returns the south pane.
|
javax.swing.JComponent |
getWestPane()
This method returns the west pane.
|
protected void |
iconifyFrame(javax.swing.JInternalFrame f)
This is a convenience method that iconifies the JInternalFrame.
|
protected void |
installComponents()
This method installs the Components for the JInternalFrame.
|
protected void |
installDefaults()
This method installs the defaults specified by the look and feel.
|
protected void |
installKeyboardActions()
This method installs the keyboard actions for the JInternalFrame.
|
protected void |
installListeners()
This method installs the listeners for the JInternalFrame.
|
protected void |
installMouseHandlers(javax.swing.JComponent c)
This method installs the necessary MouseListeners from the given
JComponent.
|
void |
installUI(javax.swing.JComponent c)
This method installs a UI for the JInternalFrame.
|
boolean |
isKeyBindingActive()
DOCUMENT ME!
|
protected boolean |
isKeyBindingRegistered()
DOCUMENT ME!
|
protected void |
maximizeFrame(javax.swing.JInternalFrame f)
This is a convenience method that maximizes the JInternalFrame.
|
protected void |
minimizeFrame(javax.swing.JInternalFrame f)
This is a convenience method that minimizes the JInternalFrame.
|
protected void |
replacePane(javax.swing.JComponent currentPane,
javax.swing.JComponent newPane)
This method replaces the currentPane with the newPane.
|
void |
setEastPane(javax.swing.JComponent c)
This method sets the east pane to be the given JComponent.
|
protected void |
setKeyBindingActive(boolean b)
DOCUMENT ME!
|
protected void |
setKeyBindingRegistered(boolean b)
DOCUMENT ME!
|
void |
setNorthPane(javax.swing.JComponent c)
This method sets the north pane to be the given JComponent.
|
void |
setSouthPane(javax.swing.JComponent c)
This method sets the south pane to be the given JComponent.
|
protected void |
setupMenuCloseKey()
DOCUMENT ME!
|
protected void |
setupMenuOpenKey()
DOCUMENT ME!
|
void |
setWestPane(javax.swing.JComponent c)
This method sets the west pane to be the given JComponent.
|
protected void |
uninstallComponents()
This method uninstalls the Components for the JInternalFrame.
|
protected void |
uninstallDefaults()
This method uninstalls the defaults for the JInternalFrame.
|
protected void |
uninstallKeyboardActions()
This method uninstalls the keyboard actions for the JInternalFrame.
|
protected void |
uninstallListeners()
This method uninstalls the listeners for the JInternalFrame.
|
void |
uninstallUI(javax.swing.JComponent c)
This method reverses the work done by installUI.
|
protected javax.swing.event.MouseInputAdapter borderListener
protected java.awt.event.ComponentListener componentListener
protected javax.swing.event.MouseInputListener glassPaneDispatcher
protected java.beans.PropertyChangeListener propertyChangeListener
protected javax.swing.JComponent eastPane
protected javax.swing.JComponent northPane
protected javax.swing.JComponent southPane
protected javax.swing.JComponent westPane
protected javax.swing.KeyStroke openMenuKey
protected BasicInternalFrameTitlePane titlePane
protected javax.swing.JInternalFrame frame
protected java.awt.LayoutManager internalFrameLayout
public BasicInternalFrameUI(javax.swing.JInternalFrame b)
b - The JInternalFrame this UI will represent.public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
b - The JComponent to create a BasicInternalFrameUI for.public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIc - The JComponent to install this UI on.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIc - The JComponent to uninstall this UI for.ComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected void installDefaults()
protected void installKeyboardActions()
protected void installComponents()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected java.awt.LayoutManager createLayoutManager()
protected java.beans.PropertyChangeListener createPropertyChangeListener()
public java.awt.Dimension getPreferredSize(javax.swing.JComponent x)
getPreferredSize in class javax.swing.plaf.ComponentUIx - The JComponent to find a preferred size for.public java.awt.Dimension getMinimumSize(javax.swing.JComponent x)
getMinimumSize in class javax.swing.plaf.ComponentUIx - The JComponent to find a minimum size for.public java.awt.Dimension getMaximumSize(javax.swing.JComponent x)
getMaximumSize in class javax.swing.plaf.ComponentUIx - The JComponent to find a maximum size for.protected void replacePane(javax.swing.JComponent currentPane, javax.swing.JComponent newPane)
currentPane - The old pane to remove.newPane - The new pane to install.protected void deinstallMouseHandlers(javax.swing.JComponent c)
c - The JComponent to remove MouseListeners from.protected void installMouseHandlers(javax.swing.JComponent c)
c - The JComponent to install MouseListeners on.protected javax.swing.JComponent createNorthPane(javax.swing.JInternalFrame w)
w - The JInternalFrame to create a north pane for.protected javax.swing.JComponent createWestPane(javax.swing.JInternalFrame w)
w - The JInternalFrame to create a west pane for.protected javax.swing.JComponent createSouthPane(javax.swing.JInternalFrame w)
w - The JInternalFrame to create a south pane for.protected javax.swing.JComponent createEastPane(javax.swing.JInternalFrame w)
w - The JInternalFrame to create an east pane for.protected javax.swing.event.MouseInputAdapter createBorderListener(javax.swing.JInternalFrame w)
w - The JIntenalFrame to create a BorderListener for.protected void createInternalFrameListener()
protected final boolean isKeyBindingRegistered()
protected final void setKeyBindingRegistered(boolean b)
b - DOCUMENT ME!public final boolean isKeyBindingActive()
protected final void setKeyBindingActive(boolean b)
b - DOCUMENT ME!protected void setupMenuOpenKey()
protected void setupMenuCloseKey()
public javax.swing.JComponent getNorthPane()
public void setNorthPane(javax.swing.JComponent c)
c - The new north pane.public javax.swing.JComponent getSouthPane()
public void setSouthPane(javax.swing.JComponent c)
c - The new south pane.public void setEastPane(javax.swing.JComponent c)
c - The new east pane.public javax.swing.JComponent getEastPane()
public void setWestPane(javax.swing.JComponent c)
c - The new west pane.public javax.swing.JComponent getWestPane()
protected javax.swing.DesktopManager getDesktopManager()
protected javax.swing.DesktopManager createDesktopManager()
protected void closeFrame(javax.swing.JInternalFrame f)
f - The JInternalFrame to close.protected void maximizeFrame(javax.swing.JInternalFrame f)
f - The JInternalFrame to maximize.protected void minimizeFrame(javax.swing.JInternalFrame f)
f - The JInternalFrame to minimize.protected void iconifyFrame(javax.swing.JInternalFrame f)
f - The JInternalFrame to iconify.protected void deiconifyFrame(javax.swing.JInternalFrame f)
f - The JInternalFrame to deiconify.protected void activateFrame(javax.swing.JInternalFrame f)
f - The JInternalFrame to activate.protected void deactivateFrame(javax.swing.JInternalFrame f)
f - the JInternalFrame to deactivateprotected java.awt.event.ComponentListener createComponentListener()
protected javax.swing.event.MouseInputListener createGlassPaneDispatcher()