Accessors for class IlvTextField

Properties

Description

The IlvTextField class handles a rectangular area where a line of text may be displayed and edited.
The contents of the gadget can be modified by clicking on it and entering new text. IlvTextField instances manipulate a cursor that indicates where new text should be inserted. It is also possible to select a text area by dragging the mouse over it.

TypeNameDescriptionNotes
DirectionalignmentSets or returns the alignment of the text inside the text field. The text can be right-aligned (IlvRight), left-aligned (IlvLeft) or centered (IlvCenter).
BooleanfocusChangeSpecifies whether the keyboard focus is moved to the next gadget when the Return key is pressed (true).
IntcursorPositionSets or returns the cursor position. A value of 0 means that the cursor is just before the first character of the label.
BooleaneditableSets the text as editable. Returns true if the text is editable and false otherwise. Non-editable text may be selected for copying.
StringlabelSets or returns the label that is currently displayed.
IntmaxCharGets or sets the maximal number of characters that the user can type in a text field. If maxChar has a negative value, there is no limit. This limit does not apply to character strings that were entered before maxChar was set.
IntselectionEndInt selectionEnd
IntselectionStartGet or set the selection range. To set the selected characters, count the number of delimiters rather than the number of intervals, as follows:
If there are six characters: |A|B|C|D|E|F|, then there are seven delimiters from 0 to 6 starting from the left. Thus (selectionStart=1, selectionEnd=5) selects B,C,D and E and (selectionStart=1, selectionEnd=2) selects B.