org.gnu.gtk
public class SimpleList extends Widget
Constructor Summary | |
---|---|
SimpleList()
Constructs a SimpleList object. |
Method Summary | |
---|---|
void | add(String text, int position)
Adds a new element at the given position
|
void | addEnd(String text)
Adds an element to the end of the list
|
void | addStart(String text)
Adds an element to the start of the list
|
String[] | getEntries() |
boolean | getSelected(int index)
Returns true if the element at index is selected |
String[] | getSelected() |
int | getSize()
Returns the number of items in the list |
String | getValue(int position)
Returns the string at the given position
|
void | remove(int position)
Removes the element at the given position |
void | remove(String val)
Remove the given element. |
void | select(int index)
Selects the element at index |
void | setEditable(boolean setting)
Sets whether the user may edit the cell contents directly. |
void | setSelectable(SelectionMode setting)
Sets how many of the elements can be selected. |
Parameters: text The text of the new element position The position in which it should be placed. 0 is at the start of the list.
Parameters: text The text of the element
Parameters: text the text of the element
index
is selectedParameters: position The position in the list to investigate
Returns: The value of the cell at that position
index