de.lessvoid.nifty.controls.dropdown
Class DropDownControl<T>

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.dropdown.DropDownControl<T>
All Implemented Interfaces:
Controller, DropDown<T>, NiftyControl

Deprecated. Please use DropDown when accessing NiftyControls.

@Deprecated
public class DropDownControl<T>
extends AbstractController
implements DropDown<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.lessvoid.nifty.controls.DropDown
DropDown.DropDownViewConverter<T>, DropDown.SimpleDropDownViewConverter<T>
 
Constructor Summary
DropDownControl()
          Deprecated.  
 
Method Summary
 void addAllItems(List<T> itemsToAdd)
          Deprecated. Add all items to the DropDown.
 void addItem(T newItem)
          Deprecated. Add a item to the DropDown.
 void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributesParam)
          Deprecated.  
 void clear()
          Deprecated. Clear all items from this DropDown.
 void close()
          Deprecated.  
 void close(EndNotify endNotify)
          Deprecated.  
 void dropDownClicked()
          Deprecated.  
 List<T> getItems()
          Deprecated. Get all items of this DropDown.
 int getSelectedIndex()
          Deprecated. Returns the index of the current selected item in the list of all items.
 T getSelection()
          Deprecated. Get the current selection.
 boolean inputEvent(NiftyInputEvent inputEvent)
          Deprecated.  
 void insertItem(T item, int index)
          Deprecated. Insert the given item at the given index.
 int itemCount()
          Deprecated. Retrieve the number of items in the DropDown.
 void onStartScreen()
          Deprecated.  
 void refresh()
          Deprecated.  
 void removeAllItems(List<T> itemsToRemove)
          Deprecated. Remove all items given in the List from this DropDown.
 void removeItem(T item)
          Deprecated. Remove the given item from the DropDown.
 void removeItemByIndex(int itemIndex)
          Deprecated. Remove an item from the DropDown by index.
 void selectItem(T item)
          Deprecated. Select the item in the DropDown.
 void selectItemByIndex(int selectionIndex)
          Deprecated. Select the item with the given index in the DropDown.
 void setViewConverter(DropDown.DropDownViewConverter<T> viewConverter)
          Deprecated. Change the DropDownViewConverter for this DropDown.
 
Methods inherited from class de.lessvoid.nifty.controls.AbstractController
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, onFocus, 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
 
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Constructor Detail

DropDownControl

public DropDownControl()
Deprecated. 
Method Detail

bind

public void bind(Nifty niftyParam,
                 Screen screenParam,
                 Element newElement,
                 Properties properties,
                 Attributes controlDefinitionAttributesParam)
Deprecated. 
Specified by:
bind 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

dropDownClicked

public void dropDownClicked()
Deprecated. 

close

public void close()
Deprecated. 

close

public void close(EndNotify endNotify)
Deprecated. 

refresh

public void refresh()
Deprecated. 

setViewConverter

public void setViewConverter(DropDown.DropDownViewConverter<T> viewConverter)
Deprecated. 
Description copied from interface: DropDown
Change the DropDownViewConverter for this DropDown.

Specified by:
setViewConverter in interface DropDown<T>
Parameters:
viewConverter - DropDownViewConverter

addItem

public void addItem(T newItem)
Deprecated. 
Description copied from interface: DropDown
Add a item to the DropDown.

Specified by:
addItem in interface DropDown<T>
Parameters:
newItem - the item to add

insertItem

public void insertItem(T item,
                       int index)
Deprecated. 
Description copied from interface: DropDown
Insert the given item at the given index.

Specified by:
insertItem in interface DropDown<T>
Parameters:
item - item
index - the index to insert the item.

itemCount

public int itemCount()
Deprecated. 
Description copied from interface: DropDown
Retrieve the number of items in the DropDown.

Specified by:
itemCount in interface DropDown<T>
Returns:
number of items.

clear

public void clear()
Deprecated. 
Description copied from interface: DropDown
Clear all items from this DropDown.

Specified by:
clear in interface DropDown<T>

selectItemByIndex

public void selectItemByIndex(int selectionIndex)
Deprecated. 
Description copied from interface: DropDown
Select the item with the given index in the DropDown.

Specified by:
selectItemByIndex in interface DropDown<T>
Parameters:
selectionIndex - the item index to select in the DropDown

selectItem

public void selectItem(T item)
Deprecated. 
Description copied from interface: DropDown
Select the item in the DropDown.

Specified by:
selectItem in interface DropDown<T>
Parameters:
item - the item to select

getSelection

public T getSelection()
Deprecated. 
Description copied from interface: DropDown
Get the current selection.

Specified by:
getSelection in interface DropDown<T>
Returns:
the selected item in this DropDown.

getSelectedIndex

public int getSelectedIndex()
Deprecated. 
Description copied from interface: DropDown
Returns the index of the current selected item in the list of all items.

Specified by:
getSelectedIndex in interface DropDown<T>
Returns:
selected item index

removeItemByIndex

public void removeItemByIndex(int itemIndex)
Deprecated. 
Description copied from interface: DropDown
Remove an item from the DropDown by index.

Specified by:
removeItemByIndex in interface DropDown<T>
Parameters:
itemIndex - remove the item with the given index from the DropDown

removeItem

public void removeItem(T item)
Deprecated. 
Description copied from interface: DropDown
Remove the given item from the DropDown.

Specified by:
removeItem in interface DropDown<T>
Parameters:
item - the item to remove from the DropDown

getItems

public List<T> getItems()
Deprecated. 
Description copied from interface: DropDown
Get all items of this DropDown.

Specified by:
getItems in interface DropDown<T>
Returns:
list of all items

addAllItems

public void addAllItems(List<T> itemsToAdd)
Deprecated. 
Description copied from interface: DropDown
Add all items to the DropDown.

Specified by:
addAllItems in interface DropDown<T>
Parameters:
itemsToAdd - all items to add

removeAllItems

public void removeAllItems(List<T> itemsToRemove)
Deprecated. 
Description copied from interface: DropDown
Remove all items given in the List from this DropDown.

Specified by:
removeAllItems in interface DropDown<T>
Parameters:
itemsToRemove - list of items to remove


Copyright © 2011. All Rights Reserved.