public class AwtTextField extends GralTextField.GraphicImplAccess
GralTextField in awt graphics.
The original TextField has a considerable border for a smart outfit. That is not proper for some applications
which needs an slim and simple outfit without borders because the smart outfit properties are given outside of the textfield itself.
Therefore the functionality of a text field is implemented with a simple canvas. All functions to edit the content with keyboard
are implemented here in an independent way of the awt.TextField. The paint(Graphics) shows the simple outfit in a special kind.| Modifier and Type | Class and Description |
|---|---|
(package private) class |
AwtTextField.TextCanvas |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.StringBuilder |
editBuffer |
(package private) java.awt.event.HierarchyBoundsListener |
hierarchyBoundsListener |
(package private) java.awt.event.KeyListener |
keyListener |
(package private) java.awt.Label |
promptSwt
A possible prompt for the text field or null.
|
static java.lang.String |
sVersion
Version, history and license.
|
(package private) AwtTextField.TextCanvas |
widgetAwt
The AWT widget.
|
private AwtWidgetHelper |
widgHelper
It contains the association to the swt widget (Control) and the
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this. |
chgCursor, chgPrompt, posField, posPromptchgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg| Constructor and Description |
|---|
AwtTextField(GralTextField widgg,
AwtWidgetMng mng) |
| Modifier and Type | Method and Description |
|---|---|
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
private void |
paint(java.awt.Graphics gc) |
private void |
processKey(int key) |
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) |
int |
setCursorPos(int pos) |
void |
setEditable(boolean editable) |
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget vible or not.
|
borderwidth, caretPos, caretPos, isPasswordField, prompt, promptStylePosition, setTouched, useracknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGainedpublic static final java.lang.String sVersion
final AwtTextField.TextCanvas widgetAwt
java.awt.Label promptSwt
private final AwtWidgetHelper widgHelper
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this.java.lang.StringBuilder editBuffer
java.awt.event.HierarchyBoundsListener hierarchyBoundsListener
java.awt.event.KeyListener keyListener
public AwtTextField(GralTextField widgg, AwtWidgetMng mng)
public void removeWidgetImplementation()
GralWidgImpl_ifcpublic java.lang.Object getWidgetImplementation()
GralWidgImpl_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.public boolean setFocusGThread()
GralWidgImpl_ifcGralMng_ifc#setFocus(GralWidget).public void setVisibleGThread(boolean bVisible)
bVisible - true then the widget should be visible, false it is set to invisible.GralWidgImpl_ifc.setVisibleGThread(boolean)public int setCursorPos(int pos)
public void setBoundsPixel(int x, int y, int dx, int dy)
public void setEditable(boolean editable)
public void repaintGthread()
GralWidgImpl_ifc#repaintRequpublic GralRectangle getPixelPositionSize()
private void processKey(int key)
private void paint(java.awt.Graphics gc)