T - list item typepublic class CheckList<T> extends Object
| Constructor and Description |
|---|
CheckList()
Wraps the standard JList and makes it work like check list
|
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
getCheckedItems()
Returns a collection of checked items.
|
JList |
getList() |
CheckListModel<T> |
getModel() |
void |
setCheckedItems(Collection<T> elements)
Resets checked elements
|
void |
setData(Collection<T> data)
Sets data to a check list.
|
void |
setModel(CheckListModel<T> model)
Sets the model for check list.
|
void |
toggleIndex(int index) |
public CheckList()
public JList getList()
public void setData(Collection<T> data)
data - public void setModel(CheckListModel<T> model)
model - public CheckListModel<T> getModel()
public Collection<T> getCheckedItems()
public void setCheckedItems(Collection<T> elements)
elements - public void toggleIndex(int index)
Copyright © 2004–2017 Ultreia.io. All rights reserved.