public interface CefFrame
限定符和类型 | 方法和说明 |
---|---|
void |
executeJavaScript(java.lang.String code,
java.lang.String url,
int line)
Execute a string of JavaScript code in this frame.(在此框架中执行一串JavaScript代码)
|
long |
getIdentifier()
Returns the globally unique identifier for this frame or < 0 if the
underlying frame does not yet exist.(返回此帧的全局唯一标识符,如果基础帧尚不存在,则返回<0)
|
java.lang.String |
getName()
Returns the name for this frame.(返回此帧的名称)
|
CefFrame |
getParent()
Returns the parent of this frame or NULL if this is the main (top-level)
frame.(返回此帧的父级,如果这是主(顶级)帧,则返回NULL)
|
java.lang.String |
getURL()
Emits the URL currently loaded in this frame.(发出当前在此框架中加载的URL)
|
boolean |
isFocused()
Returns true if this is the focused frame.(如果这是聚焦框,则返回true)
|
boolean |
isMain()
Returns true if this is the main (top-level) frame.(如果这是主(顶级)帧,则返回true)
|
boolean |
isValid()
True if this object is currently attached to a valid frame.(如果此对象当前附加到有效帧,则为True)
|
void executeJavaScript(java.lang.String code, java.lang.String url, int line)
code
- The code to be executed.url
- The URL where the script in question can be found.line
- The base line number to use for error reporting.long getIdentifier()
java.lang.String getName()
CefFrame getParent()
java.lang.String getURL()
boolean isFocused()
boolean isMain()
boolean isValid()