All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.ListSpinner
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----fr.l2f.gui.Spinner
|
+----fr.l2f.gui.ListSpinner
- public class ListSpinner
- extends Spinner
-
list
-
-
ListSpinner()
- Constructs an empty ListSpinner.
-
addItem(String)
- Add a String to the list
-
addNotify()
- As the ListSpinner is added to the Container
get the length of the largest String in the list.
-
getCurrentText()
- Get the current String from the list
-
getListItems()
- Returns the current list as a array.
-
setListItems(String[])
- Adds the string array to the list.
list
protected Vector list
ListSpinner
public ListSpinner()
- Constructs an empty ListSpinner.
addNotify
public void addNotify()
- As the ListSpinner is added to the Container
get the length of the largest String in the list.
- Overrides:
- addNotify in class Spinner
addItem
public void addItem(String s)
- Add a String to the list
- Parameters:
- String - s the String to be appended to the list
getCurrentText
public String getCurrentText()
- Get the current String from the list
- Returns:
- String the String currently visible in the Spinner
- Overrides:
- getCurrentText in class Spinner
setListItems
public void setListItems(String items[])
- Adds the string array to the list.
- Parameters:
- items - items to add to the list
- See Also:
- getListItems
getListItems
public String[] getListItems()
- Returns the current list as a array.
- Returns:
- String[] current list
- See Also:
- setListItems
All Packages Class Hierarchy This Package Previous Next Index