Uses of Class javafx.scene.input.DataFormat (JavaFX 27)
Description: use: module: javafx.graphics, package: javafx.scene.input, class: DataFormat

# Uses of Class
javafx.scene.input.DataFormat

Packages that use DataFormat
Package
Description
javafx.scene.input
Provides the set of classes for mouse and keyboard input event handling.
jfx.incubator.scene.control.richtext
Provides two controls for displaying and editing large, virtualized, rich text documents: `RichTextArea` and `CodeArea`.
jfx.incubator.scene.control.richtext.model
Provides common models for `RichTextArea` and `CodeArea` controls.
jfx.incubator.scene.control.richtext.skin
Contains RichTextArea skin and related classes.

- ## Uses of DataFormat in javafx.scene.input

  Subclasses with type arguments of type DataFormat in javafx.scene.input
  Modifier and Type
  Class
  Description
  `class`
  `ClipboardContent`
  Data container for `Clipboard` data.
  Fields in javafx.scene.input declared as DataFormat
  Modifier and Type
  Field
  Description
  `static final DataFormat`
  DataFormat.`FILES`
  Represents a List of Files.
  `static final DataFormat`
  DataFormat.`HTML`
  Represents an HTML formatted string.
  `static final DataFormat`
  DataFormat.`IMAGE`
  A special platform specific image type, such as is commonly used on the clipboard and interoperates widely with other applications.
  `static final DataFormat`
  DataFormat.`PLAIN_TEXT`
  Represents a plain text string.
  `static final DataFormat`
  DataFormat.`RTF`
  Represents an RTF formatted string
  `static final DataFormat`
  DataFormat.`URL`
  Represents a URL, encoded as a String
  Methods in javafx.scene.input that return DataFormat
  Modifier and Type
  Method
  Description
  `static DataFormat`
  DataFormat.`lookupMimeType(String mimeType)`
  Looks for the DataFormat which has been previously created with the given mime type as one of its ids.
  Methods in javafx.scene.input that return types with arguments of type DataFormat
  Modifier and Type
  Method
  Description
  `final Set<DataFormat>`
  Clipboard.`getContentTypes()`
  Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard.
  Methods in javafx.scene.input with parameters of type DataFormat
  Modifier and Type
  Method
  Description
  `final Object`
  Clipboard.`getContent(DataFormat dataFormat)`
  Returns the content stored in this clipboard of the given type, or null if there is no content with this type.
  `final boolean`
  Clipboard.`hasContent(DataFormat dataFormat)`
  Tests whether there is any content on this clipboard of the given DataFormat type.
  Method parameters in javafx.scene.input with type arguments of type DataFormat
  Modifier and Type
  Method
  Description
  `final boolean`
  Clipboard.`setContent(Map<DataFormat, Object> content)`
  Puts content onto the clipboard.

- ## Uses of DataFormat in jfx.incubator.scene.control.richtext

  Methods in jfx.incubator.scene.control.richtext with parameters of type DataFormat
  Modifier and Type
  Method
  Description
  `final void`
  RichTextArea.`copy(DataFormat format)`
  Copies the selected text in the specified format to the clipboard.
  `void`
  RichTextArea.`paste(DataFormat format)`
  Pastes the clipboard content at the caret, or, if selection exists, replacing the selected text.
  `final void`
  RichTextArea.`read(DataFormat f, InputStream in)`
  Calls the model to replace the current document with the content read from the stream using the specified `DataFormat`.
  `final void`
  RichTextArea.`write(DataFormat f, OutputStream out)`
  Calls the model to writes the current document to the output stream using the specified `DataFormat`.

- ## Uses of DataFormat in jfx.incubator.scene.control.richtext.model

  Fields in jfx.incubator.scene.control.richtext.model declared as DataFormat
  Modifier and Type
  Field
  Description
  `static final DataFormat`
  RichTextFormatHandler.`DATA_FORMAT`
  The data format identifier
  Methods in jfx.incubator.scene.control.richtext.model that return DataFormat
  Modifier and Type
  Method
  Description
  `final DataFormat`
  DataFormatHandler.`getDataFormat()`
  Returns the `DataFormat` associated with this handler.
  Methods in jfx.incubator.scene.control.richtext.model that return types with arguments of type DataFormat
  Modifier and Type
  Method
  Description
  `final List<DataFormat>`
  StyledTextModel.`getSupportedDataFormats(boolean forExport)`
  Returns an immutable list of supported data formats for either export or import operations, in the order of priority - from high to low.
  Methods in jfx.incubator.scene.control.richtext.model with parameters of type DataFormat
  Modifier and Type
  Method
  Description
  `final DataFormatHandler`
  StyledTextModel.`getDataFormatHandler(DataFormat format, boolean forExport)`
  Returns a `DataFormatHandler` instance corresponding to the given `DataFormat`.
  `final void`
  StyledTextModel.`read(StyleResolver r, DataFormat f, InputStream input)`
  Replaces the content of the model with the data read from the input stream, using the specified `DataFormat`.
  `protected final void`
  StyledTextModel.`removeDataFormatHandler(DataFormat f, boolean forExport, boolean forImport)`
  Removes the data format handler registered previously with `StyledTextModel.registerDataFormatHandler(DataFormatHandler, boolean, boolean, int)`.
  `final void`
  StyledTextModel.`write(StyleResolver r, DataFormat f, OutputStream out)`
  Writes the model content to the output stream using the specified `DataFormat`.
  Constructors in jfx.incubator.scene.control.richtext.model with parameters of type DataFormat
  Modifier
  Constructor
  Description
  ``
  `DataFormatHandler(DataFormat f)`
  Creates a DataHandler instance for the specified format.

- ## Uses of DataFormat in jfx.incubator.scene.control.richtext.skin

  Methods in jfx.incubator.scene.control.richtext.skin with parameters of type DataFormat
  Modifier and Type
  Method
  Description
  `void`
  RichTextAreaSkin.`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.
  `void`
  RichTextAreaSkin.`pasteText(DataFormat format)`
  Pastes the clipboard content at the caret, or, if selection exists, replacing the selected text.