org.gnu.gtk
public class SimpleList extends Widget
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.SimpleList
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
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. |
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Constructs a SimpleList object.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds a new element at the given positionParameters: text The text of the new element position The position in which it should be placed. 0 is at the start of the list.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds an element to the end of the listParameters: text The text of the element
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds an element to the start of the listParameters: text the text of the element
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns true if the element atindex
is selectedDeprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the number of items in the listDeprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the string at the given positionParameters: position The position in the list to investigate
Returns: The value of the cell at that position
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes the element at the given positionDeprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Remove the given element. This iterates over the elements contained in the list until a matching element is found.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Selects the element atindex
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether the user may edit the cell contents directly.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets how many of the elements can be selected.