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

Diff of /classpath/java/awt/Checkbox.java

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

revision 1.15 by gnu_andrew, Sat Jan 22 01:48:27 2005 UTC revision 1.16 by mkoch, Mon Feb 21 21:40:56 2005 UTC
# Line 1  Line 1 
1  /* Checkbox.java -- An AWT checkbox widget  /* Checkbox.java -- An AWT checkbox widget
2     Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.     Copyright (C) 1999, 2000, 2001, 2002, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 95  private boolean state; Line 95  private boolean state;
95  // The list of listeners for this object.  // The list of listeners for this object.
96  private transient ItemListener item_listeners;  private transient ItemListener item_listeners;
97    
98      /*
99       * The number used to generate the name returned by getName.
100       */
101      private static transient long next_checkbox_number;
102    
103  /**  /**
104   * This class provides accessibility support for the   * This class provides accessibility support for the
105   * checkbox.   * checkbox.
# Line 106  protected class AccessibleAWTCheckbox Line 111  protected class AccessibleAWTCheckbox
111    extends AccessibleAWTComponent    extends AccessibleAWTComponent
112    implements ItemListener, AccessibleAction, AccessibleValue    implements ItemListener, AccessibleAction, AccessibleValue
113  {  {
   
114    /**    /**
115     * Serialization constant to match JDK 1.5     * Serialization constant to match JDK 1.5
116     */     */
# Line 627  public AccessibleContext getAccessibleCo Line 631  public AccessibleContext getAccessibleCo
631    return accessibleContext;    return accessibleContext;
632  }  }
633    
634  } // class Checkbox    /**
635       * Generate a unique name for this checkbox.
636       *
637       * @return A unique name for this checkbox.
638       */
639      String generateName()
640      {
641        return "checkbox" + getUniqueLong();
642      }
643    
644      private static synchronized long getUniqueLong()
645      {
646        return next_checkbox_number++;
647      }
648    }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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