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, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
public void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributesParam)
bind
in interface Controller
public void onStartScreen()
onStartScreen
in interface Controller
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public 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
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
public void clear()
DropDown
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
public void addAllItems(List<T> itemsToAdd)
DropDown
addAllItems
in interface DropDown<T>
itemsToAdd
- all items to addCopyright © 2013. All Rights Reserved.