Package io.guise.framework.input
Class AbstractInputStrategy
java.lang.Object
io.guise.framework.input.AbstractInputStrategy
- All Implemented Interfaces:
InputStrategy
- Direct Known Subclasses:
BindingInputStrategy
An abstract implementation of a strategy for processing input.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Processes input, returning whether the input was consumed.
-
Constructor Details
-
AbstractInputStrategy
Parent constructor.- Parameters:
parent
- The parent input strategy, ornull
if there is no parent input strategy.
-
-
Method Details
-
getParent
- Specified by:
getParent
in interfaceInputStrategy
- Returns:
- The parent input strategy, or
null
if there is no parent input strategy.
-
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.This version does nothing besides delegate to the parent input strategy.
- Specified by:
input
in interfaceInputStrategy
- Parameters:
input
- The input to process.- Returns:
true
if the input was consumed and should not be processed further.
-