DropDown when accessing NiftyControls.@Deprecated public class DropDownControl<T> extends AbstractController implements DropDown<T>
DropDown.DropDownViewConverter<T>, DropDown.SimpleDropDownViewConverter<T>| Constructor and Description |
|---|
DropDownControl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributesParam)
bind in interface Controllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void dropDownClicked()
public void close()
public void close(EndNotify endNotify)
public void refresh()
public void setViewConverter(DropDown.DropDownViewConverter<T> viewConverter)
DropDownsetViewConverter in interface DropDown<T>viewConverter - DropDownViewConverterpublic void addItem(T newItem)
DropDownpublic void insertItem(T item, int index)
DropDowninsertItem in interface DropDown<T>item - itemindex - the index to insert the item.public int itemCount()
DropDownpublic void clear()
DropDownpublic void selectItemByIndex(int selectionIndex)
DropDownselectItemByIndex in interface DropDown<T>selectionIndex - the item index to select in the DropDownpublic void selectItem(T item)
DropDownselectItem in interface DropDown<T>item - the item to selectpublic T getSelection()
DropDowngetSelection in interface DropDown<T>public int getSelectedIndex()
DropDowngetSelectedIndex in interface DropDown<T>public void removeItemByIndex(int itemIndex)
DropDownremoveItemByIndex in interface DropDown<T>itemIndex - remove the item with the given index from the DropDownpublic void removeItem(T item)
DropDownremoveItem in interface DropDown<T>item - the item to remove from the DropDownpublic List<T> getItems()
DropDownpublic void addAllItems(List<T> itemsToAdd)
DropDownaddAllItems in interface DropDown<T>itemsToAdd - all items to addCopyright © 2013. All Rights Reserved.