Packages This Package Prev Next Index
public interface java.awt.peer.ListPeer extends java.awt.peer.ComponentPeer (II-§3.6) { // Methods public abstract void addItem(String item, int index); §3.12.1 public abstract void clear(); §3.12.2 public abstract void delItems(int start, int end) §3.12.3 public abstract void deselect(int index); §3.12.4 public abstract int[] getSelectedIndexes(); §3.12.5 public abstract void makeVisible(int index); §3.12.6 public abstract Dimension minimumSize(int v); §3.12.7 public abstract Dimension preferredSize(int v); §3.12.8 public abstract void select(int index); §3.12.9 public abstract void setMultipleSelections(boolean v); §3.12.10 }
public abstract void addItem(String item, int index)
item
-
the string to be added
index
-
the position at which to put in the item
public abstract void clear()
public abstract void delItems(int start, int end)
start
-
the index of the first element to delete
end
-
the index of the last element to delete
public abstract void deselect(int index)
index
-
the position of the item to deselect
public abstract int[] getSelectedIndexes()
public abstract void makeVisible(int index)
public abstract Dimension minimumSize(int v)
rows
-
number of rows
public abstract Dimension preferredSize(int v)
rows
-
number of rows
public abstract void select(int index)
index
-
the position of the item to select
public abstract void setMultipleSelections(boolean v)
v
-
if true then multiple selections are allowed; otherwise, only one item
can be selected at a time
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)