public abstract class CefDragData extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
addFile(String path,
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(OutputStream writer)
Write the contents of the file being dragged out of the web view into
|writer|.
|
abstract String |
getFileName()
Return the name of the file being dragged out of the browser window.
|
abstract boolean |
getFileNames(Vector<String> names)
Retrieve the list of file names that are being dragged into the browser
window.
|
abstract String |
getFragmentBaseURL()
Return the base URL that the fragment came from.
|
abstract String |
getFragmentHtml()
Return the text/html fragment that is being dragged.
|
abstract String |
getFragmentText()
Return the plain text fragment that is being dragged.
|
abstract String |
getLinkMetadata()
Return the metadata, if any, associated with the link being dragged.
|
abstract String |
getLinkTitle()
Return the title associated with the link being dragged.
|
abstract 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(String baseUrl)
Set the base URL that the fragment came from.
|
abstract void |
setFragmentHtml(String html)
Set the text/html fragment that is being dragged.
|
abstract void |
setFragmentText(String text)
Set the plain text fragment that is being dragged.
|
abstract void |
setLinkMetadata(String data)
Set the metadata associated with the link being dragged.
|
abstract void |
setLinkTitle(String title)
Set the title associated with the link being dragged.
|
abstract void |
setLinkURL(String url)
Set the link URL that is being dragged.
|
String |
toString() |
public static final CefDragData create()
public abstract CefDragData clone()
public abstract void dispose()
public abstract boolean isReadOnly()
public abstract boolean isLink()
public abstract boolean isFragment()
public abstract boolean isFile()
public abstract String getLinkURL()
public abstract String getLinkTitle()
public abstract String getLinkMetadata()
public abstract String getFragmentText()
public abstract String getFragmentHtml()
public abstract String getFragmentBaseURL()
public abstract int getFileContents(OutputStream writer)
writer - Writes the contents into this object.public abstract String getFileName()
public abstract boolean getFileNames(Vector<String> names)
public abstract void setLinkURL(String url)
url - The link URL to be set.public abstract void setLinkTitle(String title)
title - The tile associated with the link.public abstract void setLinkMetadata(String data)
data - The metadata associated with the link.public abstract void setFragmentText(String text)
text - The plain text fragment to be set.public abstract void setFragmentHtml(String html)
html - The html fragment to be set.public abstract void setFragmentBaseURL(String baseUrl)
baseUrl - The base URL to be set.public abstract void resetFileContents()
public abstract void addFile(String path, String displayName)
path - The file and path to be set.displayName - The name to be displayed.Copyright © 2017. All rights reserved.