This skin consists of a top level Pane that manages the following children:
| Modifier and Type | Field and Description |
|---|---|
| private final RichTextAreaBehavior | |
| private final ScrollBar | |
| private InputMethodRequests | |
| private final EventHandler | |
| private final ListenerHelper | |
| private final VFlow | |
| private final ScrollBar |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyStyles(CellContext
the cell context context, StyleAttributeMap the attributes attrs, boolean determines whether the styles are applied to the paragraph (true), or text segment (false) forParagraph)Applies styles based on supplied attribute set to either the whole paragraph or the text segment. |
| protected double | computeMinHeight(double
The width of the Skin, in case this value might dictate
the minimum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double
The height of the Skin, in case this value might dictate
the minimum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double
the width that should be used if preferred height depends on it width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred width of this |
| public void | copyText(DataFormat
data format format)Copies the text in the specified format when selection exists and when the export in this format is supported by the model, and the skin must be installed; otherwise, this method is a no-op. |
| protected ScrollBar | |
| protected ScrollBar | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| public void | executeAccessibleAction(AccessibleAction
the action to execute action, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| public StyleResolver | |
| private VFlow | |
| private void | handleInputMethodEvent(InputMethodEvent
the ev)InputMethodEvent to be handledHandles an input method event. |
| private void | |
| public void | |
| public void | pasteText(DataFormat
data format format)Pastes the clipboard content at the caret, or, if selection exists, replacing the selected text. |
| protected Object | queryAccessibleAttribute(AccessibleAttribute
the requested attribute attribute, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| public void |
| behavior | back to summary |
|---|---|
| private final RichTextAreaBehavior behavior | |
| hscroll | back to summary |
|---|---|
| private final ScrollBar hscroll | |
| inputMethodRequests | back to summary |
|---|---|
| private InputMethodRequests inputMethodRequests | |
| inputMethodTextChangedHandler | back to summary |
|---|---|
| private final EventHandler<InputMethodEvent> inputMethodTextChangedHandler | |
| listenerHelper | back to summary |
|---|---|
| private final ListenerHelper listenerHelper | |
| vflow | back to summary |
|---|---|
| private final VFlow vflow | |
| vscroll | back to summary |
|---|---|
| private final ScrollBar vscroll | |
| RichTextAreaSkin | back to summary |
|---|---|
| public RichTextAreaSkin(RichTextArea control) Constructs the skin.
| |
| applyStyles | back to summary |
|---|---|
| public void applyStyles(CellContext context, StyleAttributeMap attrs, boolean forParagraph) Applies styles based on supplied attribute set to either the whole paragraph or the text segment. This method can be overriden by other skin implementations to provide additional styling. The overriding method must call super implementation.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| copyText | back to summary |
|---|---|
| public void copyText(DataFormat format) Copies the text in the specified format when selection exists and when the export in this format is supported by the model, and the skin must be installed; otherwise, this method is a no-op.
| |
| createHScrollBar | back to summary |
|---|---|
| protected ScrollBar createHScrollBar() Creates the horizontal scroll bar. The subclasses may override this method to provide custom ScrollBar implementation.
| |
| createVScrollBar | back to summary |
|---|---|
| protected ScrollBar createVScrollBar() Creates the vertical scroll bar. The subclasses may override this method to provide custom ScrollBar implementation.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| executeAccessibleAction | back to summary |
|---|---|
| public void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| getStyleResolver | back to summary |
|---|---|
| public StyleResolver getStyleResolver() Returns the skin's
| |
| getVFlow | back to summary |
|---|---|
| private VFlow getVFlow() | |
| handleInputMethodEvent | back to summary |
|---|---|
| private void handleInputMethodEvent(InputMethodEvent ev) Handles an input method event.
| |
| handleModelChange | back to summary |
|---|---|
| private void handleModelChange(Object src, StyledTextModel old, StyledTextModel m) | |
| install | back to summary |
|---|---|
| public void install() Overrides default javafx. Doc from javafx. Called once when Application code must not call this method. The default implementation of this method does nothing.
| |
| pasteText | back to summary |
|---|---|
| public void pasteText(DataFormat format) Pastes the clipboard content at the caret, or, if selection exists, replacing the selected text. The format must be supported by the model, and the skin must be installed, otherwise this method has no effect.
| |
| queryAccessibleAttribute | back to summary |
|---|---|
| protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |
| refreshLayout | back to summary |
|---|---|
| public void refreshLayout() Discards any cached layout information and calls
| |