Package com.jidesoft.swing
Interface Selectable
-
- All Known Implementing Classes:
DefaultSelectable
public interface SelectableSelectable is an interface indicating something is selectable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvertSelected()Inverts the selection status.booleanisEnabled()Checks if selection change is allowed.booleanisSelected()Gets the selected status.voidsetEnabled(boolean enabled)Enabled selection change.voidsetSelected(boolean selected)Sets it as selected.
-
-
-
Method Detail
-
setSelected
void setSelected(boolean selected)
Sets it as selected.- Parameters:
selected-
-
isSelected
boolean isSelected()
Gets the selected status.- Returns:
- true if it is selected. Otherwise, false.
-
invertSelected
void invertSelected()
Inverts the selection status.
-
setEnabled
void setEnabled(boolean enabled)
Enabled selection change. Enabled false doesn't mean selected is false. If it is selected before, setEnable(false) won't make selected become false. In the other word, setEnabled won't change the the value of isSelected().- Parameters:
enabled-
-
isEnabled
boolean isEnabled()
Checks if selection change is allowed.- Returns:
- true if selection change is allowed.
-
-