|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.input.AbstractInputStrategy
com.guiseframework.input.BindingInputStrategy
public class BindingInputStrategy
An input strategy based upon input bindings between input and other input or actions.
Typical uses include binding CommandInput to KeystrokeInput, or binding an ActionModel to CommandInput.
There must be a GuiseSession in effect when this input(Input) is called for this input strategy.
| Constructor Summary | |
|---|---|
BindingInputStrategy()
Default constructor with no parent. |
|
BindingInputStrategy(InputStrategy parent)
Parent constructor. |
|
| Method Summary | |
|---|---|
void |
bind(Input input,
ActionModel targetAction)
Binds the given input to an action. |
void |
bind(Input input,
Input targetInput)
Binds the given input to other input. |
boolean |
input(Input input)
Processes input, returning whether the input was consumed. |
boolean |
isBound(Input input)
Indicates whether the given input is bound. |
void |
unbind(Input input)
Unbinds the given input from any other input or action. |
| Methods inherited from class com.guiseframework.input.AbstractInputStrategy |
|---|
getParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindingInputStrategy()
public BindingInputStrategy(InputStrategy parent)
parent - The parent input strategy, or null if there is no parent input strategy.| Method Detail |
|---|
public boolean isBound(Input input)
input - The input that may be bound, such as KeystrokeInput or CommandInput.
true if a binding exists for the given input, else false.
public void bind(Input input,
Input targetInput)
input - The input to be bound, such as KeystrokeInput.targetInput - The target input, such as CommandInput.
public void bind(Input input,
ActionModel targetAction)
input - The input to be bound, such as CommandInput.targetAction - The target action that should be performed.public void unbind(Input input)
input - The input to be unbound.public boolean input(Input input)
GuiseSession.input(Input) and considered to be consumed.
If an action is bound to the given input, the action is performed and the input is considered to be consumed.
If a bound action implements Enableable and is not enabled, the action is not performed and the input is not considered to be consumed.
input in interface InputStrategyinput in class AbstractInputStrategyinput - The input to process.
true if the input was consumed and should not be processed further.
java.lang.NullPointerException - if the given input is null.GuiseSession.input(Input),
ActionModel.performAction()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||