|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVisualState
The Interface IVisualState allows to access and modify the transient visual state of an element. The transient visual state includes all feedback relevant attributes, which are not persisted, like selection-feedback or action-target-feedback.
Nested Class Summary | |
---|---|
static class |
IVisualState.Type
|
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
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
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |