Constructors
Name | Description |
---|---|
List() | Creates a new scrolling list. |
List(int) | Creates a new scrolling list initialized with the specified number of visible lines. |
List(int, boolean) | Creates a new scrolling list initialized to display the specified number of rows. |
Methods
Name | Description |
---|---|
add(String) | Adds the specified item to the end of scrolling list. |
add(String, int) | Adds the specified item to the end of the scrolling list. |
addActionListener(ActionListener) | Adds the specified action listener to receive action events from this list. |
addItem(String) | Deprecated. |
addItem(String, int) | Deprecated. |
addItemListener(ItemListener) | Adds the specified item listener to receive item events from this list. |
addNotify() | Creates the peer for the list. |
allowsMultipleSelections() | Deprecated. |
clear() | Deprecated. |
countItems() | Deprecated. |
delItem(int) | Deprecated. |
delItems(int, int) | Deprecated. |
deselect(int) | Deselects the item at the specified index. |
getItem(int) | Gets the item associated with the specified index. |
getItemCount() | Gets the number of items in the list. |
getItems() | Gets the items in the list. |
getMinimumSize() | Determines the minimum size of this scrolling list. |
getMinimumSize(int) | Gets the minumum dimensions for a list with the specified number of rows. |
getPreferredSize() | Gets the preferred size of this scrolling list. |
getPreferredSize(int) | Gets the preferred dimensions for a list with the specified number of rows. |
getRows() | Get the number of visible lines in this list. |
getSelectedIndex() | Gets the index of the selected item on the list, |
getSelectedIndexes() | Gets the selected indexes on the list. |
getSelectedItem() | Get the selected item on this scrolling list. |
getSelectedItems() | Get the selected items on this scrolling list. |
getSelectedObjects() | Returns the selected items on the list in an array of Objects. |
getVisibleIndex() | Gets the index of the item that was last made visible by the method makeVisible. |
isIndexSelected(int) | Determines if the specified item in this scrolling list is selected. |
isMultipleMode() | Determines whether this list allows multiple selections. |
isSelected(int) | Deprecated. |
makeVisible(int) | Makes the item at the specified index visible. |
minimumSize() | Deprecated. |
minimumSize(int) | Deprecated. |
paramString() | Returns the parameter string representing the state of this scrolling list. |
preferredSize() | Deprecated. |
preferredSize(int) | Deprecated. |
processActionEvent(ActionEvent) | Processes action events occurring on this component by dispatching them to any registered ActionListener objects. |
processEvent(AWTEvent) | Processes events on this scrolling list. |
processItemEvent(ItemEvent) | Processes item events occurring on this list by dispatching them to any registered ItemListener objects. |
remove(int) | Remove the item at the specified position from this scrolling list. |
remove(String) | Removes the first occurrence of an item from the list. |
removeActionListener(ActionListener) | Removes the specified action listener so that it no longer receives action events from this list. |
removeAll() | Removes all items from this list. |
removeItemListener(ItemListener) | Removes the specified item listener so that it no longer receives item events from this list. |
removeNotify() | Removes the peer for this list. |
replaceItem(String, int) | Replaces the item at the specified index in the scrolling list with the new string. |
select(int) | Selects the item at the specified index in the scrolling list. |
setMultipleMode(boolean) | Sets the flag that determines whether this list allows multiple selections. |
setMultipleSelections(boolean) | Deprecated. |