public interface IVisualState
Modifier and Type | Interface and Description |
---|---|
static class |
IVisualState.Type |
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_TARGET_ALLOWED
Constant indicating, that an action is allowed for this target.
|
static int |
ACTION_TARGET_FEEDBACK_OFF
Constant indicating, that there is currently no action target feedback.
|
static int |
ACTION_TARGET_FORBIDDEN
Constant indicating, that an action is forbidden for this target
|
static int |
HOVER_OFF |
static int |
HOVER_ON |
static int |
SELECTION_FEEDBACK_OFF
Constant indicating, that there is currently no selection feedback.
|
static int |
SELECTION_PRIMARY
Constant indicating, that the visual element is the primary selection.
|
static int |
SELECTION_SECONDARY
Constant indicating, that the visual element is the secondary selection.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(IVisualStateChangeListener listener)
Adds a change listener.
|
int |
getActionTargetFeedback()
Returns the action target feedback.
|
int |
getHoverFeedback()
Gets the hover feedback.
|
int |
getSelectionFeedback()
Returns the selection feedback.
|
void |
removeChangeListener(IVisualStateChangeListener listener)
Removes a change listener.
|
void |
setActionTargetFeedback(int feedback)
Sets the action target feedback.
|
void |
setHoverFeedback(int feedback)
Sets the hover feedback.
|
void |
setSelectionFeedback(int feedback)
Sets the selection feedback.
|
static final int ACTION_TARGET_FEEDBACK_OFF
static final int ACTION_TARGET_ALLOWED
static final int ACTION_TARGET_FORBIDDEN
static final int SELECTION_FEEDBACK_OFF
static final int SELECTION_PRIMARY
static final int SELECTION_SECONDARY
static final int HOVER_ON
static final int HOVER_OFF
void addChangeListener(IVisualStateChangeListener listener)
listener
- The change listener to add.void removeChangeListener(IVisualStateChangeListener listener)
listener
- The change listener to remove.int getActionTargetFeedback()
void setActionTargetFeedback(int feedback)
feedback
- The action target feedback to set.int getSelectionFeedback()
void setSelectionFeedback(int feedback)
feedback
- The selection feedback to set.void setHoverFeedback(int feedback)
feedback
- The selection feedback to set.int getHoverFeedback()