public class ExpandableList
extends java.lang.Object
| Constructor and Description |
|---|
ExpandableList() |
ExpandableList(int current,
java.lang.String[] list,
boolean editable) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name)
Adds an element to the
ExpandableList. |
boolean |
contains(java.lang.String name)
Determines whether a name in included in the
ExpandableList. |
java.lang.String[] |
elementArray()
Returns the number of elements in the
ExpandableList. |
java.util.Enumeration |
elements()
Lists the elements in the
ExpandableList. |
int |
getCurrentIndex()
Gets the current index.
|
java.lang.String |
getCurrentText()
Gets the text associated with the current index.
|
boolean |
getEditable()
Determines whether a new element can be added and set as the selected.
|
void |
remove(java.lang.String name)
Removes an element from the
ExpandableList. |
void |
removeAll()
Removes all elements from the
ExpandableList. |
void |
replace(int index,
java.lang.String name)
Replaces a name at a supplied index in the
ExpandableList. |
void |
setCurrentIndex(int current)
Sets the current index into the list.
|
int |
size()
Returns the size of the
ExpandableList. |
java.lang.String |
toString()
Returns a
String representation of the object. |
public ExpandableList()
public ExpandableList(int current,
java.lang.String[] list,
boolean editable)
public void add(java.lang.String name)
ExpandableList.public void replace(int index,
java.lang.String name)
ExpandableList.index - the index within the ExpandableList to replacename - the new name to add to the setpublic boolean contains(java.lang.String name)
ExpandableList.public int size()
ExpandableList.public java.util.Enumeration elements()
ExpandableList.public java.lang.String[] elementArray()
ExpandableList.public void remove(java.lang.String name)
ExpandableList.public void removeAll()
ExpandableList.public java.lang.String toString()
String representation of the object.toString in class java.lang.Objectpublic void setCurrentIndex(int current)
public int getCurrentIndex()
public java.lang.String getCurrentText()
public boolean getEditable()