|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.swing.DefaultSelectable
public class DefaultSelectable
The element used by CheckBoxList's ListModel. In order to allow check box in JList without messing up when list model changes, we use this class to store the object itself and a boolean to indicated if the row is selected.
Field Summary | |
---|---|
protected boolean |
_enabled
|
protected Object |
_object
|
protected boolean |
_selected
|
Constructor Summary | |
---|---|
DefaultSelectable(Object object)
Creates CheckBoxListElement with an actual object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Object |
getObject()
Gets the actual element. |
int |
hashCode()
Overrides to consider the hash code of the object only. |
void |
invertSelected()
Inverts the selection status. |
boolean |
isEnabled()
Checks if selection change is allowed. |
boolean |
isSelected()
Gets the selected status. |
void |
setEnabled(boolean enabled)
Enabled selection change. |
void |
setObject(Object object)
Sets the actual element. |
void |
setSelected(boolean selected)
Sets it as selected. |
String |
toString()
Overrides to consider the toString() of object only. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object _object
protected boolean _selected
protected boolean _enabled
Constructor Detail |
---|
public DefaultSelectable(Object object)
object
- the actual objectMethod Detail |
---|
public void setObject(Object object)
object
- public Object getObject()
public void setSelected(boolean selected)
setSelected
in interface Selectable
selected
- public void invertSelected()
invertSelected
in interface Selectable
public boolean isSelected()
isSelected
in interface Selectable
public void setEnabled(boolean enabled)
setEnabled
in interface Selectable
enabled
- public boolean isEnabled()
isEnabled
in interface Selectable
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |