public class DropDownNull extends Object implements DropDown
DropDown.DropDownViewConverter<T>, DropDown.SimpleDropDownViewConverter<T>| Constructor and Description |
|---|
DropDownNull() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllItems(List itemsToAdd)
Add all items to the DropDown.
|
void |
addItem(Object newItem)
Add a item to the DropDown.
|
void |
clear()
Clear all items from this DropDown.
|
void |
disable() |
void |
enable() |
Element |
getElement() |
int |
getHeight() |
String |
getId() |
List |
getItems()
Get all items of this DropDown.
|
int |
getSelectedIndex()
Returns the index of the current selected item in the list of all items.
|
Object |
getSelection()
Get the current selection.
|
String |
getStyle() |
int |
getWidth() |
boolean |
hasFocus() |
void |
insertItem(Object item,
int index)
Insert the given item at the given index.
|
boolean |
isBound() |
boolean |
isEnabled() |
int |
itemCount()
Retrieve the number of items in the DropDown.
|
void |
layoutCallback() |
void |
removeAllItems(List itemsToRemove)
Remove all items given in the List from this DropDown.
|
void |
removeItem(Object item)
Remove the given item from the DropDown.
|
void |
removeItemByIndex(int itemIndex)
Remove an item from the DropDown by index.
|
void |
selectItem(Object item)
Select the item in the DropDown.
|
void |
selectItemByIndex(int selectionIndex)
Select the item with the given index in the DropDown.
|
void |
setEnabled(boolean enabled) |
void |
setFocus() |
void |
setFocusable(boolean focusable) |
void |
setHeight(SizeValue height) |
void |
setId(String id) |
void |
setStyle(String style) |
void |
setViewConverter(DropDown.DropDownViewConverter viewConverter)
Change the DropDownViewConverter for this DropDown.
|
void |
setWidth(SizeValue width) |
public Element getElement()
getElement in interface NiftyControlpublic String getId()
getId in interface NiftyControlpublic void setId(String id)
setId in interface NiftyControlpublic int getWidth()
getWidth in interface NiftyControlpublic void setWidth(SizeValue width)
setWidth in interface NiftyControlpublic int getHeight()
getHeight in interface NiftyControlpublic void setHeight(SizeValue height)
setHeight in interface NiftyControlpublic String getStyle()
getStyle in interface NiftyControlpublic void setStyle(String style)
setStyle in interface NiftyControlpublic void enable()
enable in interface NiftyControlpublic void disable()
disable in interface NiftyControlpublic void setEnabled(boolean enabled)
setEnabled in interface NiftyControlpublic boolean isEnabled()
isEnabled in interface NiftyControlpublic void setViewConverter(DropDown.DropDownViewConverter viewConverter)
DropDownsetViewConverter in interface DropDownviewConverter - DropDownViewConverterpublic void addItem(Object newItem)
DropDownpublic void insertItem(Object item, int index)
DropDowninsertItem in interface DropDownitem - itemindex - the index to insert the item.public int itemCount()
DropDownpublic void clear()
DropDownpublic void selectItemByIndex(int selectionIndex)
DropDownselectItemByIndex in interface DropDownselectionIndex - the item index to select in the DropDownpublic void selectItem(Object item)
DropDownselectItem in interface DropDownitem - the item to selectpublic Object getSelection()
DropDowngetSelection in interface DropDownpublic int getSelectedIndex()
DropDowngetSelectedIndex in interface DropDownpublic void removeItemByIndex(int itemIndex)
DropDownremoveItemByIndex in interface DropDownitemIndex - remove the item with the given index from the DropDownpublic void removeItem(Object item)
DropDownremoveItem in interface DropDownitem - the item to remove from the DropDownpublic List getItems()
DropDownpublic void addAllItems(List itemsToAdd)
DropDownaddAllItems in interface DropDownitemsToAdd - all items to addpublic void removeAllItems(List itemsToRemove)
DropDownremoveAllItems in interface DropDownitemsToRemove - list of items to removepublic void setFocus()
setFocus in interface NiftyControlpublic void setFocusable(boolean focusable)
setFocusable in interface NiftyControlpublic boolean hasFocus()
hasFocus in interface NiftyControlpublic void layoutCallback()
layoutCallback in interface NiftyControlpublic boolean isBound()
isBound in interface NiftyControlCopyright © 2013. All Rights Reserved.