public final class StartLoadingEvent extends LoadEvent
Constructor and Description |
---|
StartLoadingEvent(Browser browser, long frameId, long parentFrameId, boolean mainFrame, java.lang.String validatedURL, boolean errorPage)
Constructs a new
StartLoadingEvent instance.
|
StartLoadingEvent(Browser browser, long frameId, long parentFrameId, boolean mainFrame, java.lang.String validatedURL, boolean errorPage, boolean sameDocument)
Constructs a new
StartLoadingEvent instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getFrameId()
Deprecated.
已过时。 |
long |
getParentFrameId()
Returns identifier of the frame containing the navigating frame, or -1 if the frame is not contained in other frame.
返回包含导航框架的框架的标识符;如果该框架不包含在其他框架中,则返回-1。 |
java.lang.String |
getValidatedURL()
Returns a string that represents address of the navigating frame.
返回一个表示导航框架地址的字符串。 |
boolean |
isErrorPage()
Indicates whether the navigating frame is an error page.
指示导航框是否为错误页面。 |
boolean |
isMainFrame()
Indicates whether the navigating frame is a main frame.
指示导航框是否为主框架。 |
boolean |
isSameDocument()
Indicates whether the loading event is initiated by a navigation within the same document.
指示加载事件是否由同一文档中的导航启动。 |
java.lang.String |
toString() |
getBrowser
public StartLoadingEvent(Browser browser, long frameId, long parentFrameId, boolean mainFrame, java.lang.String validatedURL, boolean errorPage)
StartLoadingEvent
instance.
browser
- the browser instance on which the event is initially occurred.
-最初发生事件的浏览器实例。
frameId
- identifier of a frame that is started loading.
-开始加载的帧的标识符。
parentFrameId
- identifier of the frame containing the navigating frame.
-包含导航框架的框架的标识符。
mainFrame
- indicates whether the
frameId
is a main frame.
-指示是否为主机。
validatedURL
- address of a frame which is started loading.
-开始加载的帧的地址。
errorPage
- indicates whether the page which is started loading is an error page.
-指示开始加载的页面是否是错误页面。
public StartLoadingEvent(Browser browser, long frameId, long parentFrameId, boolean mainFrame, java.lang.String validatedURL, boolean errorPage, boolean sameDocument)
StartLoadingEvent
instance.
browser
- the browser instance on which the event is initially occurred.
-最初发生事件的浏览器实例。
frameId
- identifier of a frame that is started loading.
-开始加载的帧的标识符。
parentFrameId
- identifier of the frame containing the navigating frame.
-包含导航框架的框架的标识符。
mainFrame
- indicates whether the
frameId
is a main frame.
-指示是否为主机。
validatedURL
- address of a frame which is started loading.
-开始加载的帧的地址。
errorPage
- indicates whether the page which is started loading is an error page.
-指示开始加载的页面是否是错误页面。
sameDocument
- indicates whether the loading event is initiated by a navigation within the same document.
-指示加载事件是否由同一文档中的导航启动。
public long getFrameId()
public long getParentFrameId()
public boolean isMainFrame()
true
when the navigating frame is a main frame.
当导航框架是主框架时。
public java.lang.String getValidatedURL()
public boolean isErrorPage()
true
if the navigating frame is an error page.
如果导航框架是错误页面。
public boolean isSameDocument()
true
if the navigation occurs within the same document.
如果导航发生在同一文档中。
public java.lang.String toString()
toString
in class
java.lang.Object