public abstract class AbstractJadiceLocalDataFlavor extends DataFlavor
A DataFlavor
which is used for the transfer of Page
s within jadice on the same JVM, e.g. via Drag & Drop.
This flavor keeps track from which Document
it was created so that the receiving side of can decide
if it will support this flavor or not.
allHtmlFlavor, fragmentHtmlFlavor, imageFlavor, javaFileListFlavor, javaJVMLocalObjectMimeType, javaRemoteObjectMimeType, javaSerializedObjectMimeType, plainTextFlavor, selectionHtmlFlavor, stringFlavor
Constructor and Description |
---|
AbstractJadiceLocalDataFlavor(Document document)
Construct a
DataFlavor where the given document acts as the source |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(DataFlavor that) |
int |
hashCode() |
static boolean |
isFromSameDocument(DataFlavor flavor,
Document document)
Check whether the given
Document is the source of the given DataFlavor . |
clone, equals, equals, getDefaultRepresentationClass, getDefaultRepresentationClassAsString, getHumanPresentableName, getMimeType, getParameter, getPrimaryType, getReaderForText, getRepresentationClass, getSubType, getTextPlainUnicodeFlavor, isFlavorJavaFileListType, isFlavorRemoteObjectType, isFlavorSerializedObjectType, isFlavorTextType, isMimeTypeEqual, isMimeTypeEqual, isMimeTypeSerializedObject, isRepresentationClassByteBuffer, isRepresentationClassCharBuffer, isRepresentationClassInputStream, isRepresentationClassReader, isRepresentationClassRemote, isRepresentationClassSerializable, match, normalizeMimeType, normalizeMimeTypeParameter, readExternal, selectBestTextFlavor, setHumanPresentableName, toString, tryToLoadClass, writeExternal
public AbstractJadiceLocalDataFlavor(Document document) throws ClassNotFoundException
DataFlavor
where the given document acts as the sourcedocument
- the Document
for which to construct the flavor, must not be null
ClassNotFoundException
- not used, but declared due to the super constructor in class DataFlavorpublic boolean equals(DataFlavor that)
equals
in class DataFlavor
public int hashCode()
hashCode
in class DataFlavor
public static boolean isFromSameDocument(DataFlavor flavor, Document document)
Document
is the source of the given DataFlavor
.flavor
- the DataFlavor
to check, must not be null
.document
- the Document
to check, must not be null
.true
iff the given flavor is a AbstractJadiceLocalDataFlavor
and
its source is the given Document
.Copyright © 2024 levigo holding gmbh. All rights reserved.