|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.nullobjects.DropDownNull
public class DropDownNull
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.lessvoid.nifty.controls.DropDown |
|---|
DropDown.DropDownViewConverter<T>, DropDown.SimpleDropDownViewConverter<T> |
| Constructor Summary | |
|---|---|
DropDownNull()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DropDownNull()
| Method Detail |
|---|
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)
DropDown
setViewConverter in interface DropDownviewConverter - DropDownViewConverterpublic void addItem(Object newItem)
DropDown
addItem in interface DropDownnewItem - the item to add
public void insertItem(Object item,
int index)
DropDown
insertItem in interface DropDownitem - itemindex - the index to insert the item.public int itemCount()
DropDown
itemCount in interface DropDownpublic void clear()
DropDown
clear in interface DropDownpublic void selectItemByIndex(int selectionIndex)
DropDown
selectItemByIndex in interface DropDownselectionIndex - the item index to select in the DropDownpublic void selectItem(Object item)
DropDown
selectItem in interface DropDownitem - the item to selectpublic Object getSelection()
DropDown
getSelection in interface DropDownpublic int getSelectedIndex()
DropDown
getSelectedIndex in interface DropDownpublic void removeItemByIndex(int itemIndex)
DropDown
removeItemByIndex in interface DropDownitemIndex - remove the item with the given index from the DropDownpublic void removeItem(Object item)
DropDown
removeItem in interface DropDownitem - the item to remove from the DropDownpublic List getItems()
DropDown
getItems in interface DropDownpublic void addAllItems(List itemsToAdd)
DropDown
addAllItems in interface DropDownitemsToAdd - all items to addpublic void removeAllItems(List itemsToRemove)
DropDown
removeAllItems 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 NiftyControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||