handle
IzCCombo0(org.eclipse.swt.widgets.Composite parent, int style)
void
void
void
addModifyListener(org.eclipse.swt.events.ModifyListener listener)
ModifyListener
interface.void
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
SelectionListener
interface.void
addVerifyListener(org.eclipse.swt.events.VerifyListener listener)
VerifyListener
interface.protected void
void
org.eclipse.swt.graphics.Point
computeSize(int wHint, int hHint, boolean changed)
void
copy()
void
cut()
void
deselect(int index)
void
int
org.eclipse.swt.widgets.Control[]
boolean
getItem(int index)
int
int
String[]
getItems()
String
s which are the items in the receiver's list.boolean
true
if the receiver's list is visible, and false
otherwise.org.eclipse.swt.widgets.Menu
getMenu()
org.eclipse.swt.graphics.Point
Point
whose x coordinate is the start of the selection in the receiver's text field, and whose y coordinate is the end of the selection.int
org.eclipse.swt.widgets.Shell
getShell()
int
getStyle()
getText()
int
int
int
int
int
boolean
void
paste()
void
redraw()
void
redraw(int x, int y, int width, int height, boolean all)
void
remove(int index)
void
remove(int start, int end)
void
void
void
removeModifyListener(org.eclipse.swt.events.ModifyListener listener)
void
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
void
removeVerifyListener(org.eclipse.swt.events.VerifyListener listener)
void
select(int index)
void
setAlignment(int align)
void
setBackground(org.eclipse.swt.graphics.Color color)
void
setEditable(boolean editable)
void
setEnabled(boolean enabled)
boolean
setFocus()
void
setFont(org.eclipse.swt.graphics.Font font)
void
setForeground(org.eclipse.swt.graphics.Color color)
void
void
void
setLayout(org.eclipse.swt.widgets.Layout layout)
void
setListVisible(boolean visible)
true
, and marks it invisible otherwise.void
setMenu(org.eclipse.swt.widgets.Menu menu)
void
setSelection(org.eclipse.swt.graphics.Point selection)
void
void
setTextLimit(int limit)
void
setToolTipText(String string)
void
setVisible(boolean visible)
void
setVisibleItemCount(int count)
boolean
traverse(int event)
changed, drawBackground, getBackgroundMode, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayoutDeferred, setTabList, toString
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMonitor, getOrientation, getParent, getRegion, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, toControl, toControl, toDisplay, toDisplay, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isAutoScalable
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.
parent
- a widget which will be the parent of the new instance (cannot be null)style
- the style of widget to constructIllegalArgumentException
-org.eclipse.swt.SWTException
-SWT.BORDER
SWT.READ_ONLY
SWT.FLAT
SWT.LEAD
SWT.LEFT
SWT.CENTER
SWT.RIGHT
SWT.TRAIL
Widget.getStyle()
Note: If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.
string
- the new itemIllegalArgumentException
-org.eclipse.swt.SWTException
-Note: To add an item at the end of the list, use the result of calling getItemCount()
as the index or use add(String)
.
Also note, if control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.
string
- the new itemindex
- the index for the itemIllegalArgumentException
-org.eclipse.swt.SWTException
-ModifyListener
interface.listener
- the listener which should be notifiedIllegalArgumentException
-org.eclipse.swt.SWTException
-SelectionListener
interface.widgetSelected
is called when the combo's list selection changes. widgetDefaultSelected
is typically called when ENTER is pressed the combo's text area.
listener
- the listener which should be notified when the user changes the receiver's selectionIllegalArgumentException
-org.eclipse.swt.SWTException
-SelectionListener
removeSelectionListener(org.eclipse.swt.events.SelectionListener)
SelectionEvent
VerifyListener
interface.listener
- the listener which should be notifiedIllegalArgumentException
-org.eclipse.swt.SWTException
-checkSubclass
in class org.eclipse.swt.widgets.Composite
Note: To clear the selected items in the receiver's list, use deselectAll()
.
org.eclipse.swt.SWTException
-computeSize
in class org.eclipse.swt.widgets.Control
The current selection is copied to the clipboard.
org.eclipse.swt.SWTException
-The current selection is first copied to the clipboard and then deleted from the widget.
org.eclipse.swt.SWTException
-index
- the index of the item to deselectorg.eclipse.swt.SWTException
-Note: To clear the selection in the receiver's text field, use clearSelection()
.
org.eclipse.swt.SWTException
-getChildren
in class org.eclipse.swt.widgets.Composite
org.eclipse.swt.SWTException
-index
- the index of the item to returnIllegalArgumentException
-org.eclipse.swt.SWTException
-org.eclipse.swt.SWTException
-org.eclipse.swt.SWTException
-String
s 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.
org.eclipse.swt.SWTException
-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.
org.eclipse.swt.SWTException
-getMenu
in class org.eclipse.swt.widgets.Control
Point
whose x coordinate is the start of the selection in the receiver's text field, and whose y coordinate is the end of the selection. The returned values are zero-relative. An "empty" selection as indicated by the the x and y coordinates having the same value.org.eclipse.swt.SWTException
-org.eclipse.swt.SWTException
-getShell
in class org.eclipse.swt.widgets.Control
getStyle
in class org.eclipse.swt.widgets.Widget
org.eclipse.swt.SWTException
-org.eclipse.swt.SWTException
-setTextLimit()
, it will be the constant Combo.LIMIT
.org.eclipse.swt.SWTException
-org.eclipse.swt.SWTException
-string
- the search itemIllegalArgumentException
-org.eclipse.swt.SWTException
-string
- the search itemstart
- the zero-relative index at which to begin the searchIllegalArgumentException
-org.eclipse.swt.SWTException
-isFocusControl
in class org.eclipse.swt.widgets.Control
The selected text is deleted from the widget and new text inserted from the clipboard.
org.eclipse.swt.SWTException
-redraw
in class org.eclipse.swt.widgets.Control
redraw
in class org.eclipse.swt.widgets.Control
index
- the index for the itemIllegalArgumentException
-org.eclipse.swt.SWTException
-start
- the start of the rangeend
- the end of the rangeIllegalArgumentException
-org.eclipse.swt.SWTException
-string
- the item to removeIllegalArgumentException
-org.eclipse.swt.SWTException
-org.eclipse.swt.SWTException
-listener
- the listener which should no longer be notifiedIllegalArgumentException
-org.eclipse.swt.SWTException
-ModifyListener
addModifyListener(org.eclipse.swt.events.ModifyListener)
listener
- the listener which should no longer be notifiedIllegalArgumentException
-org.eclipse.swt.SWTException
-SelectionListener
addSelectionListener(org.eclipse.swt.events.SelectionListener)
listener
- the listener which should no longer be notifiedIllegalArgumentException
-org.eclipse.swt.SWTException
-VerifyListener
addVerifyListener(org.eclipse.swt.events.VerifyListener)
index
- the index of the item to selectorg.eclipse.swt.SWTException
-align
- the alignment style of LEFT, RIGHT or CENTERorg.eclipse.swt.SWTException
-setBackground
in class org.eclipse.swt.widgets.Control
editable
- the new editable stateorg.eclipse.swt.SWTException
-setEnabled
in class org.eclipse.swt.widgets.Control
setFocus
in class org.eclipse.swt.widgets.Composite
setFont
in class org.eclipse.swt.widgets.Control
setForeground
in class org.eclipse.swt.widgets.Control
remove
'ing the old item at the index, and then add
'ing the new item at that index.index
- the index for the itemstring
- the new text for the itemIllegalArgumentException
-org.eclipse.swt.SWTException
-items
- the array of itemsIllegalArgumentException
-org.eclipse.swt.SWTException
-Note: No Layout can be set on this Control because it already manages the size and position of its children.
setLayout
in class org.eclipse.swt.widgets.Composite
layout
- the receiver's new layout or nullorg.eclipse.swt.SWTException
-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.
visible
- the new visibility stateorg.eclipse.swt.SWTException
-setMenu
in class org.eclipse.swt.widgets.Control
selection
- a point representing the new selection start and endIllegalArgumentException
-org.eclipse.swt.SWTException
-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.
Also note, if control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.
string
- the new textIllegalArgumentException
-org.eclipse.swt.SWTException
-limit
- new text limitIllegalArgumentException
-org.eclipse.swt.SWTException
-setToolTipText
in class org.eclipse.swt.widgets.Control
setVisible
in class org.eclipse.swt.widgets.Control
count
- the new number of items to be visibleorg.eclipse.swt.SWTException
-traverse
in class org.eclipse.swt.widgets.Control