/[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.25 by trebligd, Sat Jul 23 19:47:14 2005 UTC revision 1.26 by rabbit78, Mon Sep 12 20:15:40 2005 UTC
# Line 46  import java.util.Map; Line 46  import java.util.Map;
46  import java.util.TreeMap;  import java.util.TreeMap;
47    
48  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
49    import javax.accessibility.AccessibleContext;
50    import javax.accessibility.AccessibleRole;
51    
52  /**  /**
53   * A container that adds depth to the usual <code>Container</code> semantics.   * A container that adds depth to the usual <code>Container</code> semantics.
# Line 116  import javax.accessibility.Accessible; Line 118  import javax.accessibility.Accessible;
118   */   */
119  public class JLayeredPane extends JComponent implements Accessible  public class JLayeredPane extends JComponent implements Accessible
120  {  {
121      
122      /**
123       * Provides accessibility support for <code>JLayeredPane</code>.
124       */
125      protected class AccessibleJLayeredPane extends AccessibleJComponent
126      {
127        /**
128         * Creates a new instance of <code>AccessibleJLayeredPane</code>.
129         */
130        public AccessibleJLayeredPane()
131        {
132          // Nothing to do here.
133        }
134    
135        /**
136         * Returns the accessble role of <code>JLayeredPane</code>,
137         * {@link AccessibleRole#LAYERED_PANE}.
138         */
139        public AccessibleRole getAccessibleRole()
140        {
141          return AccessibleRole.LAYERED_PANE;
142        }
143      }
144    
145    private static final long serialVersionUID = 5534920399324590459L;    private static final long serialVersionUID = 5534920399324590459L;
146        
147    public static final String LAYER_PROPERTY = "layeredContainerLayer";    public static final String LAYER_PROPERTY = "layeredContainerLayer";
# Line 642  public class JLayeredPane extends JCompo Line 668  public class JLayeredPane extends JCompo
668    {    {
669      getLayeredPaneAbove(component).setLayer(component, layer);      getLayeredPaneAbove(component).setLayer(component, layer);
670    }    }
671    
672      /**
673       * Returns the accessible context for this <code>JLayeredPane</code>.
674       *
675       * @return the accessible context for this <code>JLayeredPane</code>
676       */
677      public AccessibleContext getAccessibleContext()
678      {
679        if (accessibleContext == null)
680          accessibleContext = new AccessibleJLayeredPane();
681        return accessibleContext;
682      }
683  }  }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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