kAWT Version 0.21

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()
           
 
Method Summary
 void add(java.lang.String item)
           
 void addItemListener(ItemListener il)
           
 Dimension getMinimumSize()
           
 int getSelectedIndex()
           
 java.lang.String getSelectedItem()
           
 void paint(Graphics g)
           
 void processMouseEvent(MouseEvent me)
          Does not work because of the type cast Problem!
 void removeAll()
           
 void update(Graphics g)
           
 
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
 

Constructor Detail

List

public List()
Method Detail

add

public void add(java.lang.String item)

addItemListener

public void addItemListener(ItemListener il)

removeAll

public void removeAll()

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

kAWT Version 0.21