de.lessvoid.nifty.controls
Class MenuItemControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.MenuItemControl
All Implemented Interfaces:
Controller, NiftyControl

public class MenuItemControl
extends AbstractController


Constructor Summary
MenuItemControl()
           
 
Method Summary
 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.
 
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
 

Constructor Detail

MenuItemControl

public MenuItemControl()
Method Detail

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 - nifty
newElement - the Element
properties - 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.