getStyleClass().add(String), to define the styles of text segments.
Use CSS Style Class ".styled-text-field" for styling the control.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(String text, String styleClass)
Overrides default org. Convenient method to append text together with a single style class. |
| protected void | changeAlignment(TextAlignment txtAlign)
Implements abstract org.
|
| public void | insert(int position, String text, String styleClass)
Overrides default org. Convenient method to insert text together with a single style class. |
| public void | replace(int start, int end, String text, String styleClass)
Overrides org. Implements org. Convenient method to replace text together with a single style class. |
| public void |
| StyleClassedTextField | back to summary |
|---|---|
| public StyleClassedTextField() | |
| StyleClassedTextField | back to summary |
|---|---|
| public StyleClassedTextField(String text) | |
| append | back to summary |
|---|---|
| public void append(String text, String styleClass) Overrides default org. Convenient method to append text together with a single style class. | |
| changeAlignment | back to summary |
|---|---|
| protected void changeAlignment(TextAlignment txtAlign) Implements abstract org.
| |
| insert | back to summary |
|---|---|
| public void insert(int position, String text, String styleClass) Overrides default org. Convenient method to insert text together with a single style class. | |
| replace | back to summary |
|---|---|
| public void replace(int start, int end, String text, String styleClass) Overrides org. Implements org. Convenient method to replace text together with a single style class. | |
| setStyleClass | back to summary |
|---|---|
| public void setStyleClass(int from, int to, String styleClass) Convenient method to assign a single style class. | |