public interface Toggleable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECTED_PROPERTY
A property for the presentation to hold the state of the toggleable action.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isSelected(Presentation presentation)
Checks whether given presentation is in the "selected" state
|
static void |
setSelected(Presentation presentation,
boolean selected)
Sets the selected state for given presentation (assuming it's a presentation of a toggleable action)
|
static final java.lang.String SELECTED_PROPERTY
isSelected(Presentation)
and setSelected(Presentation, boolean)
methods instead.static boolean isSelected(Presentation presentation)
presentation
- presentation to checkstatic void setSelected(Presentation presentation, boolean selected)
presentation
- presentation to updateselected
- whether the state should be "selected" or "not selected".