add
public void add(String text,
int position)
Adds a new element at the given position
text
- The text of the new elementposition
- The position in which it should be placed. 0 is at the start
of the list.
addEnd
public void addEnd(String text)
Adds an element to the end of the list
text
- The text of the element
addStart
public void addStart(String text)
Adds an element to the start of the list
text
- the text of the element
getEntries
public String[] getEntries()
getSelected
public String[] getSelected()
getSelected
public boolean getSelected(int index)
Returns true if the element at index
is selected
getSize
public int getSize()
Returns the number of items in the list
getValue
public String getValue(int position)
Returns the string at the given position
position
- The position in the list to investigate
- The value of the cell at that position
remove
public void remove(String val)
Remove the given element. This iterates over the elements contained in
the list until a matching element is found.
remove
public void remove(int position)
Removes the element at the given position
select
public void select(int index)
Selects the element at index
setEditable
public void setEditable(boolean setting)
Sets whether the user may edit the cell contents directly.
setSelectable
public void setSelectable(SelectionMode setting)
Sets how many of the elements can be selected.