public final class FrameLoadEvent extends BrowserEvent
Constructor and Description |
---|
FrameLoadEvent(Browser browser, long frameId, boolean isMainFrame)
Constructs a new
FrameLoadEvent instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getFrameId()
Returns identifier of a frame which is loaded.
返回加载的帧的标识符。 |
boolean |
isMainFrame()
Indicates whether the current frame is a main frame or not.
指示当前帧是否为主框架。 |
java.lang.String |
toString() |
getBrowser
public FrameLoadEvent(Browser browser, long frameId, boolean isMainFrame)
FrameLoadEvent
instance.
browser
- the browser instance on which the event is initially occurred.
-最初发生事件的浏览器实例。
frameId
- identifier of a frame that is loaded.
-加载的帧的标识符。
isMainFrame
- indicates whether the
frameId
is a main frame.
-指示是否为主机。
public long getFrameId()
public boolean isMainFrame()
true
when the frame is a main frame.
当框架是主框架时。
public java.lang.String toString()
toString
in class
java.lang.Object