com.alee.extended.list
Class CheckBoxCellData

java.lang.Object
  extended by com.alee.extended.list.CheckBoxCellData

public class CheckBoxCellData
extends java.lang.Object

This class contains minimum data for single checkbox list cell.

Author:
Mikle Garin

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

CheckBoxCellData

public CheckBoxCellData()
Constructs default checkbox cell data with null user object.


CheckBoxCellData

public CheckBoxCellData(java.lang.Object userObject)
Constructs default checkbox cell data with specified user object.

Parameters:
userObject - user object

CheckBoxCellData

public CheckBoxCellData(java.lang.Object userObject,
                        boolean selected)
Constructs default checkbox cell data with specified user object and checkbox selection state.

Parameters:
userObject - user object
selected - whether checkbox is selected or not
Method Detail

getId

public java.lang.String getId()
Returns checkbox cell data ID.

Returns:
checkbox cell data ID

setId

public void setId(java.lang.String id)
Sets checkbox cell data ID.

Parameters:
id - new checkbox cell data ID

getUserObject

public java.lang.Object getUserObject()
Returns user object.

Returns:
user object

setUserObject

public void setUserObject(java.lang.Object userObject)
Sets user object.

Parameters:
userObject - new user object

isSelected

public boolean isSelected()
Returns whether checkbox is selected or not.

Returns:
true if checkbox is selected, false otherwise

setSelected

public void setSelected(boolean selected)
Sets whether checkbox is selected or not.

Parameters:
selected - whether checkbox is selected or not

invertSelection

public void invertSelection()
Inverts checkbox selection.


isEnabled

public boolean isEnabled()
Returns whether checkbox is enabled or not.

Returns:
true if checkbox is enabled, false otherwise

setEnabled

public void setEnabled(boolean enabled)
Sets whether checkbox is enabled or not.

Parameters:
enabled - whether checkbox is enabled or not