/[classpath]/classpath/java/applet/Applet.java
ViewVC logotype

Diff of /classpath/java/applet/Applet.java

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

revision 1.5 by ericb, Mon Mar 18 22:40:25 2002 UTC revision 1.6 by ericb, Mon May 6 02:43:17 2002 UTC
# Line 491  public class Applet extends Panel Line 491  public class Applet extends Panel
491    
492      /**      /**
493       * Get the state set of this accessible object. In addition to the default       * Get the state set of this accessible object. In addition to the default
494       * states of a Component, the applet is also active.       * states of a Component, the applet can also be active.
495       *       *
496       * @return the role of the object       * @return the role of the object
497       * @see AccessibleState       * @see AccessibleState
498       */       */
499      public AccessibleStateSet getAccessibleStateSet()      public AccessibleStateSet getAccessibleStateSet()
500      {      {
       // XXX Make sure that this is correct.  
501        AccessibleStateSet s = super.getAccessibleStateSet();        AccessibleStateSet s = super.getAccessibleStateSet();
502        s.add(AccessibleState.ACTIVE);        if (isActive())
503            s.add(AccessibleState.ACTIVE);
504        return s;        return s;
505      }      }
506    } // class AccessibleApplet    } // class AccessibleApplet

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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