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 | Field and Description |
---|---|
static java.lang.String |
sVersion
Version, history and license.
|
chgCursor, chgPrompt, posField, posPrompt
chgBitsDerived, 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.
|
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, user
acknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGained
public static final java.lang.String sVersion
public AwtTextField(GralTextField widgg, AwtWidgetMng mng)
public GralRectangle getPixelPositionSize()
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.public void removeWidgetImplementation()
GralWidgImpl_ifc
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
public void setBoundsPixel(int x, int y, int dx, int dy)
public int setCursorPos(int pos)
public void setEditable(boolean editable)
public boolean setFocusGThread()
GralWidgImpl_ifc
GralMng_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)