swingwt.awt
Class Choice

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.AWTSwingWrapper
          extended byswingwt.awt.Choice
All Implemented Interfaces:
ImageObserver, MenuContainer

public class Choice
extends AWTSwingWrapper


Field Summary
 
Fields inherited from class swingwt.awt.AWTSwingWrapper
swingPeer
 
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
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Choice()
           
Choice(java.lang.Object[] items)
           
Choice(java.util.Vector items)
           
 
Method Summary
 void add(java.lang.String item)
           
 void addItem(java.lang.String item)
           
 void addItemListener(ItemListener l)
           
 int countItems()
           
 java.lang.String getItem(int index)
           
 int getItemCount()
           
 ItemListener[] getItemListeners()
           
 int getSelectedIndex()
           
 java.lang.String getSelectedItem()
           
 java.lang.Object[] getSelectedObjects()
           
 void insert(java.lang.String item, int index)
           
protected  void processEvent(AWTEvent e)
           
protected  void processItemEvent(ItemEvent e)
           
 void remove(int position)
           
 void remove(java.lang.String item)
           
 void removeAll()
           
 void removeItemListener(ItemListener l)
           
 void select(int pos)
           
 void select(java.lang.String str)
           
 
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
 

Constructor Detail

Choice

public Choice()

Choice

public Choice(java.lang.Object[] items)

Choice

public Choice(java.util.Vector items)
Method Detail

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)