kAWT Version 0.25

java.awt
Class List

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.List

public class List
extends Component
implements ItemSelectable

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 l)
           
 Dimension getMinimumSize()
           
 int getSelectedIndex()
           
 java.lang.String getSelectedItem()
           
 java.lang.Object[] getSelectedObjects()
           
 void paint(Graphics g)
           
 void processMouseEvent(MouseEvent me)
          Does not work because of the type cast Problem!
 void remove(int position)
           
 void removeAll()
           
 void removeItemListener(ItemListener l)
           
 void setSelectedIndex(int index)
           
 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, isVisible, paintAll, processKeyEvent, proxyRequestFocus, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setLocation, setSize, setSize, setVisible, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 l)
Specified by:
addItemListener in interface ItemSelectable

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component

getSelectedIndex

public int getSelectedIndex()

getSelectedItem

public java.lang.String getSelectedItem()

getSelectedObjects

public java.lang.Object[] getSelectedObjects()
Specified by:
getSelectedObjects in interface ItemSelectable

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

removeAll

public void removeAll()

remove

public void remove(int position)

removeItemListener

public void removeItemListener(ItemListener l)
Specified by:
removeItemListener in interface ItemSelectable

setSelectedIndex

public void setSelectedIndex(int index)

kAWT Version 0.25