void add(String item)
| Adds the specified item to the end of the list.
|
void add(String item, int index)
| Used to insert the given item to the given index in the list.
|
void addActionListener(ActionListener l)
| Registers an ActionListener to listen for item selection events in the list.
|
void addItemListener(ItemListener l)
| Registers an ItemListener to listen for item selection events in the list.
|
void addNotify()
| Creates the peer of the list, if it doesn't already exist.
|
void deselect(int index)
| Deselects the item at the specified index in a multiple-selection list.
|
AccessibleContext getAccessibleContext()
| Gets the AccessibleContext associated with this List.
|
ActionListener[] getActionListeners()
| Used to return an array of all the ActionListeners added to this list.
|
String getItem(int index)
| Retrieves the item at the specified index in the list.
|
int getItemCount()
| Returns length(the number of items) in the list.
|
ItemListener[] getItemListeners()
| Used to return an array of all the ItemListeners added to this list.
|
String[] getItems()
| Used to return an array of all the items in the list.
|
Dimension getMinimumSize()
| Used to return the minimum size of the list.
|
Dimension getMinimumSize(int rows)
| Used to return the minimum size needed to display the specified number of rows.
|
Dimension getPreferredSize()
| Used to return the preferred size of the list.
|
Dimension getPreferredSize(int rows)
| Used to return the preferred size needed to display the specified number of rows.
|
int getRows()
| Used to return the number of rows present in the list.
|
int getSelectedIndex()
| Returns the index of the first selected item in a multiple-selection list.
|
int[] getSelectedIndexes()
| Returns an array of the selected item indexes in a multiple-selection list.
|
String getSelectedItem()
| Returns the selected item in a single-selection list.
|
String[] getSelectedItems()
| Returns an array of the selected item values in a multiple-selection list.
|
Object[] getSelectedObjects()
| Returns an array of selected items in a multiple-selection list.
|
int getVisibleIndex()
| Returns the index of the first visible item in the list.
|
void makeVisible(int index)
| Scrolls the list to make the item at the given index visible.
|
boolean isIndexSelected(int index)
| Checks if the item at the given index is selected in a multiple-selection list.
|
boolean isMultipleMode()
| Check if the list allows multiple selections.
|
protected String paramString()
| Returns a string representing the state of this list.
|
protected void processActionEvent(ActionEvent e)
| Processes action events occurring in this list.
|
protected void processEvent(AWTEvent e)
| Processes events occurring in this list.
|
protected void processItemEvent(ItemEvent e)
| Processes item events occurring in this list.
|
void removeActionListener(ActionListener l)
| Used to remove an ActionListener from the list.
|
void removeItemListener(ItemListener l)
| Used to remove an ItemListener from the list.
|
void remove(int position)
| Used to remove the item at the given index from the list.
|
void remove(String item)
| Used to remove the first occurrence of the given item from the list.
|
void removeAll()
| Used to remove all items from the list.
|
void replaceItem(String newVal, int index)
| Replace the item at the given index with a new item.
|
void select(int index)
| Selects the item at the given index in the list.
|
void setMultipleMode(boolean b)
| Sets whether the list allows multiple selections (true) or single selection (false).
|
void removeNotify()
| Used to destroys the peer of the list.
|