/[classpath]/classpath/javax/swing/JLayeredPane.java
ViewVC logotype

Diff of /classpath/javax/swing/JLayeredPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by mark, Sat Jul 2 20:32:47 2005 UTC revision 1.24 by rabbit78, Wed Jul 20 09:46:33 2005 UTC
# Line 47  import java.util.TreeMap; Line 47  import java.util.TreeMap;
47  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
48    
49  /**  /**
50   * <p>The "Layered Pane" is a container which divides its children into 6 (or   * A container that adds depth to the usual <code>Container</code> semantics.
51   * more) disjoint sets. the pre-defined sets are:</p>   * Each child component of a <code>Layered Pane</code> is placed within one
52     * of several layers. <code>JLayeredPane</code> defines a set of standard
53     * layers. The pre-defined sets are (in the order from button to top):
54   *   *
55   *  <ul>   *  <dl>
56   *    <li>"Frame Content"</li>   *    <dt>{@link #DEFAULT_LAYER}</dt>
57   *    <li>"Default"</li>   *    <dd>The layer where most of the normal components are placed. This
58   *    <li>"Palette"</li>   *      is the bottommost layer.</dd>
59   *    <li>"Modal"</li>   *
60   *    <li>"Popup"</li>   *    <dt>{@link #PALETTE_LAYER</dt>
61   *    <li>"Drag"</li>   *    <dd>Palette windows are placed in this layer.</dd>
62   *  </ul>   *
63     *    <dt>{@link #MODAL_LAYER}</dt>
64     *    <dd>The layer where internal modal dialog windows are placed.</dd>
65     *
66     *    <dt>{@link #POPUP_LAYER</dt>
67     *    <dd>The layer for popup menus</dd>
68     *
69     *    <dt>{@link #DRAG_LAYER}</dt>
70     *    <dd>Components that are beeing dragged are temporarily placed in
71     *       this layer.</dd>
72     *  </dl>
73   *   *
74   * <p>A child is in exactly one of these layers at any time, though there may   * <p>A child is in exactly one of these layers at any time, though there may
75   * be other layers if someone creates them.</p>   * be other layers if someone creates them.</p>
76   *   *
77     * <p>You can add a component to a specific layer using the
78     * {@link Container#add(Component, Object)} method. I.e.
79     * <code>layeredPane.add(comp, JLayeredPane.MODAL_LAYER)</code> will add the
80     * component <code>comp</code> to the modal layer of <code>layeredPane</code>.
81     * </p>
82     *
83     * <p>To change the layer of a component that is already a child of
84     * a <code>JLayeredPane</code>, use the {@link #setLayer} method.</p>
85     *
86   * <p>The purpose of this class is to translate this view of "layers" into a   * <p>The purpose of this class is to translate this view of "layers" into a
87   * contiguous array of components: the one held in our ancestor,   * contiguous array of components: the one held in our ancestor,
88   * {@link java.awt.Container}.</p>   * {@link java.awt.Container}.</p>

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26