CodeArea control.
This model supports custom content storage mechanism via BasicTextModel.. By default,
the model provides an in-memory storage via its BasicTextModel. implementation.
| Modifier and Type | Field and Description |
|---|---|
| private SimpleObjectProperty | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CodeTextModel(BasicTextModel.
the content cConstructs the CodeTextModel with the specified content. |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | Returns: the syntax decorator value (may be null)Syntax decorator applies styling to the plain text stored in the model. |
| public void | fireChangeEvent(TextPos start, TextPos end, int charsTop, int linesAdded, int charsBottom)
Overrides jfx. Fires a text modification event for the given range. |
| public final SyntaxDecorator | |
| public final RichParagraph | getParagraph(int index)
Overrides jfx. Returns a |
| protected Set | getSupportedAttributes()
Overrides jfx. Returns the set of attributes supported attributes. |
| private static Set | |
| public final void |
| decorator | back to summary |
|---|---|
| private SimpleObjectProperty<SyntaxDecorator> decorator | |
| SUPPORTED | back to summary |
|---|---|
| private static final Set<StyleAttribute<?>> SUPPORTED | |
| CodeTextModel | back to summary |
|---|---|
| public CodeTextModel() Constructs the CodeTextModel with an in-memory content. | |
| CodeTextModel | back to summary |
|---|---|
| public CodeTextModel(BasicTextModel. Constructs the CodeTextModel with the specified content.
| |
| decoratorProperty | back to summary |
|---|---|
| public final ObjectProperty Syntax decorator applies styling to the plain text stored in the model.
| |
| fireChangeEvent | back to summary |
|---|---|
| public void fireChangeEvent(TextPos start, TextPos end, int charsTop, int linesAdded, int charsBottom) Overrides jfx. Doc from jfx. Fires a text modification event for the given range.
| |
| getDecorator | back to summary |
|---|---|
| public final SyntaxDecorator getDecorator() | |
| getParagraph | back to summary |
|---|---|
| public final RichParagraph getParagraph(int index) Overrides jfx. Doc from jfx. Returns a This method makes no guarantees that the same paragraph instance will be returned for the same model index.
| |
| getSupportedAttributes | back to summary |
|---|---|
| protected Set Overrides jfx. Doc from jfx. Returns the set of attributes supported attributes. When this method returns a non-null set, it will be used by the methods which handle the external input for the purpose of filtering out the attributes the model cannot understand, preventing the attributes from being added to the model (for example, as a result of pasting from the system clipboard).
The methods that utilize the filtering are:
When this method returns
This method might be overridden by certain models. The base class implementation returns
| |
| initSupportedAttributes | back to summary |
|---|---|
| private static Set | |
| setDecorator | back to summary |
|---|---|
| public final void setDecorator(SyntaxDecorator d) | |