Public Member Functions | |
CheckListModel () | |
void | add (int index, Object element) |
void | addElement (Object element) |
boolean | contains (Object element) |
void | copyInto (Object[] anArray) |
Object | elementAt (int index) |
Object | firstElement () |
Object | get (int index) |
Object | getElementAt (int index) |
int | indexOf (Object element) |
int | indexOf (Object element, int index) |
void | insertElementAt (Object element, int index) |
boolean | isChecked (int index) |
Object | lastElement () |
int | lastIndexOf (Object element) |
int | lastIndexOf (Object element, int index) |
Object | remove (int index) |
boolean | removeElement (Object element) |
Object | set (int index, Object element) |
void | setChecked (int index, boolean value) |
Object[] | toArray () |
void | toggleChecked (int index) |
Protected Member Functions | |
Object | convertFromModel (CheckListElement element) |
CheckListElement | convertToModel (Object element) |
CheckListElement | internalGet (int index) |
JCheckList
to store the checked state for each entry. The data model provides this functionality transparently. Each object that is added to the model will be wraped together with a boolean variable indicating its checked state. Model provides complete functionality of the javax.swing.DefaultListModel
. Creation date: (12/25/2001 16:27:43)
|
CheckListModel constructor comment. |
|
Adds element to the model, inserting it at the location specified by index. Creation date: (12/25/2001 16:38:26)
|
|
Appends element to the end of the list. Creation date: (12/25/2001 16:43:03)
|
|
Returns whether the element is in the model. Creation date: (12/25/2001 16:44:17)
|
|
Internal method to unwrap the element stored in CheckListElement. Creation date: (12/25/2001 16:34:57)
|
|
Internal method to wrap the element to the list. Creation date: (12/25/2001 16:30:33)
|
|
Copies the contents of this model into the array. Array must contain sufficient space. Creation date: (12/25/2001 16:45:22)
|
|
Returns the element at the specified index. Creation date: (12/25/2001 16:46:59)
|
|
Returns first element of the list. Creation date: (12/25/2001 16:47:48)
|
|
Returns the element at the specified position. Creation date: (12/25/2001 16:48:36)
|
|
Returns element at the specified position. Creation date: (12/25/2001 16:49:14)
|
|
Returns index of first occurence of the object after the specified index. Creation date: (12/25/2001 16:59:13)
|
|
Returns index of the object or -1 if the object is not in the list. Creation date: (12/25/2001 16:58:29)
|
|
Inserts element to the specified position in the list. Creation date: (12/25/2001 16:59:53)
|
|
Internal helper routine. Only performs type-cast on the internal element. Creation date: (12/25/2001 18:20:16) |
|
Returns true if the element at the specified index is checked. Creation date: (12/25/2001 18:19:40)
|
|
Returns the last element of the list. Creation date: (12/25/2001 17:00:27)
|
|
Returns last occurence of the object in the list after specified index. Creation date: (12/25/2001 17:01:50)
|
|
Returns index of the last ocurrence of the object or -1 if there is no such entry in the list. Creation date: (12/25/2001 17:01:09)
|
|
Removes element specified by index from the list. Creation date: (12/25/2001 18:15:03)
|
|
Removes the element from the list. If the element is not in the list, this method returns false. Creation date: (12/25/2001 18:16:12)
|
|
Sets new value for the element at the specified index. Creation date: (12/25/2001 18:17:13)
|
|
Sets the checked state of element at the specified index. Creation date: (12/25/2001 18:21:42)
|
|
Returns contents of this list as an array. Creation date: (12/25/2001 18:18:37)
|
|
Toggles the checked state of the element at specified index. Creation date: (12/25/2001 18:21:17)
|