| Modifier and Type | Field and Description |
|---|---|
| private final DataFormat |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | Returns: an object to be placed to the Clipboardsource model model, StyleResolver view-specific style resolver resolver, TextPos start text position start, TextPos end text position end)Creates an object to be put into the Clipboard for the given text range. |
| public abstract StyledInput | Returns: the StyledInputthe input data, never null input, StyleAttributeMap the style attributes (can be null) attr)Creates a StyledInput for the given input data. |
| public final DataFormat | |
| public abstract 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)OutputStreamSave the text range in the handler's format to the output stream (e.g. save to file). |
| format | back to summary |
|---|---|
| private final DataFormat format | |
| DataFormatHandler | back to summary |
|---|---|
| public DataFormatHandler(DataFormat f) Creates a DataHandler instance for the specified format.
| |
| copy | back to summary |
|---|---|
| public abstract Object copy(StyledTextModel model, StyleResolver resolver, TextPos start, TextPos end) throws IOException 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 abstract StyledInput createStyledInput(Object input, StyleAttributeMap attr) throws IOException Creates a StyledInput for the given input data. When pasting, the caller may pass
the style attributes
| |
| getDataFormat | back to summary |
|---|---|
| public final DataFormat getDataFormat() Returns the
| |
| save | back to summary |
|---|---|
| public abstract void save(StyledTextModel model, StyleResolver resolver, TextPos start, TextPos end, OutputStream out) throws IOException 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
| |