|
kAWT Version 0.98 | ||||||||
| 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(String item)
Adds an item to the Choice. |
void |
addItem(String item)
Adds an item to the Choice. |
void |
addItemListener(ItemListener l)
Adds an item listener to the choice. |
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. |
String |
getSelectedItem()
Returns the selected item |
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(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(String item)
Selects the given item |
| Methods inherited from class java.awt.Component |
addKeyListener,
addMouseListener,
addMouseMotionListener,
contains,
findComponentAt,
getBackground,
getBounds,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getLocationOnScreen,
getMaximumSize,
getParent,
getPreferredSize,
getSize,
getWidth,
getX,
getY,
hasFocus,
invalidate,
isEnabled,
isFocusTraversable,
isValid,
isVisible,
paintAll,
processKeyEvent,
processMouseEvent,
repaint,
repaint,
requestFocus,
setBackground,
setBounds,
setEnabled,
setForeground,
setLocation,
setSize,
setSize,
setVisible,
update,
validate |
| 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(String item)
public void addItem(String item)
public void addItemListener(ItemListener l)
public String getItem(int index)
public int getItemCount()
public int getSelectedIndex()
public String getSelectedItem()
public Object[] getSelectedObjects()
public Dimension getMinimumSize()
public void paint(Graphics g)
public void remove(String item)
public void remove(int index)
public void removeItemListener(ItemListener l)
public void select(int index)
public void select(String item)
|
kAWT Version 0.98 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||