Class WidgetAction.State
java.lang.Object
org.netbeans.api.visual.action.WidgetAction.State
- Enclosing interface:
WidgetAction
Represents a state of event processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WidgetAction.State
The state that means: The event is processed by the action and only actions that are in the same chain can process the event too.static final WidgetAction.State
The state that means: The event is processed by the action and the processing has to stopped immediately (no other action should processed it).static final WidgetAction.State
The state that means: The event is not processed by the action and has to be processed by other actions too. -
Method Summary
Modifier and TypeMethodDescriptionstatic WidgetAction.State
createLocked
(Widget lockedWidget, WidgetAction lockedAction) Creates a state that means: The event is processed and the processing has to stopped immediately (no other action should processed it).abstract WidgetAction
Returns whether (and by which action) the next event has to be processed prior to regular processing.abstract Widget
Returns whether (and by which widget) the next event has to be processed prior to regular processing.abstract boolean
Returns whether the event is consumedabstract boolean
Returns whether the event processing has to be stopped after the processing by the chain where the actions is added.
-
Field Details
-
REJECTED
The state that means: The event is not processed by the action and has to be processed by other actions too. -
CONSUMED
The state that means: The event is processed by the action and the processing has to stopped immediately (no other action should processed it). -
CHAIN_ONLY
The state that means: The event is processed by the action and only actions that are in the same chain can process the event too.
-
-
Method Details
-
createLocked
Creates a state that means: The event is processed and the processing has to stopped immediately (no other action should processed it). Next event will be processed by the lockedAction on lockedAction first. Only if the lockedAction reject the event, then the event will be processed regularly. It is used for locking the event processing for a long-term operation like moving, resizing, rectangular selection, ... (usually they are using mouse motion events). -
isLockedInChain
public abstract boolean isLockedInChain()Returns whether the event processing has to be stopped after the processing by the chain where the actions is added.- Returns:
- true if locked in chain
-
isConsumed
public abstract boolean isConsumed()Returns whether the event is consumed- Returns:
- true if the event is consumed
-
getLockedWidget
Returns whether (and by which widget) the next event has to be processed prior to regular processing.- Returns:
- the locked widget; if null, then there is no prior widget
-
getLockedAction
Returns whether (and by which action) the next event has to be processed prior to regular processing.- Returns:
- the locked action; if null, then there is no prior action
-