Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.0
public class List extends Component implements ItemSelectable { // Public Constructors public List(); 1.1 public List(int rows); public List(int rows, boolean multipleMode); // Public Instance Methods 1.1 public void add(String item); 1.1 public synchronized void add(String item, int index); 1.1 public void addActionListener(ActionListener l); public void addItem(String item); public synchronized void addItem(String item, int index); 1.1 public void addItemListener(ItemListener l); public void addNotify(); // Overrides Component.addNotify() # public boolean allowsMultipleSelections(); # public synchronized void clear(); # public int countItems(); public synchronized void delItem(int position); # public synchronized void delItems(int start, int end); public synchronized void deselect(int index); public String getItem(int index); 1.1 public int getItemCount(); 1.1 public synchronized String[] getItems(); 1.1 public Dimension getMinimumSize(int rows); 1.1 public Dimension getMinimumSize(); // Overrides Component.getMinimumSize() 1.1 public Dimension getPreferredSize(int rows); 1.1 public Dimension getPreferredSize(); // Overrides Component.getPreferredSize() public int getRows(); public synchronized int getSelectedIndex(); public synchronized int[] getSelectedIndexes(); public synchronized String getSelectedItem(); public synchronized String[] getSelectedItems(); 1.1 public Object[] getSelectedObjects(); public int getVisibleIndex(); 1.1 public boolean isIndexSelected(int index); 1.1 public boolean isMultipleMode(); # public boolean isSelected(int index); public synchronized void makeVisible(int index); # public Dimension minimumSize(int rows); # public Dimension minimumSize(); // Overrides Component.minimumSize() # public Dimension preferredSize(int rows); # public Dimension preferredSize(); // Overrides Component.preferredSize() 1.1 public synchronized void remove(String item); 1.1 public synchronized void remove(int position); 1.1 public void removeActionListener(ActionListener l); 1.1 public synchronized void removeAll(); 1.1 public void removeItemListener(ItemListener l); public void removeNotify(); // Overrides Component.removeNotify() public synchronized void replaceItem(String newValue, int index); public synchronized void select(int index); 1.1 public synchronized void setMultipleMode(boolean b); # public synchronized void setMultipleSelections(boolean b); // Protected Instance Methods protected String paramString(); // Overrides Component.paramString() 1.1 protected void processActionEvent(ActionEvent e); 1.1 protected void processEvent(AWTEvent e); // Overrides Component.processEvent() 1.1 protected void processItemEvent(ItemEvent e); }