kAWT Version 0.90

java.awt
Class List

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

public class List
extends Component
implements ItemSelectable


Constructor Summary
List()
           
 
Method Summary
 void add(String item)
           
 void addItemListener(ItemListener l)
           
 void deselect(int old)
           
 void doLayout()
           
 Component findComponentAt(int px, int py)
           
 Dimension getMinimumSize()
           
 int getSelectedIndex()
           
 String getSelectedItem()
           
 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 select(int index)
           
 void update(Graphics g)
           
 
Methods inherited from class java.awt.Component
addKeyListener, addMouseListener, contains, getBounds, getFont, getFontMetrics, getGraphics, getHeight, getLocationOnScreen, getMaximumSize, getParent, getPreferredSize, getSize, getWidth, getX, getY, invalidate, isEnabled, isValid, isVisible, paintAll, processKeyEvent, proxyRequestFocus, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setForeground, 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(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 String getSelectedItem()

getSelectedObjects

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

findComponentAt

public Component findComponentAt(int px,
                                 int py)
Overrides:
findComponentAt in class Component

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()

doLayout

public void doLayout()

remove

public void remove(int position)

removeItemListener

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

deselect

public void deselect(int old)

select

public void select(int index)

kAWT Version 0.90