Package io.guise.framework.input
Interface InputStrategy
-
- All Known Implementing Classes:
AbstractInputStrategy
,BindingInputStrategy
public interface InputStrategy
A strategy for processing input.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStrategy
getParent()
boolean
input(Input input)
Processes input, returning whether the input was consumed.
-
-
-
Method Detail
-
getParent
InputStrategy getParent()
- Returns:
- The parent input strategy, or
null
if there is no parent input strategy.
-
input
boolean input(Input input)
Processes input, returning whether the input was consumed. If the input is not consumed by this input strategy, it is sent to the parent input strategy, if any, for processing.- Parameters:
input
- The input to process.- Returns:
true
if the input was consumed and should not be processed further.- Throws:
java.lang.NullPointerException
- if the given input isnull
.
-
-