void
void
void
addModifyListener(ModifyListener listener)
ModifyListener
interface.void
addSelectionListener(SelectionListener listener)
SelectionListener
interface.void
addVerifyListener(VerifyListener listener)
VerifyListener
interface.protected void
void
computeSize(int wHint, int hHint, boolean changed)
void
copy()
void
cut()
void
deselect(int index)
void
int
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.getMenu()
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
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(ModifyListener listener)
void
removeSelectionListener(SelectionListener listener)
void
removeVerifyListener(VerifyListener listener)
void
select(int index)
void
setAlignment(int align)
void
setBackground(Color color)
void
setEditable(boolean editable)
void
setEnabled(boolean enabled)
boolean
setFocus()
void
void
setForeground(Color color)
void
void
void
void
setListVisible(boolean visible)
true
, and marks it invisible otherwise.void
void
setSelection(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, setScrollbarsMode
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, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeTypedListener, 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
-SWTException
-setForeground
in class Control
setBackground
in class Control
Note: If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.
string
- the new itemIllegalArgumentException
-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
-SWTException
-ModifyListener
interface.listener
- the listener which should be notifiedIllegalArgumentException
-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
-SWTException
-VerifyListener
interface.listener
- the listener which should be notifiedIllegalArgumentException
-SWTException
-checkSubclass
in class Composite
Note: To clear the selected items in the receiver's list, use deselectAll()
.
SWTException
-computeSize
in class Composite
The current selection is copied to the clipboard.
SWTException
-The current selection is first copied to the clipboard and then deleted from the widget.
SWTException
-index
- the index of the item to deselectSWTException
-Note: To clear the selection in the receiver's text field, use clearSelection()
.
SWTException
-getChildren
in class Composite
SWTException
-index
- the index of the item to returnIllegalArgumentException
-SWTException
-SWTException
-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.
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.
SWTException
-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.SWTException
-SWTException
-SWTException
-SWTException
-setTextLimit()
, it will be the constant Combo.LIMIT
.SWTException
-SWTException
-string
- the search itemIllegalArgumentException
-SWTException
-string
- the search itemstart
- the zero-relative index at which to begin the searchIllegalArgumentException
-SWTException
-isFocusControl
in class Control
The selected text is deleted from the widget and new text inserted from the clipboard.
SWTException
-index
- the index for the itemIllegalArgumentException
-SWTException
-start
- the start of the rangeend
- the end of the rangeIllegalArgumentException
-SWTException
-string
- the item to removeIllegalArgumentException
-SWTException
-SWTException
-listener
- the listener which should no longer be notifiedIllegalArgumentException
-SWTException
-listener
- the listener which should no longer be notifiedIllegalArgumentException
-SWTException
-listener
- the listener which should no longer be notifiedIllegalArgumentException
-SWTException
-index
- the index of the item to selectSWTException
-align
- the alignment style of LEFT, RIGHT or CENTERSWTException
-editable
- the new editable stateSWTException
-setEnabled
in class 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
-SWTException
-items
- the array of itemsIllegalArgumentException
-SWTException
-Note: No Layout can be set on this Control because it already manages the size and position of its children.
setLayout
in class Composite
layout
- the receiver's new layout or nullSWTException
-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 stateSWTException
-selection
- a point representing the new selection start and endIllegalArgumentException
-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
-SWTException
-limit
- new text limitIllegalArgumentException
-SWTException
-setToolTipText
in class Control
setVisible
in class Control
count
- the new number of items to be visibleSWTException
-