CDateTime
public abstract class BaseCombo
extends org.eclipse.swt.widgets.Canvas
Constructor | Description |
---|---|
BaseCombo(org.eclipse.swt.widgets.Composite parent,
int style) |
Main constructor -- must be called by all subclasses in their own
constructors.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
getEditable() |
Returns the editable state.
|
boolean |
getEnabled() |
Fixes bug 181442: [CDateTime] Incorrect getEnabled()
|
org.eclipse.swt.widgets.Menu |
getMenu() |
returns the menu for this combo
|
int |
getStyle() |
|
java.lang.String |
getText() |
Returns the text of this combo
|
boolean |
isOpen() |
|
void |
setEditable(boolean editable) |
Sets the editable state.
|
void |
setEnabled(boolean enabled) |
|
boolean |
setFocus() |
|
void |
setFont(org.eclipse.swt.graphics.Font font) |
|
void |
setMenu(org.eclipse.swt.widgets.Menu menu) |
Sets the menu for the Text widget of this DropCombo
|
void |
setToolTipText(java.lang.String tooltip) |
Sets the tooltip on the text and button parts of this Composite widget.
|
drawBackground, getCaret, getIME, scroll, setCaret, setIME
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getFont, getForeground, getLayoutData, getLocation, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setForeground, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public BaseCombo(org.eclipse.swt.widgets.Composite parent, int style)
SWT.TOGGLE, SWT.PUSH, SWT.ARROW, SWT.FLAT, SWT.TRAIL, SWT.LEAD, SWT.BORDER, SWT.SIMPLE, SWT.DROP_DOWN
parent
- the visual parent of this widgetstyle
- the requested SWT style bitmask for this widgetpublic boolean getEditable()
org.eclipse.swt.SWTException
- public boolean getEnabled()
getEnabled
in class org.eclipse.swt.widgets.Control
public org.eclipse.swt.widgets.Menu getMenu()
getMenu
in class org.eclipse.swt.widgets.Control
public int getStyle()
getStyle
in class org.eclipse.swt.widgets.Widget
public java.lang.String getText()
public boolean isOpen()
public void setEditable(boolean editable)
editable
- the new editable statepublic void setEnabled(boolean enabled)
setEnabled
in class org.eclipse.swt.widgets.Control
public boolean setFocus()
setFocus
in class org.eclipse.swt.widgets.Composite
public void setFont(org.eclipse.swt.graphics.Font font)
setFont
in class org.eclipse.swt.widgets.Canvas
public void setMenu(org.eclipse.swt.widgets.Menu menu)
Note that setting the menu to null causes the native menu to be used
If the intent is to disable the menu, then set it to a blank menu
setMenu
in class org.eclipse.swt.widgets.Control
public void setToolTipText(java.lang.String tooltip)
setToolTipText
in class org.eclipse.swt.widgets.Control
tooltip
- the new tooltip text