ListPeer is an interface that defines the basis for list components.
public abstract interface java.awt.peer.ListPeer extends java.awt.peer.ComponentPeer { // Interface Methods public abstract void add (String item, int index); public abstract void addItem (String item, int index); public abstract void clear(); public abstract void delItems (int start, int end); public abstract void deselect (int index); public abstract Dimension getMinimumSize (int rows); public abstract Dimension getPreferredSize (int rows); public abstract int[] getSelectedIndexes(); public abstract void makeVisible (int index); public abstract Dimension minimumSize (int rows); public abstract Dimension preferredSize (int rows); public abstract void removeAll(); public abstract void select (int position); public abstract void setMultipleMode (boolean b); public abstract void setMultipleSelections (boolean value); }
Text of an entry to add to the list.
Position in which to add the entry; position 0 is the first entry in the list.
Adds a new entry to the available choices of the list's peer at the designated position.
Text of an entry to add to the list.
Position in which to add the entry; position 0 is the first entry in the list.
Adds a new entry to the available choices of the list's peer at the designated position. Replaced by add(String, int).
Clears all the entries out of the list's peer. Replaced by removeAll().
Starting position of entries to delete.
Ending position of entries to delete.
Removes a set of entries from the list's peer.
Position to deselect.
Deselects entry at designated position, if selected.
Number of rows within list's peer to size.
The minimum dimensions of a list's peer of the given size.
Number of rows within list's peer to size.
The preferred dimensions of a list's peer of the given size.
Array of positions of currently selected entries in list's peer.
Position to make visible on screen.
Ensures an item is displayed on the screen in the list's peer.
Number of rows within list's peer to size.
The minimum dimensions of a list's peer of the given size. Replaced by getMinimumSize(int).
Number of rows within list's peer to size.
The preferred dimensions of a list's peer of the given size. Replaced by getPreferredSize(int).
Clears all the entries out of the list's peer.
Position to select; 0 indicates the first item in the list.
Makes the given entry the selected item for the list's peer; deselects other selected entries if multiple selections are not enabled.
true to allow multiple selections within the list's peer; false to disallow multiple selections.
Changes list peer's selection mode.
true to allow multiple selections within the list's peer; false to disallow multiple selections.
Changes list peer's selection mode. Replaced by setMultipleMode(boolean).
ComponentPeer, Dimension, String