public abstract class CefDragData
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
abstract void |
addFile(java.lang.String path,
java.lang.String displayName)
Add a file that is being dragged into the webview.
添加正在拖动到webview中的文件
|
abstract CefDragData |
clone()
Returns a copy of the current object
返回当前对象的副本
|
static CefDragData |
create()
Create a new CefDragData object.
创建一个新的CefDragData对象
|
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|.
将正在拖出Web视图的文件的内容写入| 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.
返回片段来自的基本URL
|
abstract java.lang.String |
getFragmentHtml()
Return the text/html fragment that is being dragged.
返回正在拖动的text/html片段
|
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.
返回正在拖动的链接URL
|
abstract boolean |
isFile()
Returns true if the drag data is a file.
如果拖动数据是文件,则返回true
|
abstract boolean |
isFragment()
Returns true if the drag data is a text or html fragment.
如果拖动数据是文本或html片段,则返回true
|
abstract boolean |
isLink()
Returns true if the drag data is a link.
如果拖动数据是链接,则返回true
|
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.
设置片段来自的基本URL
|
abstract void |
setFragmentHtml(java.lang.String html)
Set the text/html fragment that is being dragged.
设置正在拖动的text / html片段
|
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.
设置正在拖动的链接URL
|
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
在类中 java.lang.Object
public static final CefDragData create()
public abstract void dispose()
protected void finalize() throws java.lang.Throwable
finalize
在类中 java.lang.Object
java.lang.Throwable
public 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
在类中 java.lang.Object