public class MenuItemControl extends AbstractController
Constructor and Description |
---|
MenuItemControl() |
Modifier and Type | Method and Description |
---|---|
void |
bind(Nifty nifty,
Screen screenParam,
Element newElement,
Properties properties,
Attributes controlDefinitionAttributes)
Bind this Controller to a certain element.
|
boolean |
inputEvent(NiftyInputEvent inputEvent)
input event.
|
void |
onFocus(boolean getFocus)
This controller gets the focus.
|
void |
onStartScreen()
Called when the screen is started.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
public void bind(Nifty nifty, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributes)
Controller
nifty
- niftynewElement
- the Elementproperties
- parameters from the xml source to init the controllerpublic void onStartScreen()
Controller
public boolean inputEvent(NiftyInputEvent inputEvent)
Controller
inputEvent
- the NiftyInputEvent to processpublic void onFocus(boolean getFocus)
Controller
onFocus
in interface Controller
onFocus
in class AbstractController
getFocus
- get focus (true) or loose focus (false)Copyright © 2013. All Rights Reserved.