Home » Eclipse-SWT-3.5.1 » org.eclipse.swt.widgets » [javadoc | source]
org.eclipse.swt.widgets
public class: Combo [javadoc | source]
java.lang.Object
   org.eclipse.swt.widgets.Widget
      org.eclipse.swt.widgets.Control
         org.eclipse.swt.widgets.Scrollable
            org.eclipse.swt.widgets.Composite
               org.eclipse.swt.widgets.Combo

All Implemented Interfaces:
    Drawable

Instances of this class are controls that allow the user to choose an item from a list of items, or optionally enter a new value by typing it into an editable text field. Often, Combos are used in the same place where a single selection List widget could be used but space is limited. A Combo takes less space than a List widget and shows similar information.

Note: Since Combos can contain both a list and an editable text field, it is possible to confuse methods which access one versus the other (compare for example, clearSelection() and deselectAll()). The API documentation is careful to indicate either "the receiver's list" or the "the receiver's text field" to distinguish between the two cases.

Note that although this class is a subclass of Composite, it does not make sense to add children to it, or set a layout on it.

Styles:
DROP_DOWN, READ_ONLY, SIMPLE
Events:
DefaultSelection, Modify, Selection, Verify

Note: Only one of the styles DROP_DOWN and SIMPLE may be specified.

IMPORTANT: This class is not intended to be subclassed.

Field Summary
 boolean noSelection     
 boolean ignoreDefaultSelection     
 boolean ignoreCharacter     
 boolean ignoreModify     
 boolean ignoreResize     
 boolean lockText     
 int scrollWidth     
 int visibleCount     
 int cbtHook     
public static final  int LIMIT    the operating system limit for the number of characters that the text field in an instance of this class can hold 
static final  int CBID_LIST     
static final  int CBID_EDIT     
static  int EditProc     
static  int ListProc     
static final  int ComboProc     
static final  TCHAR ComboClass     
Fields inherited from org.eclipse.swt.widgets.Composite:
layout,  lpwp,  tabList,  layoutCount,  backgroundMode
Fields inherited from org.eclipse.swt.widgets.Scrollable:
horizontalBar,  verticalBar
Fields inherited from org.eclipse.swt.widgets.Control:
handle,  parent,  cursor,  menu,  toolTipText,  layoutData,  accessible,  backgroundImage,  region,  font,  drawCount,  foreground,  background
Fields inherited from org.eclipse.swt.widgets.Widget:
style,  state,  display,  eventTable,  data,  DISPOSED,  CANVAS,  KEYED_DATA,  DISABLED,  HIDDEN,  LAYOUT_NEEDED,  LAYOUT_CHANGED,  LAYOUT_CHILD,  THEME_BACKGROUND,  DRAW_BACKGROUND,  PARENT_BACKGROUND,  RELEASED,  DISPOSE_SENT,  TRACK_MOUSE,  FOREIGN_HANDLE,  DRAG_DETECT,  MOVE_OCCURRED,  MOVE_DEFERRED,  RESIZE_OCCURRED,  RESIZE_DEFERRED,  IGNORE_WM_CHANGEUISTATE,  DEFAULT_WIDTH,  DEFAULT_HEIGHT,  MAJOR,  MINOR
Constructor:
 public Combo(Composite parent,
    int style) 
    Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

    The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

    Parameters:
    parent - a composite control which will be the parent of the new instance (cannot be null)
    style - the style of control to construct
    Throws:
    IllegalArgumentException -
    • ERROR_NULL_ARGUMENT - if the parent is null

    SWTException -
    • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
    • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass

    Also see:
    SWT#DROP_DOWN
    SWT#READ_ONLY
    SWT#SIMPLE
    Widget#checkSubclass
    Widget#getStyle
    exception: IllegalArgumentException -
    • ERROR_NULL_ARGUMENT - if the parent is null

    exception: SWTException -
    • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
    • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass

Method from org.eclipse.swt.widgets.Combo Summary:
CBTProc,   WM_CTLCOLOR,   WM_GETDLGCODE,   WM_KILLFOCUS,   WM_LBUTTONDOWN,   WM_SETFOCUS,   WM_SIZE,   WM_WINDOWPOSCHANGING,   add,   add,   addModifyListener,   addSelectionListener,   addVerifyListener,   callWindowProc,   checkHandle,   checkStyle,   checkSubclass,   clearSelection,   computeSize,   copy,   createHandle,   cut,   defaultBackground,   deregister,   deselect,   deselectAll,   dragDetect,   getItem,   getItemCount,   getItemHeight,   getItems,   getListVisible,   getNameText,   getOrientation,   getSelection,   getSelectionIndex,   getText,   getTextHeight,   getTextLimit,   getVisibleItemCount,   hasFocus,   indexOf,   indexOf,   mbcsToWcsPos,   paste,   register,   remove,   remove,   remove,   remove,   removeAll,   removeModifyListener,   removeSelectionListener,   removeVerifyListener,   select,   sendKeyEvent,   setBackgroundImage,   setBackgroundPixel,   setBounds,   setFont,   setForegroundPixel,   setItem,   setItems,   setListVisible,   setOrientation,   setScrollWidth,   setScrollWidth,   setScrollWidth,   setScrollWidth,   setSelection,   setText,   setTextLimit,   setToolTipText,   setVisibleItemCount,   subclass,   translateTraversal,   traverseEscape,   traverseReturn,   unsubclass,   verifyText,   wcsToMbcsPos,   widgetExtStyle,   widgetStyle,   windowClass,   windowProc,   windowProc,   wmChar,   wmClipboard,   wmCommandChild,   wmIMEChar,   wmKeyDown,   wmSysKeyDown
Methods from org.eclipse.swt.widgets.Composite:
WM_ERASEBKGND,   WM_GETDLGCODE,   WM_GETFONT,   WM_LBUTTONDOWN,   WM_NCHITTEST,   WM_PAINT,   WM_PARENTNOTIFY,   WM_PRINTCLIENT,   WM_SETFONT,   WM_SIZE,   WM_SYSCOLORCHANGE,   WM_SYSCOMMAND,   WM_UPDATEUISTATE,   _getChildren,   _getTabList,   changed,   checkBuffered,   checkComposited,   checkSubclass,   computeSize,   computeTabList,   copyArea,   createHandle,   findDeferredControl,   findMenus,   fixChildren,   fixTabList,   getBackgroundMode,   getChildren,   getChildrenCount,   getLayout,   getLayoutDeferred,   getTabList,   hooksKeys,   isLayoutDeferred,   layout,   layout,   layout,   layout,   markLayout,   minimumSize,   redrawChildren,   releaseChildren,   releaseParent,   releaseWidget,   removeControl,   resizeChildren,   resizeChildren,   resizeEmbeddedHandle,   sendResize,   setBackgroundMode,   setBounds,   setFixedFocus,   setFocus,   setLayout,   setLayoutDeferred,   setResizeChildren,   setTabGroupFocus,   setTabList,   toolTipText,   translateMnemonic,   translateTraversal,   updateBackgroundColor,   updateBackgroundImage,   updateBackgroundMode,   updateFont,   updateLayout,   updateUIState,   widgetStyle,   wmNCPaint,   wmNotify
Methods from org.eclipse.swt.widgets.Scrollable:
WM_HSCROLL,   WM_MOUSEWHEEL,   WM_SIZE,   WM_VSCROLL,   callWindowProc,   computeTrim,   createScrollBar,   createWidget,   destroyScrollBar,   getClientArea,   getHorizontalBar,   getVerticalBar,   releaseChildren,   scrolledHandle,   widgetExtStyle,   widgetStyle,   windowClass,   windowProc,   wmNCPaint,   wmScroll,   wmScrollWheel
Methods from org.eclipse.swt.widgets.Control:
WM_ACTIVATE,   WM_CAPTURECHANGED,   WM_CHANGEUISTATE,   WM_CHAR,   WM_CLEAR,   WM_CLOSE,   WM_COMMAND,   WM_CONTEXTMENU,   WM_CTLCOLOR,   WM_CUT,   WM_DESTROY,   WM_DRAWITEM,   WM_ENDSESSION,   WM_ENTERIDLE,   WM_ERASEBKGND,   WM_GETDLGCODE,   WM_GETFONT,   WM_GETMINMAXINFO,   WM_GETOBJECT,   WM_HELP,   WM_HOTKEY,   WM_HSCROLL,   WM_IME_CHAR,   WM_IME_COMPOSITION,   WM_IME_COMPOSITION_START,   WM_IME_ENDCOMPOSITION,   WM_INITMENUPOPUP,   WM_INPUTLANGCHANGE,   WM_KEYDOWN,   WM_KEYUP,   WM_KILLFOCUS,   WM_LBUTTONDBLCLK,   WM_LBUTTONDOWN,   WM_LBUTTONUP,   WM_MBUTTONDBLCLK,   WM_MBUTTONDOWN,   WM_MBUTTONUP,   WM_MEASUREITEM,   WM_MENUCHAR,   WM_MENUSELECT,   WM_MOUSEACTIVATE,   WM_MOUSEHOVER,   WM_MOUSELEAVE,   WM_MOUSEMOVE,   WM_MOUSEWHEEL,   WM_MOVE,   WM_NCACTIVATE,   WM_NCCALCSIZE,   WM_NCHITTEST,   WM_NCLBUTTONDOWN,   WM_NCPAINT,   WM_NOTIFY,   WM_PAINT,   WM_PALETTECHANGED,   WM_PARENTNOTIFY,   WM_PASTE,   WM_PRINT,   WM_PRINTCLIENT,   WM_QUERYENDSESSION,   WM_QUERYNEWPALETTE,   WM_QUERYOPEN,   WM_RBUTTONDBLCLK,   WM_RBUTTONDOWN,   WM_RBUTTONUP,   WM_SETCURSOR,   WM_SETFOCUS,   WM_SETFONT,   WM_SETREDRAW,   WM_SETTINGCHANGE,   WM_SHOWWINDOW,   WM_SIZE,   WM_SYSCHAR,   WM_SYSCOLORCHANGE,   WM_SYSCOMMAND,   WM_SYSKEYDOWN,   WM_SYSKEYUP,   WM_TIMER,   WM_UNDO,   WM_UPDATEUISTATE,   WM_VSCROLL,   WM_WINDOWPOSCHANGED,   WM_WINDOWPOSCHANGING,   WM_XBUTTONDBLCLK,   WM_XBUTTONDOWN,   WM_XBUTTONUP,   addControlListener,   addDragDetectListener,   addFocusListener,   addHelpListener,   addKeyListener,   addMenuDetectListener,   addMouseListener,   addMouseMoveListener,   addMouseTrackListener,   addMouseWheelListener,   addPaintListener,   addTraverseListener,   borderHandle,   checkBackground,   checkBorder,   checkBuffered,   checkComposited,   checkHandle,   checkMirrored,   computeSize,   computeSize,   computeTabGroup,   computeTabList,   computeTabRoot,   createHandle,   createWidget,   defaultBackground,   defaultFont,   defaultForeground,   deregister,   destroyWidget,   dragDetect,   dragDetect,   dragDetect,   drawBackground,   drawBackground,   drawBackground,   drawImageBackground,   drawThemeBackground,   enableDrag,   enableWidget,   fillBackground,   fillImageBackground,   fillThemeBackground,   findBackgroundControl,   findBrush,   findCursor,   findImageControl,   findMenus,   findMnemonic,   findThemeControl,   fixChildren,   fixFocus,   forceFocus,   forceResize,   getAccessible,   getBackground,   getBackgroundImage,   getBackgroundPixel,   getBorderWidth,   getBounds,   getClipboardText,   getCodePage,   getCursor,   getDragDetect,   getDrawing,   getEnabled,   getFont,   getForeground,   getForegroundPixel,   getLayoutData,   getLocation,   getMenu,   getMonitor,   getParent,   getPath,   getRegion,   getShell,   getSize,   getToolTipText,   getVisible,   hasCursor,   hasFocus,   internal_dispose_GC,   internal_new_GC,   isActive,   isEnabled,   isFocusAncestor,   isFocusControl,   isReparentable,   isShowing,   isTabGroup,   isTabItem,   isVisible,   mapEvent,   markLayout,   menuShell,   mnemonicHit,   mnemonicMatch,   moveAbove,   moveBelow,   new_Accessible,   new_GC,   pack,   pack,   print,   printWidget,   redraw,   redraw,   redraw,   redrawChildren,   register,   releaseHandle,   releaseParent,   releaseWidget,   removeControlListener,   removeDragDetectListener,   removeFocusListener,   removeHelpListener,   removeKeyListener,   removeMenuDetectListener,   removeMouseListener,   removeMouseMoveListener,   removeMouseTrackListener,   removeMouseWheelListener,   removePaintListener,   removeTraverseListener,   sendFocusEvent,   sendMove,   sendResize,   setBackground,   setBackground,   setBackgroundImage,   setBackgroundImage,   setBackgroundPixel,   setBounds,   setBounds,   setBounds,   setBounds,   setCapture,   setCursor,   setCursor,   setDefaultFont,   setDragDetect,   setEnabled,   setFixedFocus,   setFocus,   setFont,   setForeground,   setForegroundPixel,   setLayoutData,   setLocation,   setLocation,   setMenu,   setParent,   setRadioFocus,   setRadioSelection,   setRedraw,   setRegion,   setSavedFocus,   setSize,   setSize,   setTabItemFocus,   setToolTipText,   setToolTipText,   setVisible,   showWidget,   sort,   subclass,   toControl,   toControl,   toDisplay,   toDisplay,   topHandle,   translateAccelerator,   translateMnemonic,   translateMnemonic,   translateTraversal,   traverse,   traverse,   traverseEscape,   traverseGroup,   traverseItem,   traverseMnemonic,   traversePage,   traverseReturn,   unsubclass,   update,   update,   updateBackgroundColor,   updateBackgroundImage,   updateBackgroundMode,   updateFont,   updateImages,   updateLayout,   widgetCreateStruct,   widgetExtStyle,   widgetParent,   widgetStyle,   windowClass,   windowProc,   windowProc,   wmColorChild,   wmCommandChild,   wmDrawChild,   wmMeasureChild,   wmNotify,   wmNotifyChild,   wmScrollChild
Methods from org.eclipse.swt.widgets.Widget:
DeferWindowPos,   SetWindowPos,   _addListener,   addDisposeListener,   addListener,   callWindowProc,   checkBits,   checkOpened,   checkOrientation,   checkParent,   checkSubclass,   checkWidget,   destroyWidget,   dispose,   dragDetect,   error,   filters,   findItem,   fixMnemonic,   fixMnemonic,   getData,   getData,   getDisplay,   getListeners,   getMenu,   getName,   getNameText,   getStyle,   hooks,   isDisposed,   isListening,   isValidSubclass,   isValidThread,   mapEvent,   new_GC,   notifyListeners,   postEvent,   postEvent,   release,   releaseChildren,   releaseHandle,   releaseParent,   releaseWidget,   removeDisposeListener,   removeListener,   removeListener,   sendDragEvent,   sendDragEvent,   sendEvent,   sendEvent,   sendEvent,   sendEvent,   sendFocusEvent,   sendKeyEvent,   sendKeyEvent,   sendMouseEvent,   sendMouseEvent,   setData,   setData,   setInputState,   setKeyState,   setTabGroupFocus,   setTabItemFocus,   showMenu,   toString,   wmCaptureChanged,   wmChar,   wmContextMenu,   wmIMEChar,   wmKeyDown,   wmKeyUp,   wmKillFocus,   wmLButtonDblClk,   wmLButtonDown,   wmLButtonUp,   wmMButtonDblClk,   wmMButtonDown,   wmMButtonUp,   wmMouseHover,   wmMouseLeave,   wmMouseMove,   wmMouseWheel,   wmNCPaint,   wmPaint,   wmPrint,   wmRButtonDblClk,   wmRButtonDown,   wmRButtonUp,   wmSetFocus,   wmSysChar,   wmSysKeyDown,   wmSysKeyUp,   wmXButtonDblClk,   wmXButtonDown,   wmXButtonUp
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.eclipse.swt.widgets.Combo Detail:
 int CBTProc(int nCode,
    int wParam,
    int lParam) 
 LRESULT WM_CTLCOLOR(int wParam,
    int lParam) 
 LRESULT WM_GETDLGCODE(int wParam,
    int lParam) 
 LRESULT WM_KILLFOCUS(int wParam,
    int lParam) 
 LRESULT WM_LBUTTONDOWN(int wParam,
    int lParam) 
 LRESULT WM_SETFOCUS(int wParam,
    int lParam) 
 LRESULT WM_SIZE(int wParam,
    int lParam) 
 LRESULT WM_WINDOWPOSCHANGING(int wParam,
    int lParam) 
 public  void add(String string) 
    Adds the argument to the end of the receiver's list.
 public  void add(String string,
    int index) 
    Adds the argument to the receiver's list at the given zero-relative index.

    Note: To add an item at the end of the list, use the result of calling getItemCount() as the index or use add(String).

 public  void addModifyListener(ModifyListener listener) 
    Adds the listener to the collection of listeners who will be notified when the receiver's text is modified, by sending it one of the messages defined in the ModifyListener interface.
 public  void addSelectionListener(SelectionListener listener) 
    Adds the listener to the collection of listeners who will be notified when the user changes the receiver's selection, by sending it one of the messages defined in the SelectionListener interface.

    widgetSelected is called when the user changes the combo's list selection. widgetDefaultSelected is typically called when ENTER is pressed the combo's text area.

 public  void addVerifyListener(VerifyListener listener) 
    Adds the listener to the collection of listeners who will be notified when the receiver's text is verified, by sending it one of the messages defined in the VerifyListener interface.
 int callWindowProc(int hwnd,
    int msg,
    int wParam,
    int lParam) 
 boolean checkHandle(int hwnd) 
 static int checkStyle(int style) 
 protected  void checkSubclass() 
 public  void clearSelection() 
    Sets the selection in the receiver's text field to an empty selection starting just before the first character. If the text field is editable, this has the effect of placing the i-beam at the start of the text.

    Note: To clear the selected items in the receiver's list, use deselectAll().

 public Point computeSize(int wHint,
    int hHint,
    boolean changed) 
 public  void copy() 
    Copies the selected text.

    The current selection is copied to the clipboard.

  void createHandle() 
 public  void cut() 
    Cuts the selected text.

    The current selection is first copied to the clipboard and then deleted from the widget.

 int defaultBackground() 
  void deregister() 
 public  void deselect(int index) 
    Deselects the item at the given zero-relative index in the receiver's list. If the item at the index was already deselected, it remains deselected. Indices that are out of range are ignored.
 public  void deselectAll() 
    Deselects all selected items in the receiver's list.

    Note: To clear the selection in the receiver's text field, use clearSelection().

 boolean dragDetect(int hwnd,
    int x,
    int y,
    boolean filter,
    boolean[] detect,
    boolean[] consume) 
 public String getItem(int index) 
    Returns the item at the given, zero-relative index in the receiver's list. Throws an exception if the index is out of range.
 public int getItemCount() 
    Returns the number of items contained in the receiver's list.
 public int getItemHeight() 
    Returns the height of the area which would be used to display one of the items in the receiver's list.
 public String[] getItems() 
    Returns a (possibly empty) array of Strings which are the items in the receiver's list.

    Note: This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.

 public boolean getListVisible() 
    Returns true if the receiver's list is visible, and false otherwise.

    If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.

 String getNameText() 
 public int getOrientation() 
    Returns the orientation of the receiver.
 public Point getSelection() 
    Returns a Point whose x coordinate is the character position representing the start of the selection in the receiver's text field, and whose y coordinate is the character position representing the end of the selection. An "empty" selection is indicated by the x and y coordinates having the same value.

    Indexing is zero based. The range of a selection is from 0..N where N is the number of characters in the widget.

 public int getSelectionIndex() 
    Returns the zero-relative index of the item which is currently selected in the receiver's list, or -1 if no item is selected.
 public String getText() 
    Returns a string containing a copy of the contents of the receiver's text field, or an empty string if there are no contents.
 public int getTextHeight() 
    Returns the height of the receivers's text field.
 public int getTextLimit() 
    Returns the maximum number of characters that the receiver's text field is capable of holding. If this has not been changed by setTextLimit(), it will be the constant Combo.LIMIT.
 public int getVisibleItemCount() 
    Gets the number of items that are visible in the drop down portion of the receiver's list.

    Note: This operation is a hint and is not supported on platforms that do not have this concept.

 boolean hasFocus() 
 public int indexOf(String string) 
    Searches the receiver's list starting at the first item (index 0) until an item is found that is equal to the argument, and returns the index of that item. If no item is found, returns -1.
 public int indexOf(String string,
    int start) 
    Searches the receiver's list starting at the given, zero-relative index until an item is found that is equal to the argument, and returns the index of that item. If no item is found or the starting index is out of range, returns -1.
 int mbcsToWcsPos(int mbcsPos) 
 public  void paste() 
    Pastes text from clipboard.

    The selected text is deleted from the widget and new text inserted from the clipboard.

  void register() 
 public  void remove(int index) 
    Removes the item from the receiver's list at the given zero-relative index.
 public  void remove(String string) 
    Searches the receiver's list starting at the first item until an item is found that is equal to the argument, and removes that item from the list.
  void remove(int index,
    boolean notify) 
 public  void remove(int start,
    int end) 
    Removes the items from the receiver's list which are between the given zero-relative start and end indices (inclusive).
 public  void removeAll() 
    Removes all of the items from the receiver's list and clear the contents of receiver's text field.

 public  void removeModifyListener(ModifyListener listener) 
    Removes the listener from the collection of listeners who will be notified when the receiver's text is modified.
 public  void removeSelectionListener(SelectionListener listener) 
    Removes the listener from the collection of listeners who will be notified when the user changes the receiver's selection.
 public  void removeVerifyListener(VerifyListener listener) 
    Removes the listener from the collection of listeners who will be notified when the control is verified.
 public  void select(int index) 
    Selects the item at the given zero-relative index in the receiver's list. If the item at the index was already selected, it remains selected. Indices that are out of range are ignored.
 boolean sendKeyEvent(int type,
    int msg,
    int wParam,
    int lParam,
    Event event) 
  void setBackgroundImage(int hBitmap) 
  void setBackgroundPixel(int pixel) 
  void setBounds(int x,
    int y,
    int width,
    int height,
    int flags) 
 public  void setFont(Font font) 
  void setForegroundPixel(int pixel) 
 public  void setItem(int index,
    String string) 
    Sets the text of the item in the receiver's list at the given zero-relative index to the string argument.
 public  void setItems(String[] items) 
    Sets the receiver's list to be the given array of items.
 public  void setListVisible(boolean visible) 
    Marks the receiver's list as visible if the argument is true, and marks it invisible otherwise.

    If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.

 public  void setOrientation(int orientation) 
    Sets the orientation of the receiver, which must be one of the constants SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT.

  void setScrollWidth() 
  void setScrollWidth(int scrollWidth) 
  void setScrollWidth(TCHAR buffer,
    boolean grow) 
  void setScrollWidth(int newWidth,
    boolean grow) 
 public  void setSelection(Point selection) 
    Sets the selection in the receiver's text field to the range specified by the argument whose x coordinate is the start of the selection and whose y coordinate is the end of the selection.
 public  void setText(String string) 
    Sets the contents of the receiver's text field to the given string.

    This call is ignored when the receiver is read only and the given string is not in the receiver's list.

    Note: The text field in a Combo is typically only capable of displaying a single line of text. Thus, setting the text to a string containing line breaks or other special characters will probably cause it to display incorrectly.

 public  void setTextLimit(int limit) 
    Sets the maximum number of characters that the receiver's text field is capable of holding to be the argument.

    To reset this value to the default, use setTextLimit(Combo.LIMIT). Specifying a limit value larger than Combo.LIMIT sets the receiver's limit to Combo.LIMIT.

  void setToolTipText(Shell shell,
    String string) 
 public  void setVisibleItemCount(int count) 
    Sets the number of items that are visible in the drop down portion of the receiver's list.

    Note: This operation is a hint and is not supported on platforms that do not have this concept.

  void subclass() 
 boolean translateTraversal(MSG msg) 
 boolean traverseEscape() 
 boolean traverseReturn() 
  void unsubclass() 
 String verifyText(String string,
    int start,
    int end,
    Event keyEvent) 
 int wcsToMbcsPos(int wcsPos) 
 int widgetExtStyle() 
 int widgetStyle() 
 TCHAR windowClass() 
 int windowProc() 
 int windowProc(int hwnd,
    int msg,
    int wParam,
    int lParam) 
 LRESULT wmChar(int hwnd,
    int wParam,
    int lParam) 
 LRESULT wmClipboard(int hwndText,
    int msg,
    int wParam,
    int lParam) 
 LRESULT wmCommandChild(int wParam,
    int lParam) 
 LRESULT wmIMEChar(int hwnd,
    int wParam,
    int lParam) 
 LRESULT wmKeyDown(int hwnd,
    int wParam,
    int lParam) 
 LRESULT wmSysKeyDown(int hwnd,
    int wParam,
    int lParam)