/[classpath]/classpath/java/awt/ScrollPane.java
ViewVC logotype

Diff of /classpath/java/awt/ScrollPane.java

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

revision 1.21 by mkoch, Mon Sep 27 15:11:46 2004 UTC revision 1.22 by mkoch, Wed Dec 29 14:18:25 2004 UTC
# Line 43  import java.awt.peer.ComponentPeer; Line 43  import java.awt.peer.ComponentPeer;
43  import java.awt.peer.ScrollPanePeer;  import java.awt.peer.ScrollPanePeer;
44    
45  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
46    import javax.accessibility.AccessibleContext;
47    import javax.accessibility.AccessibleRole;
48    
49  /**  /**
50    * This widget provides a scrollable region that allows a single    * This widget provides a scrollable region that allows a single
# Line 587  paramString() Line 589  paramString()
589    {    {
590      wheelScrollingEnabled = enable;      wheelScrollingEnabled = enable;
591    }    }
592      
593      protected class AccessibleAWTScrollPane extends AccessibleAWTContainer
594      {
595        public AccessibleRole getAccessibleRole()
596        {
597          return AccessibleRole.SCROLL_PANE;
598        }
599      }
600    
601      /**
602       * Gets the AccessibleContext associated with this <code>Scrollbar</code>.
603       * The context is created, if necessary.
604       *
605       * @return the associated context
606       */
607      public AccessibleContext getAccessibleContext()
608      {
609        /* Create the context if this is the first request */
610        if (accessibleContext == null)
611          {
612            /* Create the context */
613            accessibleContext = new AccessibleAWTScrollPane();
614          }
615        return accessibleContext;
616      }
617  } // class ScrollPane  } // class ScrollPane
618    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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