public class GralTextBox extends GralTextField implements java.lang.Appendable, GralTextBox_ifc
| Modifier and Type | Class and Description |
|---|---|
static class |
GralTextBox.XXXLineColumn |
GralTextField.GraphicImplAccess, GralTextField.TypeGralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccessGralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidgetGralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
sVersion
Version and history
2022-01-31 Hartmut chg:
append(CharSequence) without IOException. |
borderwidth, bPassword, gralKeyListener, newText, sPrompt, sPromptStylePosition, user, version_wdgImpl, bEditable, bShouldInitialize, cfg, contextMenu, dateUser, dyda, htmlHelp, lastTimeSetVisible, redrawDelayMax, redrawtDelay, sCmd, sFormat, showWidgetInfo, sToolTip, whatIs, XXXbuildMng_cdata, _wdgPos, bVisibleState, gralMng, name, pixSizeversion| Constructor and Description |
|---|
GralTextBox(GralPos refPos,
java.lang.String posName,
boolean editable,
java.lang.String prompt,
char promptStylePosition,
GralTextField.Type... property) |
GralTextBox(GralPos refPos,
java.lang.String posName,
GralTextField.Type... property)
Constructs a gral text box.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Appendable |
append(char arg0)
Append a single char, able to call threadsafe in any thread.
|
java.lang.Appendable |
append(java.lang.CharSequence arg0)
Append the text, able to call threadsafe in any thread.
|
java.lang.Appendable |
append(java.lang.CharSequence arg0,
int arg1,
int arg2)
Append a sub char sequence, able to call threadsafe in any thread.
|
int |
getNrofLines() |
void |
setEditable(boolean editable)
Sets whether it is able to edit the content of the text field or text box.
|
void |
viewTrail()
Sets the view to the trail of the text.
|
getCursorCol, getCursorLine, getCursorPos, getPrompt, getValue, setBorderWidth, setCursorPos, setFormat, setLongValue, setPrompt, setPrompt, setText, setText, setText, setTextStyle, setTextStyle, setUser, setValue, setValue, setValueclearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFocusedWidget, getFormat, getGralWidget, getHtmlHelp, getImplAccess, getImplWidget, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getVariable, getVariableFromContentInfo, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, redraw, redraw, redraw, redraw1, redrawOnlyDynamics, refreshFromVariable, refreshFromVariable, removeImplWidget_Gthread, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setFocus, setFocus, setFocusedWidget, setForegroundColor, setHtmlHelp, setLineColor, setMinMax, setPrimaryWidgetOfPanel, setTextColor, setToolTip, setToPanel, setValue, setValue, setVariable, setVisible, specifyActionChange, specifyContextMenu, stop, toString, toString, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThreadcheckImplWidgetCreation, createImplWidget, gralMng, hasFocus, pos, remove, resizePostPreparation, setFocusedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCursorCol, getCursorLine, getCursorPos, getText, setCursorPos, setText, setText, setTextStylegetActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getImplWidget, isChanged, isEditable, isGraphicDisposed, isNotEditableOrShouldInitialize, redraw, redraw, refreshFromVariable, refreshFromVariable, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setTextColorgetFocusedWidget, getImplAccess, getName, gralMng, isInFocus, isVisible, pos, setFocus, setFocused, setFocusedWidget, setVisiblepublic static final java.lang.String sVersion
append(CharSequence) without IOException.
It is possible in Java though the interface defines an IOException. Here not necessary and more simple for application.
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.
public GralTextBox(GralPos refPos, java.lang.String posName, GralTextField.Type... property)
refPos - contains the parent position, correct with posName for further usage.
The internal used GralPos is cloned. This refPos is not referenced in the instance.posName - Position and Name of the field. Maybe null if it is not need in management by name
See GralWidget#GralWidget(String, char).property - password, editable, maybe left empty.public GralTextBox(GralPos refPos, java.lang.String posName, boolean editable, java.lang.String prompt, char promptStylePosition, GralTextField.Type... property)
refPos - contains the parent position, correct with posName for further usage.
The internal used GralPos is cloned. This refPos is not referenced in the instance.posName - Position and Name of the field. Maybe null if it is not need in management by name
See GralWidget#GralWidget(String, char).editable - true: can edit. It is also possible to set it with setEditable(boolean)prompt - a prompt, also able to set with GralTextField.setPrompt(String, String) but here concentrated.promptStylePosition - 't' ...property - password, editable, maybe left empty.public final java.lang.Appendable append(java.lang.CharSequence arg0)
#appendTextViewTrail
dispatch listener.append in interface java.lang.AppendableAppendable.append(java.lang.CharSequence)public final java.lang.Appendable append(char arg0)
append in interface java.lang.Appendableappend(CharSequence),
Appendable.append(java.lang.CharSequence)public final java.lang.Appendable append(java.lang.CharSequence arg0,
int arg1,
int arg2)
append in interface java.lang.Appendableappend(CharSequence),
Appendable.append(java.lang.CharSequence, int, int)public void setEditable(boolean editable)
GralWidget_ifcsetEditable in interface GralWidget_ifcsetEditable in class GralWidgeteditable - true then the content is going to be able to change.
False then the edit functionality is disabled.public int getNrofLines()
getNrofLines in interface GralTextBox_ifcpublic void viewTrail()
GralTextBox_ifcviewTrail in interface GralTextBox_ifc