This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicInternalFrameUI

java.lang.Object extended by javax.swing.plaf.ComponentUI extended by javax.swing.plaf.InternalFrameUI extended by javax.swing.plaf.basic.BasicInternalFrameUI
Direct Known Subclasses:
MetalInternalFrameUI

public class BasicInternalFrameUI
extends InternalFrameUI

A basic L&F implementation of JInternalFrame.


Nested Class Summary
protected class

          
protected class

           Listens for border adjustments.
protected class

          
protected class

          
 class

          
 class

          
 
Field Summary
protected MouseInputAdapter borderListener
          
protected ComponentListener componentListener
          
protected JComponent eastPane
          
protected JInternalFrame frame
          
protected MouseInputListener glassPaneDispatcher
          
protected LayoutManager internalFrameLayout
          
protected JComponent northPane
          
protected KeyStroke openMenuKey
          As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected PropertyChangeListener propertyChangeListener
          
protected JComponent southPane
          
protected BasicInternalFrameTitlePane titlePane
          
protected JComponent westPane
          
 
Constructor Summary

          
 
Method Summary
protected 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 MouseInputAdapter

          
protected ComponentListener

          
protected DesktopManager

          
protected JComponent

          
protected MouseInputListener

          
protected void

          
protected LayoutManager

          
protected JComponent

          
protected PropertyChangeListener

          
protected JComponent

          
static ComponentUI

          
protected JComponent

          
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

          
protected DesktopManager

          Returns the proper DesktopManager.
 JComponent

          
 Dimension

          Returns the specified component's maximum size appropriate for the look and feel.
 Dimension

          Returns the specified component's minimum size appropriate for the look and feel.
 JComponent

          
 Dimension

          Returns the specified component's preferred size appropriate for the look and feel.
 JComponent

          
 JComponent

          
protected void

          This method is called when the user wants to iconify the frame.
protected void

          
protected void

          
protected void

          
protected void

          
protected void

          
 void

          Configures the specified component appropriate for the look and feel.
 boolean

          
protected boolean

          
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 on newPane and adds it to the frame.
 void

          
protected void

          
protected void

          
 void

          
 void

          
protected void

          
protected void

          
 void

          
protected void

          
protected void

          
protected void

          
protected void

          
 void

          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderListener

protected MouseInputAdapter borderListener

componentListener

protected ComponentListener componentListener

eastPane

protected JComponent eastPane

frame

protected JInternalFrame frame

glassPaneDispatcher

protected MouseInputListener glassPaneDispatcher

internalFrameLayout

protected LayoutManager internalFrameLayout

northPane

protected JComponent northPane

openMenuKey

protected KeyStroke openMenuKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.

propertyChangeListener

protected PropertyChangeListener propertyChangeListener

southPane

protected JComponent southPane

titlePane

protected BasicInternalFrameTitlePane titlePane

westPane

protected JComponent westPane
Constructor Detail

BasicInternalFrameUI

public BasicInternalFrameUI(JInternalFrame b)
Parameters:
b
Method Detail

activateFrame

protected void activateFrame(JInternalFrame f)
This method is called when the frame becomes selected. This action is delegated to the desktopManager.

Parameters:
f

closeFrame

protected void closeFrame(JInternalFrame f)
This method is called when the user wants to close the frame. The playCloseSound Action is fired. This action is delegated to the desktopManager.

Parameters:
f

createBorderListener

protected MouseInputAdapter createBorderListener(JInternalFrame w)
Parameters:
w

createComponentListener

protected ComponentListener createComponentListener()

createDesktopManager

protected DesktopManager createDesktopManager()

createEastPane

protected JComponent createEastPane(JInternalFrame w)
Parameters:
w

createGlassPaneDispatcher

protected MouseInputListener createGlassPaneDispatcher()

createInternalFrameListener

protected void createInternalFrameListener()

createLayoutManager

protected LayoutManager createLayoutManager()

createNorthPane

protected JComponent createNorthPane(JInternalFrame w)
Parameters:
w

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()

createSouthPane

protected JComponent createSouthPane(JInternalFrame w)
Parameters:
w

createUI

public static ComponentUI createUI(JComponent b)
Parameters:
b

createWestPane

protected JComponent createWestPane(JInternalFrame w)
Parameters:
w

deactivateFrame

protected void deactivateFrame(JInternalFrame f)
This method is called when the frame is no longer selected. This action is delegated to the desktopManager.

Parameters:
f

deiconifyFrame

protected void deiconifyFrame(JInternalFrame f)
This method is called when the user wants to deiconify the frame. The playRestoreUpSound Action is fired. This action is delegated to the desktopManager.

Parameters:
f

deinstallMouseHandlers

protected void deinstallMouseHandlers(JComponent c)
Parameters:
c

getDesktopManager

protected DesktopManager getDesktopManager()
Returns the proper DesktopManager. Calls getDesktopPane() to find the JDesktop component and returns the desktopManager from it. If this fails, it will return a default DesktopManager that should work in arbitrary parents.


getEastPane

public JComponent getEastPane()

getMaximumSize

public Dimension getMaximumSize(JComponent x)
Overrides:
getMaximumSize in class ComponentUI
Parameters:
x

getMinimumSize

public Dimension getMinimumSize(JComponent x)
Overrides:
getMinimumSize in class ComponentUI
Parameters:
x

getNorthPane

public JComponent getNorthPane()

getPreferredSize

public Dimension getPreferredSize(JComponent x)
Overrides:
getPreferredSize in class ComponentUI
Parameters:
x

getSouthPane

public JComponent getSouthPane()

getWestPane

public JComponent getWestPane()

iconifyFrame

protected void iconifyFrame(JInternalFrame f)
This method is called when the user wants to iconify the frame. The playMinimizeSound Action is fired. This action is delegated to the desktopManager.

Parameters:
f

installComponents

protected void installComponents()

installDefaults

protected void installDefaults()

installKeyboardActions

protected void installKeyboardActions()

installListeners

protected void installListeners()

installMouseHandlers

protected void installMouseHandlers(JComponent c)
Parameters:
c

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
Parameters:
c

isKeyBindingActive

public final boolean isKeyBindingActive()

isKeyBindingRegistered

protected final boolean isKeyBindingRegistered()

maximizeFrame

protected void maximizeFrame(JInternalFrame f)
This method is called when the user wants to maximize the frame. The playMaximizeSound Action is fired. This action is delegated to the desktopManager.

Parameters:
f

minimizeFrame

protected void minimizeFrame(JInternalFrame f)
This method is called when the user wants to minimize the frame. The playRestoreDownSound Action is fired. This action is delegated to the desktopManager.

Parameters:
f

replacePane

protected void replacePane(JComponent currentPane,
                           JComponent newPane)
Installs necessary mouse handlers on newPane and adds it to the frame. Reverse process for the currentPane.

Parameters:
currentPane
newPane

setEastPane

public void setEastPane(JComponent c)
Parameters:
c

setKeyBindingActive

protected final void setKeyBindingActive(boolean b)
Parameters:
b

setKeyBindingRegistered

protected final void setKeyBindingRegistered(boolean b)
Parameters:
b

setNorthPane

public void setNorthPane(JComponent c)
Parameters:
c

setSouthPane

public void setSouthPane(JComponent c)
Parameters:
c

setupMenuCloseKey

protected void setupMenuCloseKey()

setupMenuOpenKey

protected void setupMenuOpenKey()

setWestPane

public void setWestPane(JComponent c)
Parameters:
c

uninstallComponents

protected void uninstallComponents()

uninstallDefaults

protected void uninstallDefaults()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

uninstallListeners

protected void uninstallListeners()

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
Parameters:
c


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.