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

Variable Index

 o list

Constructor Index

 o ListSpinner()
Constructs an empty ListSpinner.

Method Index

 o addItem(String)
Add a String to the list
 o addNotify()
As the ListSpinner is added to the Container get the length of the largest String in the list.
 o getCurrentText()
Get the current String from the list
 o getListItems()
Returns the current list as a array.
 o setListItems(String[])
Adds the string array to the list.

Variables

 o list
 protected Vector list

Constructors

 o ListSpinner
 public ListSpinner()
Constructs an empty ListSpinner.

Methods

 o 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
 o addItem
 public void addItem(String s)
Add a String to the list

Parameters:
String - s the String to be appended to the list
 o 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
 o setListItems
 public void setListItems(String items[])
Adds the string array to the list.

Parameters:
items - items to add to the list
See Also:
getListItems
 o 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