JIDE 3.5.15

com.jidesoft.swing
Interface Selectable

All Known Implementing Classes:
DefaultSelectable

public interface Selectable

Selectable is an interface indicating something is selectable.


Method Summary
 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 setSelected(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.

JIDE 3.5.15