de.lessvoid.nifty.controls
Class MenuItemControl
java.lang.Object
de.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.MenuItemControl
- All Implemented Interfaces:
- Controller, NiftyControl
public class MenuItemControl
- extends AbstractController
| Methods inherited from class de.lessvoid.nifty.controls.AbstractController |
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuItemControl
public MenuItemControl()
bind
public void bind(Nifty nifty,
Screen screenParam,
Element newElement,
Properties properties,
Attributes controlDefinitionAttributes)
- Description copied from interface:
Controller
- Bind this Controller to a certain element.
- Parameters:
nifty - niftynewElement - the Elementproperties - parameters from the xml source to init the controller
onStartScreen
public void onStartScreen()
- Description copied from interface:
Controller
- Called when the screen is started.
inputEvent
public boolean inputEvent(NiftyInputEvent inputEvent)
- Description copied from interface:
Controller
- input event.
- Parameters:
inputEvent - the NiftyInputEvent to process
- Returns:
- true, the event has been handled and false, the event has not been handled
onFocus
public void onFocus(boolean getFocus)
- Description copied from interface:
Controller
- This controller gets the focus.
- Specified by:
onFocus in interface Controller- Overrides:
onFocus in class AbstractController
- Parameters:
getFocus - get focus (true) or loose focus (false)
Copyright © 2011. All Rights Reserved.