Class TextFieldElement
java.lang.Object
docking.widgets.fieldpanel.field.AbstractTextFieldElement
docking.widgets.fieldpanel.field.TextFieldElement
- All Implemented Interfaces:
FieldElement
-
Field Summary
Fields inherited from class AbstractTextFieldElement
attributedString, column, row -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreplaceAll(char[] targets, char replacement) Returns a new FieldElement with all occurrences of the target characters replaced with the given replacement character.substring(int start, int end) Returns a new FieldElement containing just the characters beginning at the given start index (inclusive) and ending at the given end index (exclusive).Methods inherited from class AbstractTextFieldElement
charAt, getCharacterIndexForDataLocation, getColor, getDataLocationForCharacterIndex, getFieldElement, getHeightAbove, getHeightBelow, getMaxCharactersForWidth, getStringWidth, getText, length, paint, substring, toString
-
Constructor Details
-
TextFieldElement
-
-
Method Details
-
substring
Description copied from interface:FieldElementReturns a new FieldElement containing just the characters beginning at the given start index (inclusive) and ending at the given end index (exclusive).- Parameters:
start- The starting index (inclusive) from which to substring this element.end- The end index (exclusive) to which the substring will be performed.- Returns:
- a new FieldElement containing just the characters beginning at the given index.
-
replaceAll
Description copied from interface:FieldElementReturns a new FieldElement with all occurrences of the target characters replaced with the given replacement character.- Parameters:
targets- The array of characters to replace.replacement- The replacement character.- Returns:
- a new FieldElement with all occurrences of the target characters replaced with the given replacement character.
-