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

Diff of /classpath/java/awt/CheckboxMenuItem.java

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

revision 1.12.2.2 by gnu_andrew, Sun Jan 16 02:14:46 2005 UTC revision 1.12.2.3 by gnu_andrew, Sun Jan 16 15:15:11 2005 UTC
# Line 43  import java.awt.event.ItemListener; Line 43  import java.awt.event.ItemListener;
43  import java.awt.peer.CheckboxMenuItemPeer;  import java.awt.peer.CheckboxMenuItemPeer;
44  import java.util.EventListener;  import java.util.EventListener;
45    
46    import javax.accessibility.Accessible;
47    import javax.accessibility.AccessibleAction;
48    import javax.accessibility.AccessibleContext;
49    import javax.accessibility.AccessibleValue;
50    
51  /**  /**
52    * This class implements a menu item that has a checkbox on it indicating    * This class implements a menu item that has a checkbox on it indicating
53    * the selected state of some option.    * the selected state of some option.
# Line 50  import java.util.EventListener; Line 55  import java.util.EventListener;
55    * @author Aaron M. Renn (arenn@urbanophile.com)    * @author Aaron M. Renn (arenn@urbanophile.com)
56    * @author Tom Tromey <tromey@redhat.com>    * @author Tom Tromey <tromey@redhat.com>
57    */    */
58  public class CheckboxMenuItem extends MenuItem implements ItemSelectable  public class CheckboxMenuItem extends MenuItem
59      implements ItemSelectable, Accessible
60  {  {
61    
62  /*  /*
# Line 315  paramString() Line 321  paramString()
321    {    {
322      return (ItemListener[]) getListeners (ItemListener.class);      return (ItemListener[]) getListeners (ItemListener.class);
323    }    }
324    
325    
326      protected class AccessibleAWTCheckboxMenuItem extends AccessibleAWTMenuItem
327        implements AccessibleAction, AccessibleValue
328      {
329        // I think the base class provides the necessary implementation
330      }
331      
332      /**
333       * Gets the AccessibleContext associated with this <code>CheckboxMenuItem</code>.
334       * The context is created, if necessary.
335       *
336       * @return the associated context
337       */
338      public AccessibleContext getAccessibleContext()
339      {
340        /* Create the context if this is the first request */
341        if (accessibleContext == null)
342          accessibleContext = new AccessibleAWTCheckboxMenuItem();
343        return accessibleContext;
344      }
345    
346  } // class CheckboxMenuItem  } // class CheckboxMenuItem
347    

Legend:
Removed from v.1.12.2.2  
changed lines
  Added in v.1.12.2.3

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