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)
Controller
bind
in interface Controller
nifty
- niftyelement
- the Elementparameter
- parameters from the xml source to init the controllerpublic void init(Properties parameter, Attributes controlDefinitionAttributes)
Controller
init
in interface Controller
public void onStartScreen()
Controller
onStartScreen
in interface Controller
public boolean inputEvent(NiftyInputEvent inputEvent)
Controller
inputEvent
in interface Controller
inputEvent
- the NiftyInputEvent to processpublic void onFocus(boolean getFocus)
Controller
onFocus
in interface Controller
getFocus
- get focus (true) or loose focus (false)Copyright © 2013. All Rights Reserved.