|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListPeer
Disabled: no SafeJ information.
The peer interface for List
.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.
Field Summary |
---|
Fields inherited from interface java.awt.peer.ComponentPeer |
---|
DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE |
Method Summary | |
---|---|
void |
add(String item,
int index)
Adds an item to the list at the specified index. |
void |
delItems(int start,
int end)
Deletes items from the list. |
void |
deselect(int index)
De-selects the item at the specified index . |
Dimension |
getMinimumSize(int rows)
Returns the minimum size for a list with the specified number of rows. |
Dimension |
getPreferredSize(int rows)
Returns the preferred size for a list with the specified number of rows. |
int[] |
getSelectedIndexes()
Returns the indices of the list items that are currently selected. |
void |
makeVisible(int index)
Makes sure that the item at the specified index is visible,
by scrolling the list or similar. |
void |
removeAll()
Removes all items from the list. |
void |
select(int index)
Selects the item at the specified index . |
void |
setMultipleMode(boolean m)
Toggles multiple selection mode on or off. |
Method Detail |
---|
int[] getSelectedIndexes()
List.getSelectedIndexes()
void add(String item, int index)
item
- the item to add to the listindex
- the index where to add the item into the listList.add(String, int)
void delItems(int start, int end)
start
- the first item to be deletedend
- the last item to be deletedvoid removeAll()
List.removeAll()
void select(int index)
index
.
index
- the index of the item to selectList.select(int)
void deselect(int index)
index
.
index
- the index of the item to de-selectList.deselect(int)
void makeVisible(int index)
index
is visible,
by scrolling the list or similar.
index
- the index of the item to make visibleList.makeVisible(int)
void setMultipleMode(boolean m)
m
- true
for multiple selection mode,
false
for single selection modeList.setMultipleMode(boolean)
Dimension getPreferredSize(int rows)
rows
- the number of rows
List.getPreferredSize(int)
Dimension getMinimumSize(int rows)
rows
- the number of rows
List.getMinimumSize(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |