public class GralTextBox extends GralTextField implements java.lang.Appendable, GralTextBox_ifc
Modifier and Type | Class and Description |
---|---|
static class |
GralTextBox.XXXLineColumn |
GralTextField.GraphicImplAccess, GralTextField.Type
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccess
GralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidget
GralWidget_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, pixSize
version
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, setValue
clearShowParam, 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, XXXsetFocusGThread
checkImplWidgetCreation, createImplWidget, gralMng, hasFocus, pos, remove, resizePostPreparation, setFocused
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCursorCol, getCursorLine, getCursorPos, getText, setCursorPos, setText, setText, setTextStyle
getActionChange, 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, setTextColor
getFocusedWidget, getImplAccess, getName, gralMng, isInFocus, isVisible, pos, setFocus, setFocused, setFocusedWidget, setVisible
public 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.Appendable
Appendable.append(java.lang.CharSequence)
public final java.lang.Appendable append(char arg0)
append
in interface java.lang.Appendable
append(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.Appendable
append(CharSequence)
,
Appendable.append(java.lang.CharSequence, int, int)
public void setEditable(boolean editable)
GralWidget_ifc
setEditable
in interface GralWidget_ifc
setEditable
in class GralWidget
editable
- 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_ifc
public void viewTrail()
GralTextBox_ifc
viewTrail
in interface GralTextBox_ifc