DataFormatHandler supports export of styled text in a simple HTML format.
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | INLINE_STYLES
when true, style attributes are inlined, this seems to work better in Thunderbird |
| private static final HtmlExportFormatHandler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | copy(StyledTextModel model, StyleResolver resolver, TextPos start, TextPos end)
Implements abstract jfx. Creates an object to be put into the Clipboard for the given text range. |
| public StyledInput | createStyledInput(Object input, StyleAttributeMap attr)
Implements abstract jfx. Creates a StyledInput for the given input data. |
| private void | |
| public static final HtmlExportFormatHandler | Returns: the singleton instance ofHtmlExportFormatHandlerReturns the singleton instance of |
| public void | save(StyledTextModel model, StyleResolver resolver, TextPos start, TextPos end, OutputStream out)
Implements abstract jfx. Save the text range in the handler's format to the output stream (e.g. save to file). |
| INLINE_STYLES | back to summary |
|---|---|
| private static final boolean INLINE_STYLES when true, style attributes are inlined, this seems to work better in Thunderbird | |
| instance | back to summary |
|---|---|
| private static final HtmlExportFormatHandler instance | |
| HtmlExportFormatHandler | back to summary |
|---|---|
| private HtmlExportFormatHandler() 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(Object input, StyleAttributeMap attr) Implements abstract jfx. Doc from jfx. Creates a StyledInput for the given input data. 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 HtmlExportFormatHandler 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
| |