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 |
|
|
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. |
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 |
*/ |
*/ |
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 |
|
} |