ListBox | +--CheckedListBoxpublic class CheckedListBox
Provides an extension of the regular ListBox class that adds events and methods for checked list box functionality.
Constructors
Name | Description |
---|---|
CheckedListBox() | Creates a new CheckedListBox. |
Methods
Name | Description |
---|---|
addItem(Object item, int check) | Adds an item to the list box with the given initial value for the checked portion of the item. |
addOnItemCheck(ItemCheckEventHandler value) | Topic under construction. |
getCheckedIndices() | Retrieves an array that contains the indices of checked items. |
getCheckOnClick() | Retrieves a boolean value that indicates whether the checkbox state is toggled when an item is selected. |
getItemCheck(int index) | Retrieves a value that identifies the checked state of the specified item. |
getItemChecked(int index) | Retrieves a Boolean value that indicates whether the specified item is checked. |
getOnItemCheck() | Retrieves the current recipient of the OnItemCheck event. |
getThreeDCheckBoxes() | Indicates whether the check boxes should have a flat or three-dimensional appearance. |
insert(int index, Object item, int check) | Adds a new item to the internal array of items with the given checked state. |
insert(int index, Object item) | Adds a new item marked as unchecked. |
removeAll() | Removes all items from the list box. |
removeOnItemCheck(ItemCheckEventHandler value) | Removes the given handler for the "OnItemCheck" event. |
setCheckOnClick(boolean value) | Specifies whether the checkbox should be toggled when an item is selected. |
setItemCheck(int index, int value) | Sets the checked state of the specified item. |
setSelectionStyle(int value) | Specifies the type of selection permitted with this list box. |
setThreeDCheckBoxes(boolean threed) | Determines whether the check boxes should have a flat or three-dimensional appearance. |
Creates a new CheckedListBox.
Adds an item to the list box with the given initial value for the checked portion of the item.
Topic under construction.
Returns an array that contains the indices of checked items.
Retrieves an array that contains the indices of checked items.
Returns boolean false, if two clicks are required to toggle checkbox state; otherwise, returns true.
Retrieves a boolean value that indicates whether the checkbox state is toggled when an item is selected. By default, a click on a listbox item selects the item, and a second click toggles the checkbox state.
Returns one of the enumeration constants defined in the CheckState class. This value indicates the current checked state of the specified item.
Retrieves a value that identifies the checked state of the specified item.
Returns true if the item is checked; otherwise, returns false.
Retrieves a Boolean value that indicates whether the specified item is checked.
Returns the current listener on this event.
Retrieves the current recipient of the OnItemCheck event.
Returns true if the appearance is three-dimensional, or returns false if the appearance is flat.
Indicates whether the check boxes should have a flat or three-dimensional appearance.
Adds a new item to the internal array of items with the given checked state. These are maintained outside of Win32 because of marshalling issues.
Adds a new item marked as unchecked.
Removes all items from the list box. All values and item data are lost.
Removes the given handler for the "OnItemCheck" event. If there are duplicate entries, ALL are removed.
Specifies whether the checkbox should be toggled when an item is selected. The default behaviour of the CheckedListBox selects the item when the user clicks it, then checks the item when the user clicks a second time.
Sets the checked state of the specified item.
Specifies the type of selection permitted with this list box. Multiple selections are not supported for checked list boxes; you can select one item or none.
Determines whether the check boxes should have a flat or three-dimensional appearance.