swingwt.awt
Class Choice
java.lang.Object
swingwt.awt.Component
swingwt.awt.AWTSwingWrapper
swingwt.awt.Choice
- All Implemented Interfaces:
- ImageObserver, MenuContainer
- public class Choice
- extends AWTSwingWrapper
Fields inherited from class swingwt.awt.Component |
accessibleContext, actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, ppeer, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT |
Constructor Summary |
Choice()
|
Choice(java.lang.Object[] items)
|
Choice(java.util.Vector items)
|
Methods inherited from class swingwt.awt.AWTSwingWrapper |
addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, calculatePreferredSize, componentOnlyDispose, computePreferredSize, contains, createImage, createVolatileImage, dispatchEvent, dispose, getAccessibleContext, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getComponentOrientation, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPeerSize, getPreferredSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, invalidate, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, minimumSize, preferredSize, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setSwingWTParent, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
Methods inherited from class swingwt.awt.Component |
add, addMouseWheelListener, contains, createListenerArrayFromVector, getListeners, getSize, inside, paint, paintComponent, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeMouseWheelListener, setCachedProperties, setComponentRemoved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Choice
public Choice()
Choice
public Choice(java.lang.Object[] items)
Choice
public Choice(java.util.Vector items)
add
public void add(java.lang.String item)
addItem
public void addItem(java.lang.String item)
addItemListener
public void addItemListener(ItemListener l)
countItems
public int countItems()
getItem
public java.lang.String getItem(int index)
getItemCount
public int getItemCount()
getItemListeners
public ItemListener[] getItemListeners()
getSelectedIndex
public int getSelectedIndex()
getSelectedItem
public java.lang.String getSelectedItem()
getSelectedObjects
public java.lang.Object[] getSelectedObjects()
insert
public void insert(java.lang.String item,
int index)
processEvent
protected void processEvent(AWTEvent e)
processItemEvent
protected void processItemEvent(ItemEvent e)
remove
public void remove(int position)
remove
public void remove(java.lang.String item)
removeAll
public void removeAll()
removeItemListener
public void removeItemListener(ItemListener l)
select
public void select(int pos)
select
public void select(java.lang.String str)