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, setWidthpublic void bind(Nifty nifty, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributes)
Controllernifty - niftynewElement - the Elementproperties - parameters from the xml source to init the controllerpublic void onStartScreen()
Controllerpublic boolean inputEvent(NiftyInputEvent inputEvent)
ControllerinputEvent - the NiftyInputEvent to processpublic void onFocus(boolean getFocus)
ControlleronFocus in interface ControlleronFocus in class AbstractControllergetFocus - get focus (true) or loose focus (false)Copyright © 2013. All Rights Reserved.