public interface ChoicePeer extends ComponentPeer
Choice
.
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.DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
Modifier and Type | Method and Description |
---|---|
void |
add(String item,
int index)
Adds an item with the string
item to the combo box list
at index index . |
void |
remove(int index)
Removes the item at index
index from the combo box list. |
void |
removeAll()
Removes all items from the combo box list.
|
void |
select(int index)
Selects the item at index
index . |
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
void add(String item, int index)
item
to the combo box list
at index index
.item
- the label to be added to the listindex
- the index where to add the itemChoice.add(String)
void remove(int index)
index
from the combo box list.index
- the index where to remove the itemChoice.remove(int)
void removeAll()
Choice.removeAll()
void select(int index)
index
.index
- the index which should be selectedChoice.select(int)
Dracula Javadoc Sample, Made with Allan Im.