|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.list.CheckBoxCellData
public class CheckBoxCellData
This class contains minimum data for single checkbox list cell.
Constructor Summary | |
---|---|
CheckBoxCellData()
Constructs default checkbox cell data with null user object. |
|
CheckBoxCellData(java.lang.Object userObject)
Constructs default checkbox cell data with specified user object. |
|
CheckBoxCellData(java.lang.Object userObject,
boolean selected)
Constructs default checkbox cell data with specified user object and checkbox selection state. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns checkbox cell data ID. |
java.lang.Object |
getUserObject()
Returns user object. |
void |
invertSelection()
Inverts checkbox selection. |
boolean |
isEnabled()
Returns whether checkbox is enabled or not. |
boolean |
isSelected()
Returns whether checkbox is selected or not. |
void |
setEnabled(boolean enabled)
Sets whether checkbox is enabled or not. |
void |
setId(java.lang.String id)
Sets checkbox cell data ID. |
void |
setSelected(boolean selected)
Sets whether checkbox is selected or not. |
void |
setUserObject(java.lang.Object userObject)
Sets user object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckBoxCellData()
public CheckBoxCellData(java.lang.Object userObject)
userObject
- user objectpublic CheckBoxCellData(java.lang.Object userObject, boolean selected)
userObject
- user objectselected
- whether checkbox is selected or notMethod Detail |
---|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- new checkbox cell data IDpublic java.lang.Object getUserObject()
public void setUserObject(java.lang.Object userObject)
userObject
- new user objectpublic boolean isSelected()
public void setSelected(boolean selected)
selected
- whether checkbox is selected or notpublic void invertSelection()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- whether checkbox is enabled or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |