DataFormatHandler provides export/import support for RTF format.
| Modifier and Type | Field and Description |
|---|---|
| private static final RtfFormatHandler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | copy(StyledTextModel
source model model, 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. |
| private void | |
| public static final RtfFormatHandler | Returns: the singleton instance ofRtfFormatHandlerReturns the singleton instance of |
| public void | save(StyledTextModel
source model model, 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 RtfFormatHandler instance | |
| RtfFormatHandler | back to summary |
|---|---|
| private RtfFormatHandler() The constructor | |
| copy | back to summary |
|---|---|
| public Object copy(StyledTextModel model, 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) throws IOException Implements abstract jfx. Doc from jfx. Creates a StyledInput for the given input string. When pasting, the caller may pass
the style attributes
| |
| export | back to summary |
|---|---|
| private void export(StyledTextModel model, StyleResolver resolver, TextPos start, TextPos end, Writer wr) throws IOException | |
| getInstance | back to summary |
|---|---|
| public static final RtfFormatHandler getInstance() Returns the singleton instance of
| |
| save | back to summary |
|---|---|
| public void save(StyledTextModel model, 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
| |