de.lessvoid.nifty.controls.menu
Class MenuControl<T>

java.lang.Object
  extended by de.lessvoid.nifty.controls.menu.MenuControl<T>
All Implemented Interfaces:
Controller, Menu<T>, NiftyControl

Deprecated. Please use PopupMenu when accessing NiftyControls.

@Deprecated
public class MenuControl<T>
extends Object
implements NiftyControl, Controller, Menu<T>


Constructor Summary
MenuControl()
          Deprecated.  
 
Method Summary
 boolean activateItem(String menuItemId)
          Deprecated.  
 void addMenuItem(String menuText, String menuIcon, T item)
          Deprecated. Add a menu item to this Menu.
 void addMenuItem(String menuText, T item)
          Deprecated. Add a menu item to this Menu.
 void addMenuItemSeparator()
          Deprecated. Add a separator.
 void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributesParam)
          Deprecated.  
 void disable()
          Deprecated.  
 void enable()
          Deprecated.  
 Element getElement()
          Deprecated.  
 int getHeight()
          Deprecated.  
 String getId()
          Deprecated.  
 String getStyle()
          Deprecated.  
 int getWidth()
          Deprecated.  
 boolean hasFocus()
          Deprecated.  
 void init(Properties parameter, Attributes controlDefinitionAttributes)
          Deprecated.  
 boolean inputEvent(NiftyInputEvent inputEvent)
          Deprecated.  
 boolean isBound()
          Deprecated.  
 boolean isEnabled()
          Deprecated.  
 void layoutCallback()
          Deprecated.  
 void onFocus(boolean getFocus)
          Deprecated.  
 void onStartScreen()
          Deprecated.  
 void setEnabled(boolean enabled)
          Deprecated.  
 void setFocus()
          Deprecated.  
 void setFocusable(boolean focusable)
          Deprecated.  
 void setHeight(SizeValue height)
          Deprecated.  
 void setId(String id)
          Deprecated.  
 void setStyle(String style)
          Deprecated.  
 void setWidth(SizeValue width)
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MenuControl

public MenuControl()
Deprecated. 
Method Detail

bind

public void bind(Nifty niftyParam,
                 Screen screenParam,
                 Element newElement,
                 Properties properties,
                 Attributes controlDefinitionAttributesParam)
Deprecated. 
Specified by:
bind in interface Controller

init

public void init(Properties parameter,
                 Attributes controlDefinitionAttributes)
Deprecated. 
Specified by:
init in interface Controller

onStartScreen

public void onStartScreen()
Deprecated. 
Specified by:
onStartScreen in interface Controller

inputEvent

public boolean inputEvent(NiftyInputEvent inputEvent)
Deprecated. 
Specified by:
inputEvent in interface Controller

onFocus

public void onFocus(boolean getFocus)
Deprecated. 
Specified by:
onFocus in interface Controller

addMenuItem

public void addMenuItem(String menuText,
                        T item)
Deprecated. 
Description copied from interface: Menu
Add a menu item to this Menu.

Specified by:
addMenuItem in interface Menu<T>
Parameters:
menuText - the text to display
item - the item

addMenuItem

public void addMenuItem(String menuText,
                        String menuIcon,
                        T item)
Deprecated. 
Description copied from interface: Menu
Add a menu item to this Menu.

Specified by:
addMenuItem in interface Menu<T>
Parameters:
menuText - the text to display
menuIcon - the icon (image) to display
item - the item

addMenuItemSeparator

public void addMenuItemSeparator()
Deprecated. 
Description copied from interface: Menu
Add a separator.

Specified by:
addMenuItemSeparator in interface Menu<T>

getElement

public Element getElement()
Deprecated. 
Specified by:
getElement in interface NiftyControl

enable

public void enable()
Deprecated. 
Specified by:
enable in interface NiftyControl

disable

public void disable()
Deprecated. 
Specified by:
disable in interface NiftyControl

setEnabled

public void setEnabled(boolean enabled)
Deprecated. 
Specified by:
setEnabled in interface NiftyControl

isEnabled

public boolean isEnabled()
Deprecated. 
Specified by:
isEnabled in interface NiftyControl

getId

public String getId()
Deprecated. 
Specified by:
getId in interface NiftyControl

setId

public void setId(String id)
Deprecated. 
Specified by:
setId in interface NiftyControl

getWidth

public int getWidth()
Deprecated. 
Specified by:
getWidth in interface NiftyControl

setWidth

public void setWidth(SizeValue width)
Deprecated. 
Specified by:
setWidth in interface NiftyControl

getHeight

public int getHeight()
Deprecated. 
Specified by:
getHeight in interface NiftyControl

setHeight

public void setHeight(SizeValue height)
Deprecated. 
Specified by:
setHeight in interface NiftyControl

getStyle

public String getStyle()
Deprecated. 
Specified by:
getStyle in interface NiftyControl

setStyle

public void setStyle(String style)
Deprecated. 
Specified by:
setStyle in interface NiftyControl

setFocus

public void setFocus()
Deprecated. 
Specified by:
setFocus in interface NiftyControl

setFocusable

public void setFocusable(boolean focusable)
Deprecated. 
Specified by:
setFocusable in interface NiftyControl

hasFocus

public boolean hasFocus()
Deprecated. 
Specified by:
hasFocus in interface NiftyControl

layoutCallback

public void layoutCallback()
Deprecated. 
Specified by:
layoutCallback in interface NiftyControl

isBound

public boolean isBound()
Deprecated. 
Specified by:
isBound in interface NiftyControl

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

activateItem

public boolean activateItem(String menuItemId)
Deprecated. 


Copyright © 2011. All Rights Reserved.