|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.dropdown.DropDownControl<T>
DropDown when accessing NiftyControls.
@Deprecated public class DropDownControl<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 |
|---|
public DropDownControl()
| Method Detail |
|---|
public 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)
DropDown
setViewConverter in interface DropDown<T>viewConverter - DropDownViewConverterpublic void addItem(T newItem)
DropDown
addItem in interface DropDown<T>newItem - the item to add
public void insertItem(T item,
int index)
DropDown
insertItem in interface DropDown<T>item - itemindex - the index to insert the item.public int itemCount()
DropDown
itemCount in interface DropDown<T>public void clear()
DropDown
clear in interface DropDown<T>public void selectItemByIndex(int selectionIndex)
DropDown
selectItemByIndex in interface DropDown<T>selectionIndex - the item index to select in the DropDownpublic void selectItem(T item)
DropDown
selectItem in interface DropDown<T>item - the item to selectpublic T getSelection()
DropDown
getSelection in interface DropDown<T>public int getSelectedIndex()
DropDown
getSelectedIndex in interface DropDown<T>public void removeItemByIndex(int itemIndex)
DropDown
removeItemByIndex in interface DropDown<T>itemIndex - remove the item with the given index from the DropDownpublic void removeItem(T item)
DropDown
removeItem in interface DropDown<T>item - the item to remove from the DropDownpublic List<T> getItems()
DropDown
getItems in interface DropDown<T>public void addAllItems(List<T> itemsToAdd)
DropDown
addAllItems in interface DropDown<T>itemsToAdd - all items to addpublic void removeAllItems(List<T> itemsToRemove)
DropDown
removeAllItems in interface DropDown<T>itemsToRemove - list of items to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||