java.awt.peer
Interface ListPeer

All Superinterfaces:
ComponentPeer

public interface ListPeer
extends ComponentPeer

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.
 
Methods inherited from interface java.awt.peer.ComponentPeer
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, getToolkit, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
 

Method Detail

getSelectedIndexes

int[] getSelectedIndexes()
Class is disabled.

Returns the indices of the list items that are currently selected. The returned array is not required to be a copy, the callers of this method already make sure it is not modified.

Returns:
the indices of the list items that are currently selected
See Also:
List.getSelectedIndexes()

add

void add(String item,
         int index)
Class is disabled.

Adds an item to the list at the specified index.

Parameters:
item - the item to add to the list
index - the index where to add the item into the list
See Also:
List.add(String, int)

delItems

void delItems(int start,
              int end)
Class is disabled.

Deletes items from the list. All items from start to end should are deleted, including the item at the start and end indices.

Parameters:
start - the first item to be deleted
end - the last item to be deleted

removeAll

void removeAll()
Class is disabled.

Removes all items from the list.

See Also:
List.removeAll()

select

void select(int index)
Class is disabled.

Selects the item at the specified index.

Parameters:
index - the index of the item to select
See Also:
List.select(int)

deselect

void deselect(int index)
Class is disabled.

De-selects the item at the specified index.

Parameters:
index - the index of the item to de-select
See Also:
List.deselect(int)

makeVisible

void makeVisible(int index)
Class is disabled.

Makes sure that the item at the specified index is visible, by scrolling the list or similar.

Parameters:
index - the index of the item to make visible
See Also:
List.makeVisible(int)

setMultipleMode

void setMultipleMode(boolean m)
Class is disabled.

Toggles multiple selection mode on or off.

Parameters:
m - true for multiple selection mode, false for single selection mode
See Also:
List.setMultipleMode(boolean)

getPreferredSize

Dimension getPreferredSize(int rows)
Class is disabled.

Returns the preferred size for a list with the specified number of rows.

Parameters:
rows - the number of rows
Returns:
the preferred size of the list
See Also:
List.getPreferredSize(int)

getMinimumSize

Dimension getMinimumSize(int rows)
Class is disabled.

Returns the minimum size for a list with the specified number of rows.

Parameters:
rows - the number of rows
Returns:
the minimum size of the list
See Also:
List.getMinimumSize(int)