java.awt
Class List
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.List
- public class List
- extends Component
the List is currently only used as helper class for the choice since
scrolling is not yet implemented
Constructor Summary |
List()
|
Methods inherited from class java.awt.Component |
addKeyListener,
addMouseListener,
contains,
findComponentAt,
getFont,
getFontMetrics,
getGraphics,
getHeight,
getLocationOnScreen,
getPreferredSize,
getSize,
getWidth,
getX,
getY,
invalidate,
isEnabled,
paintAll,
processKeyEvent,
proxyRequestFocus,
repaint,
repaint,
requestFocus,
setBackground,
setBounds,
setEnabled,
setLocation,
setSize,
setSize,
setVisible,
validate |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
List
public List()
add
public void add(java.lang.String item)
addItemListener
public void addItemListener(ItemListener il)
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
getSelectedIndex
public int getSelectedIndex()
getSelectedItem
public java.lang.String getSelectedItem()
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
processMouseEvent
public void processMouseEvent(MouseEvent me)
- Description copied from class: Component
- Does not work because of the type cast Problem!
All event sources call the specialized method
(e.g. processMouseEvent) directly
- Overrides:
- processMouseEvent in class Component
remove
public void remove(int position)
removeAll
public void removeAll()
setSelectedIndex
public void setSelectedIndex(int idx)