public class GralTextBox extends GralTextField implements java.lang.Appendable, GralTextBox_ifc
| Modifier and Type | Class and Description |
|---|---|
class |
GralTextBox.GraphicImplAccess |
GralTextField.TypeGralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccessGralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen| Modifier and Type | Field and Description |
|---|---|
private java.lang.StringBuffer |
newText
Buffer for new text which is set or appended in another thread than the graphic thread.
|
static java.lang.String |
sVersion
Version and history
2014-08-16 Hartmut chg: GrapTextBox not abstract, using GraphicImplAccess like new concept of all GralWidgets.
|
borderwidth, bPassword, caretPos, gralKeyListener, sPrompt, sPromptStylePosition, user, version, windowMng_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, lastTimeSetVisible, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, whatIsversion| Constructor and Description |
|---|
GralTextBox(java.lang.String name,
GralTextField.Type... property) |
| 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 |
setTextStyle(GralColor color,
GralFont font)
Sets the style of all new set and added texts.
|
void |
viewTrail()
Sets the view to the trail of the text.
|
getCursorPos, getPromptLabelImpl, getValue, setBorderWidth, setCursorPos, setFormat, setLongValue, setPrompt, setPrompt, setText, setText, setUser, setValue, setValue, setValuechgPos, clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImpl, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getVariable, getVariableFromContentInfo, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, pos, refreshFromVariable, refreshFromVariable, registerWidget, remove, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setFocus, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setMinMax, setPanelMng, setPrimaryWidgetOfPanel, setTextColor, setToolTip, setToPanel, setValue, setValue, setVisible, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, stop, toString, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCursorPos, getText, setCursorPos, setText, setTextcreateImplWidget_Gthread, getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getName, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, refreshFromVariable, refreshFromVariable, repaint, repaint, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setFocus, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setTextColor, setToPanel, setVisibleremovepublic static final java.lang.String sVersion
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 java.lang.StringBuffer newText
GralGraphicTimeOrder
after calling append(CharSequence) or GralTextField.setText(CharSequence).
It is filled only temporary.public GralTextBox(java.lang.String name, GralTextField.Type... property)
public final java.lang.Appendable append(java.lang.CharSequence arg0) throws java.io.IOException
#appendTextViewTrail
dispatch listener.append in interface java.lang.Appendablejava.io.IOExceptionAppendable.append(java.lang.CharSequence)public final java.lang.Appendable append(char arg0) throws java.io.IOException
append in interface java.lang.Appendablejava.io.IOExceptionappend(CharSequence),
Appendable.append(java.lang.CharSequence)public final java.lang.Appendable append(java.lang.CharSequence arg0, int arg1, int arg2) throws java.io.IOException
append in interface java.lang.Appendablejava.io.IOExceptionappend(CharSequence),
Appendable.append(java.lang.CharSequence, int, int)public void setTextStyle(GralColor color, GralFont font)
GralTextField_ifcsetTextStyle in interface GralTextField_ifcsetTextStyle in class GralTextFieldpublic 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