public class SwtTextBox extends GralTextBox.GraphicImplAccess
| Modifier and Type | Class and Description |
|---|---|
protected class |
SwtTextBox.TextBoxKeyListener |
protected class |
SwtTextBox.TextBoxModifyListener |
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.swt.events.FocusListener |
focusLstn |
(package private) org.eclipse.swt.widgets.Label |
promptSwt
A possible prompt for the text field or null.
|
static java.lang.String |
sVersion
Version and history
2014-08-16 Hartmut chg: GralTextBox not abstract, using GraphicImplAccess like new concept of all GralWidgets.
|
private SwtTextFieldWrapper |
swtText
Experience: use SwtTextFieldWrapper as composite?
|
(package private) org.eclipse.swt.widgets.Text |
textFieldSwt |
private SwtWidgetHelper |
wdgh
It contains the association to the swt widget (Control) and the
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this. |
chgAddText, chgCursor, chgEditable, chgNonEditable, chgViewTrailchgPrompt, posField, posPromptchgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg| Modifier | Constructor and Description |
|---|---|
protected |
SwtTextBox(GralTextBox widgg,
SwtMng mng) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
createTextBox(GralTextBox widgg,
SwtMng mng) |
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
repaintGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
void |
setBoundsPixel(int x,
int y,
int dx,
int dy) |
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
caretPos, caretPos, getAndClearNewText, userborderwidth, isPasswordField, prompt, promptStylePosition, setTouchedacknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGainedpublic static final java.lang.String sVersion
GralTextBox.append(CharSequence) etc. methods are implemented
in this super class instead in the graphic layer implementation classes. Therefore
the methods #appendTextInGThread(CharSequence) and #setTextInGThread(CharSequence)
are defined here to implement in the graphic layer. The set- and apppend methods are threadsafe now.
private SwtTextFieldWrapper swtText
private final SwtWidgetHelper wdgh
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this.org.eclipse.swt.widgets.Text textFieldSwt
org.eclipse.swt.widgets.Label promptSwt
protected org.eclipse.swt.events.FocusListener focusLstn
protected SwtTextBox(GralTextBox widgg, SwtMng mng)
static void createTextBox(GralTextBox widgg, SwtMng mng)
public GralRectangle getPixelPositionSize()
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.public void setBoundsPixel(int x, int y, int dx, int dy)
public void repaintGthread()
GralWidgImpl_ifc#repaintRequpublic boolean setFocusGThread()
GralWidgImpl_ifcGralMng_ifc#setFocus(GralWidget).public void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifcGralWidget.bVisibleState too. Therewith it is able to quest GralWidget.isVisible() in any thread.bVisible - true then the widget should be visible, false it is set to invisible.public void removeWidgetImplementation()
GralWidgImpl_ifc