DataFormatHandler which operates with plain text.
| Modifier and Type | Field and Description |
|---|---|
| private static final PlainTextFormatHandler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | copy(StyledTextModel
source model m, StyleResolver view-specific style resolver resolver, TextPos start text position start, TextPos end text position end)Implements abstract jfx. Creates an object to be put into the Clipboard for the given text range. |
| public StyledInput | createStyledInput(String
the input string text, StyleAttributeMap the style attributes (can be null) attr)Implements abstract jfx. Creates a StyledInput for the given input string. |
| public static final PlainTextFormatHandler | Returns: the singleton instance ofPlainTextFormatHandlerReturns the singleton instance of |
| public void | save(StyledTextModel
source model m, StyleResolver view-specific style resolver resolver, TextPos start text position start, TextPos end text position end, OutputStream target out)OutputStreamImplements abstract jfx. Save the text range in the handler's format to the output stream (e.g. save to file). |
| instance | back to summary |
|---|---|
| private static final PlainTextFormatHandler instance | |
| PlainTextFormatHandler | back to summary |
|---|---|
| private PlainTextFormatHandler() The constructor. | |
| copy | back to summary |
|---|---|
| public Object copy(StyledTextModel m, StyleResolver resolver, TextPos start, TextPos end) throws IOException Implements abstract jfx. Doc from jfx. Creates an object to be put into the Clipboard for the given text range.
The caller must guarantee that the
Typically, the implementation creates an instance of
| |
| createStyledInput | back to summary |
|---|---|
| public StyledInput createStyledInput(String text, StyleAttributeMap attr) Implements abstract jfx. Doc from jfx. Creates a StyledInput for the given input string. When pasting, the caller may pass
the style attributes
| |
| getInstance | back to summary |
|---|---|
| public static final PlainTextFormatHandler getInstance() Returns the singleton instance of
| |
| save | back to summary |
|---|---|
| public void save(StyledTextModel m, StyleResolver resolver, TextPos start, TextPos end, OutputStream out) throws IOException Implements abstract jfx. Doc from jfx. Save the text range in the handler's format to the output stream (e.g. save to file).
The caller must guarantee that the
Typically, the implementation creates an instance of
| |