public interface Controller
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Properties parameter,
Attributes controlDefinitionAttributes)
Bind this Controller to a certain element.
|
void |
init(Properties parameter,
Attributes controlDefinitionAttributes)
Init the Controller.
|
boolean |
inputEvent(NiftyInputEvent inputEvent)
input event.
|
void |
onFocus(boolean getFocus)
This controller gets the focus.
|
void |
onStartScreen()
Called when the screen is started.
|
void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
nifty - niftyelement - the Elementparameter - parameters from the xml source to init the controllerlistener - the ControllerEventListenervoid init(Properties parameter, Attributes controlDefinitionAttributes)
parameter - controlDefinitionAttributes - void onStartScreen()
void onFocus(boolean getFocus)
getFocus - get focus (true) or loose focus (false)boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent - the NiftyInputEvent to processCopyright © 2013. All Rights Reserved.