swingwtx.swing
Class JLayeredPane

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwtx.swing.JComponent
              extended byswingwtx.swing.JPanel
                  extended byswingwtx.swing.JLayeredPane
All Implemented Interfaces:
ImageObserver, MenuContainer
Direct Known Subclasses:
JDesktopPane

public class JLayeredPane
extends JPanel

JLayeredPane implementation - a panel that allows management of overlaid components.


Nested Class Summary
 
Nested classes inherited from class swingwtx.swing.JComponent
JComponent.InternalFrameSelectionListener
 
Field Summary
static java.lang.Integer DEFAULT_LAYER
           
static java.lang.Integer DRAG_LAYER
           
static java.lang.Integer FRAME_CONTENT_LAYER
           
static java.lang.String LAYER_PROPERTY
           
protected  swingwtx.swing.LayerComponent[] layerComponents
           
protected  java.util.Hashtable layerTable
          Hashtable that stores all Components (no ClientProperties!) in relation to their layer-value specified.
static java.lang.Integer MODAL_LAYER
           
static java.lang.Integer PALETTE_LAYER
           
static java.lang.Integer POPUP_LAYER
           
protected  JLayeredPane 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 class swingwt.awt.Component
actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JLayeredPane()
           
 
Method Summary
 Component add(Component component)
           
 void add(Component component, java.lang.Object constraints)
          Addition for layouts requiring object based modifiers
 Component add(java.lang.String string, Component component)
           
 Component[] getComponentsInLayer(int layer)
           
protected  java.util.Hashtable getComponentToLayer()
           
 int getIndexOf(Component c)
           
 int getLayer(Component c)
           
static int getLayer(JComponent c)
           
static JLayeredPane getLayeredPaneAbove(Component c)
           
protected  java.lang.Integer getObjectForLayer(int layer)
           
 int getPosition(Component c)
           
 int highestLayer()
           
protected  int insertIndexForLayer(int layer, int position)
           
 int lowestLayer()
           
 void moveToBack(Component c)
           
protected  java.lang.String paramString()
           
 void remove(int index)
           
protected  void reorderComponents()
           
 void setLayer(Component c, int layer)
           
 void setLayer(Component c, int layer, int position)
           
 void setPosition(Component c, int position)
           
 void setSwingWTParent(Container cont)
          Callback for when this is added to a Container to create the peer and load cached values.
 
Methods inherited from class swingwtx.swing.JPanel
calculatePreferredSize, getHeight, getSize, getWidth, setBorder
 
Methods inherited from class swingwtx.swing.JComponent
add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, dispose, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled
 
Methods inherited from class swingwt.awt.Container
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate
 
Methods inherited from class swingwt.awt.Component
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setCachedProperties, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LAYER

public static final java.lang.Integer DEFAULT_LAYER

PALETTE_LAYER

public static final java.lang.Integer PALETTE_LAYER

MODAL_LAYER

public static final java.lang.Integer MODAL_LAYER

POPUP_LAYER

public static final java.lang.Integer POPUP_LAYER

DRAG_LAYER

public static final java.lang.Integer DRAG_LAYER

FRAME_CONTENT_LAYER

public static final java.lang.Integer FRAME_CONTENT_LAYER

LAYER_PROPERTY

public static final java.lang.String LAYER_PROPERTY
See Also:
Constant Field Values

layerTable

protected java.util.Hashtable layerTable
Hashtable that stores all Components (no ClientProperties!) in relation to their layer-value specified.


self

protected JLayeredPane self

layerComponents

protected swingwtx.swing.LayerComponent[] layerComponents
Constructor Detail

JLayeredPane

public JLayeredPane()
Method Detail

add

public Component add(java.lang.String string,
                     Component component)
Overrides:
add in class JComponent

add

public Component add(Component component)
Overrides:
add in class JComponent

add

public void add(Component component,
                java.lang.Object constraints)
Description copied from class: Container
Addition for layouts requiring object based modifiers

Overrides:
add in class JComponent

setSwingWTParent

public void setSwingWTParent(Container cont)
                      throws java.lang.Exception
Description copied from class: JPanel
Callback for when this is added to a Container to create the peer and load cached values.

Overrides:
setSwingWTParent in class JPanel
Throws:
java.lang.Exception

reorderComponents

protected void reorderComponents()

getPosition

public int getPosition(Component c)

insertIndexForLayer

protected int insertIndexForLayer(int layer,
                                  int position)

setLayer

public void setLayer(Component c,
                     int layer,
                     int position)

getComponentsInLayer

public Component[] getComponentsInLayer(int layer)

getComponentToLayer

protected java.util.Hashtable getComponentToLayer()

getIndexOf

public int getIndexOf(Component c)

getLayer

public int getLayer(Component c)

getObjectForLayer

protected java.lang.Integer getObjectForLayer(int layer)

lowestLayer

public int lowestLayer()

highestLayer

public int highestLayer()

moveToBack

public void moveToBack(Component c)

paramString

protected java.lang.String paramString()

remove

public void remove(int index)
Overrides:
remove in class JComponent

setLayer

public void setLayer(Component c,
                     int layer)

setPosition

public void setPosition(Component c,
                        int position)

getLayer

public static int getLayer(JComponent c)

getLayeredPaneAbove

public static JLayeredPane getLayeredPaneAbove(Component c)