public class GralTextBox extends GralTextField implements java.lang.Appendable, GralTextBox_ifc
Modifier and Type | Class and Description |
---|---|
class |
GralTextBox.GraphicImplAccess |
GralTextField.Type
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccess
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
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, caretPos, gralKeyListener, sPrompt, sPromptStylePosition, user, version, windowMng
_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, whatIs
version
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, setValue
chgPos, clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, 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, remove, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setFocus, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setMinMax, setPrimaryWidgetOfPanel, setTextColor, setToolTip, setValue, setValue, setVisible, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, toString, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCursorPos, getText, setCursorPos, setText, setText
createImplWidget_Gthread, getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getName, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, refreshFromVariable, refreshFromVariable, repaint, repaint, setBackColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setFocus, setFocus, setHtmlHelp, setLineColor, setTextColor, setToPanel, setVisible
remove
getContentInfo, setContentInfo
public 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.
public GralTextBox(java.lang.String name, GralTextField.Type... property)
public final java.lang.Appendable append(char arg0) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
append(CharSequence)
,
Appendable.append(java.lang.CharSequence)
public final java.lang.Appendable append(java.lang.CharSequence arg0) throws java.io.IOException
#appendTextViewTrail
dispatch listener.append
in interface java.lang.Appendable
java.io.IOException
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.Appendable
java.io.IOException
append(CharSequence)
,
Appendable.append(java.lang.CharSequence, int, int)
public int getNrofLines()
getNrofLines
in interface GralTextBox_ifc
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 void setTextStyle(GralColor color, GralFont font)
GralTextField_ifc
setTextStyle
in interface GralTextField_ifc
setTextStyle
in class GralTextField
public void viewTrail()
GralTextBox_ifc
viewTrail
in interface GralTextBox_ifc