java.awt
Class List
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.List
- public class List
- extends Component
- implements ItemSelectable
Constructor Summary |
List()
|
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 |
List
public List()
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)