public abstract class CefDragData
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CefDragData.DragOperations
Supported drag operation bit flags.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addFile(java.lang.String path,
java.lang.String displayName)
Add a file that is being dragged into the webview.
|
abstract CefDragData |
clone()
Returns a copy of the current object
|
static CefDragData |
create()
Create a new CefDragData object.
|
abstract void |
dispose()
Removes the native reference from an unused object.
|
protected void |
finalize() |
abstract int |
getFileContents(java.io.OutputStream writer)
Write the contents of the file being dragged out of the web view into
|writer|.
|
abstract java.lang.String |
getFileName()
Return the name of the file being dragged out of the browser window.
|
abstract boolean |
getFileNames(java.util.Vector<java.lang.String> names)
Retrieve the list of file names that are being dragged into the browser
window.
|
abstract java.lang.String |
getFragmentBaseURL()
Return the base URL that the fragment came from.
|
abstract java.lang.String |
getFragmentHtml()
Return the text/html fragment that is being dragged.
|
abstract java.lang.String |
getFragmentText()
Return the plain text fragment that is being dragged.
|
abstract java.lang.String |
getLinkMetadata()
Return the metadata, if any, associated with the link being dragged.
|
abstract java.lang.String |
getLinkTitle()
Return the title associated with the link being dragged.
|
abstract java.lang.String |
getLinkURL()
Return the link URL that is being dragged.
|
abstract boolean |
isFile()
Returns true if the drag data is a file.
|
abstract boolean |
isFragment()
Returns true if the drag data is a text or html fragment.
|
abstract boolean |
isLink()
Returns true if the drag data is a link.
|
abstract boolean |
isReadOnly()
Test if the object is set to read-only.
|
abstract void |
resetFileContents()
Reset the file contents.
|
abstract void |
setFragmentBaseURL(java.lang.String baseUrl)
Set the base URL that the fragment came from.
|
abstract void |
setFragmentHtml(java.lang.String html)
Set the text/html fragment that is being dragged.
|
abstract void |
setFragmentText(java.lang.String text)
Set the plain text fragment that is being dragged.
|
abstract void |
setLinkMetadata(java.lang.String data)
Set the metadata associated with the link being dragged.
|
abstract void |
setLinkTitle(java.lang.String title)
Set the title associated with the link being dragged.
|
abstract void |
setLinkURL(java.lang.String url)
Set the link URL that is being dragged.
|
java.lang.String |
toString() |
public abstract void addFile(java.lang.String path,
java.lang.String displayName)
path - The file and path to be set.displayName - The name to be displayed.public abstract CefDragData clone()
clone in class java.lang.Objectpublic static final CefDragData create()
public abstract void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic abstract int getFileContents(java.io.OutputStream writer)
writer - Writes the contents into this object.public abstract java.lang.String getFileName()
public abstract boolean getFileNames(java.util.Vector<java.lang.String> names)
public abstract java.lang.String getFragmentBaseURL()
public abstract java.lang.String getFragmentHtml()
public abstract java.lang.String getFragmentText()
public abstract java.lang.String getLinkMetadata()
public abstract java.lang.String getLinkTitle()
public abstract java.lang.String getLinkURL()
public abstract boolean isFile()
public abstract boolean isFragment()
public abstract boolean isLink()
public abstract boolean isReadOnly()
public abstract void resetFileContents()
public abstract void setFragmentBaseURL(java.lang.String baseUrl)
baseUrl - The base URL to be set.public abstract void setFragmentHtml(java.lang.String html)
html - The html fragment to be set.public abstract void setFragmentText(java.lang.String text)
text - The plain text fragment to be set.public abstract void setLinkMetadata(java.lang.String data)
data - The metadata associated with the link.public abstract void setLinkTitle(java.lang.String title)
title - The tile associated with the link.public abstract void setLinkURL(java.lang.String url)
url - The link URL to be set.public java.lang.String toString()
toString in class java.lang.Object