|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object swingwt.awt.Component swingwt.awt.Container swingwtx.swing.JComponent swingwtx.swing.JPanel swingwtx.swing.JLayeredPane swingwtx.swing.JDesktopPane
Nested Class Summary |
Nested classes inherited from class swingwtx.swing.JComponent |
JComponent.InternalFrameSelectionListener |
Field Summary | |
protected java.util.Vector |
frames
Cache of JInternalFrames in the JDesktopPane |
protected JClosableTabbedPane |
jtp
If we are using tabbed emulation, a reference to the closable tabbed pane we are using to contain JInternalFrames |
protected Point |
nextLocation
|
protected JInternalFrame |
pSelectedFrame
Cache of the currently selected frame |
protected boolean |
useTabbedEmulation
This value determines how the JDesktopPane is displayed. |
Fields inherited from class swingwtx.swing.JLayeredPane |
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, layerComponents, layerTable, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER, self |
Fields inherited from class swingwtx.swing.JPanel |
opaque, ppeer |
Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap |
Fields inherited from class swingwt.awt.Container |
composite, comps, containerListeners, layout, queuedValidateRequest |
Fields inherited from interface swingwt.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JDesktopPane()
|
|
JDesktopPane(boolean useTabbedEmulation)
SwingWT specific - allows you to choose whether to use "real" MDI or tabbed emulation of MDI |
Method Summary | |
Component |
add(Component c)
Overridden add method to deal with JInternalFrames |
void |
add(Component c,
java.lang.Object layoutModifier)
Overridden add method to deal with JInternalFrames |
Component |
add(java.lang.String name,
Component c)
Overridden add method to deal with JInternalFrames |
protected JInternalFrame |
addInternalFrameToTabbedPane(JInternalFrame frame)
TABBED EMULATION ONLY: Adds a JInternalFrame to the tabbed pane |
JInternalFrame[] |
getAllFrames()
|
Point |
getNextFrameLocation()
Returns the next location a frame should appear at. |
JInternalFrame |
getSelectedFrame()
|
protected void |
refreshFrame(JInternalFrame frame)
TABBED EMULATION ONLY: Updates a frame's components from it's cached properties. |
protected void |
removeFrame(JInternalFrame frame)
Removes an internal frame |
void |
setSelectedFrame(JInternalFrame frame)
|
void |
setSwingWTParent(Container parent)
Callback for when this is added to a Container to create the peer and load cached values. |
void |
setUseTabbedEmulation(boolean b)
Changes the JDesktopPane to use tabbed emulation if set to true. |
protected void |
updateFrameAt(int index,
JInternalFrame frame)
TABBED EMULATION ONLY: Copies an internal frame's properties onto it's component |
Methods inherited from class swingwtx.swing.JLayeredPane |
getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, lowestLayer, moveToBack, paramString, remove, reorderComponents, setLayer, setLayer, setPosition |
Methods inherited from class swingwtx.swing.JPanel |
calculatePreferredSize, getHeight, getSize, getWidth, setBorder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector frames
protected boolean useTabbedEmulation
protected JClosableTabbedPane jtp
protected JInternalFrame pSelectedFrame
protected Point nextLocation
Constructor Detail |
public JDesktopPane()
public JDesktopPane(boolean useTabbedEmulation)
Method Detail |
public Component add(Component c)
add
in class JLayeredPane
public void add(Component c, java.lang.Object layoutModifier)
add
in class JLayeredPane
public Component add(java.lang.String name, Component c)
add
in class JLayeredPane
protected JInternalFrame addInternalFrameToTabbedPane(JInternalFrame frame)
public void setUseTabbedEmulation(boolean b)
public Point getNextFrameLocation()
public void setSwingWTParent(Container parent) throws java.lang.Exception
JPanel
setSwingWTParent
in class JLayeredPane
java.lang.Exception
protected void refreshFrame(JInternalFrame frame)
protected void updateFrameAt(int index, JInternalFrame frame)
protected void removeFrame(JInternalFrame frame)
public JInternalFrame[] getAllFrames()
public JInternalFrame getSelectedFrame()
public void setSelectedFrame(JInternalFrame frame)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |