Controller, DropDown<T>, NiftyControlDropDown when accessing NiftyControls.@Deprecated public class DropDownControl<T> extends AbstractController implements DropDown<T>
DropDown.DropDownViewConverter<T>, DropDown.SimpleDropDownViewConverter<T>| Constructor | Description |
|---|---|
DropDownControl() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAllItems(java.util.Collection<T> itemsToAdd) |
Deprecated.
Add all items to the DropDown.
|
void |
addItem(T newItem) |
Deprecated.
Add a item to the DropDown.
|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Parameters properties) |
Deprecated.
|
void |
clear() |
Deprecated.
Clear all items from this DropDown.
|
void |
close() |
Deprecated.
|
void |
close(EndNotify endNotify) |
Deprecated.
|
void |
dropDownClicked() |
Deprecated.
|
java.util.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(java.util.Collection<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, onEndScreen, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(@Nonnull
Nifty nifty,
@Nonnull
Screen screen,
@Nonnull
Element element,
@Nonnull
Parameters properties)
bind in interface Controllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic boolean inputEvent(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void dropDownClicked()
public void close()
public void close(EndNotify endNotify)
public void refresh()
public void setViewConverter(@Nonnull
DropDown.DropDownViewConverter<T> viewConverter)
DropDownsetViewConverter in interface DropDown<T>viewConverter - DropDownViewConverterpublic void addItem(@Nonnull
T newItem)
DropDownpublic void insertItem(@Nonnull
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(@Nonnull
T item)
DropDownselectItem in interface DropDown<T>item - the item to select@Nullable public 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(@Nonnull
T item)
DropDownremoveItem in interface DropDown<T>item - the item to remove from the DropDown@Nonnull public java.util.List<T> getItems()
DropDownpublic void addAllItems(@Nonnull
java.util.Collection<T> itemsToAdd)
DropDownaddAllItems in interface DropDown<T>itemsToAdd - collection of items to addpublic void removeAllItems(@Nonnull
java.util.Collection<T> itemsToRemove)
DropDownremoveAllItems in interface DropDown<T>itemsToRemove - collection of items to removeCopyright © 2018. All rights reserved.