public class DefaultController extends Object implements Controller
| Constructor and Description |
|---|
DefaultController() |
| 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.
|
public void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
Controllerbind in interface Controllernifty - niftyelement - the Elementparameter - parameters from the xml source to init the controllerpublic void init(Properties parameter, Attributes controlDefinitionAttributes)
Controllerinit in interface Controllerpublic void onStartScreen()
ControlleronStartScreen in interface Controllerpublic boolean inputEvent(NiftyInputEvent inputEvent)
ControllerinputEvent in interface ControllerinputEvent - the NiftyInputEvent to processpublic void onFocus(boolean getFocus)
ControlleronFocus in interface ControllergetFocus - get focus (true) or loose focus (false)Copyright © 2013. All Rights Reserved.