|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Choice
| Constructor Summary | |
Choice()
|
|
| Method Summary | |
void |
add(java.lang.String item)
Adds an item to the Choice. |
void |
addItem(java.lang.String item)
Adds an item to the Choice. |
void |
addItemListener(ItemListener l)
Adds an item listener to the choice. |
java.lang.String |
getItem(int index)
returns the item at the given index |
int |
getItemCount()
Returns the number of items in the choice |
Dimension |
getMinimumSize()
returns the minimum dimensions of the choice |
int |
getSelectedIndex()
Returns the index of the selected item. |
java.lang.String |
getSelectedItem()
Returns the selected item |
java.lang.Object[] |
getSelectedObjects()
Returns an object array containing the selected objects |
void |
paint(Graphics g)
Paints the choice. |
void |
remove(int index)
Removes the item at the given index from the choice. |
void |
remove(java.lang.String item)
Removes the given item from the choice. |
void |
removeItemListener(ItemListener l)
Removes the item listener from the choice. |
void |
select(int index)
Setlects the item at the given index |
void |
select(java.lang.String item)
Selects the given item |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Choice()
| Method Detail |
public void add(java.lang.String item)
public void addItem(java.lang.String item)
public void addItemListener(ItemListener l)
addItemListener in interface ItemSelectablepublic java.lang.String getItem(int index)
public int getItemCount()
public int getSelectedIndex()
public java.lang.String getSelectedItem()
public java.lang.Object[] getSelectedObjects()
getSelectedObjects in interface ItemSelectablepublic Dimension getMinimumSize()
getMinimumSize in class Componentpublic void paint(Graphics g)
paint in class Componentpublic void remove(java.lang.String item)
public void remove(int index)
public void removeItemListener(ItemListener l)
removeItemListener in interface ItemSelectablepublic void select(int index)
public void select(java.lang.String item)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||