|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.webrenderer.event.BrowserEvent
An event which indicates that there has been a change in some areas of the
browser. Currently, a BrowserEvent
encapsulates:
To reduce the cost of multiple method invocations, the event object will record the new data pertaining to the event. The object will only contain the data required for the given event. This implies that if the event was generated due to a URL change, then the title and link information will be invalid.
If a function is not appropriate/available for the situation from which it is being
called, it will return null
.
To clarify the meaning of a link message, these occur when the users mouse passes over a HTML link. The message passed back is usually the url the link is pointing to, unless modified via scripting.
BrowserListener
,
Serialized FormConstructor Summary | |
BrowserEvent(java.lang.Object source)
Constructor for BrowserEvent with a source. |
Method Summary | |
void |
blockLoad()
Set a flag to block loading. |
boolean |
getBlockLoad()
Get the current block status. |
java.lang.String |
getHeaders()
Gets the request headers. |
java.lang.String |
getLink()
Gets the link message. |
java.lang.String |
getPOSTData()
Gets the post data. |
java.lang.String |
getTargetFrame()
Get the target frame name. |
java.lang.String |
getTitle()
Get the title. |
int |
getTransactionId()
Get the transaction ID. |
java.lang.String |
getURL()
Get the URL. |
int |
getX()
Returns the x. |
int |
getY()
Returns the y. |
void |
setHeaders(java.lang.String string)
Set the request headers. |
void |
setLink(java.lang.String link)
Set the link message. |
void |
setPOSTData(java.lang.String string)
|
void |
setTargetFrame(java.lang.String string)
Set the name of the target frame. |
void |
setTitle(java.lang.String title)
Set the title. |
void |
setTransactionId(int i)
Set the transaction ID. |
void |
setURL(java.lang.String url)
Set the URL. |
void |
setX(int x)
Sets the x position |
void |
setY(int y)
Sets the y position. |
void |
unBlockLoad()
Unblock the loading. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BrowserEvent(java.lang.Object source)
null
.
source
- EventObject.EventObject(Object)
Method Detail |
public java.lang.String getURL()
null
see availability of return values in BrowserListener
getURL()
public void setURL(java.lang.String url)
url
- The URL.getURL()
public java.lang.String getTitle()
null
.
see availability of return values in BrowserListener
setTitle(String)
public void setTitle(java.lang.String title)
title
- The title.public java.lang.String getLink()
null
see availability of return values in BrowserListener
public java.lang.String getPOSTData()
null
see availability of return values in BrowserListener
public java.lang.String getHeaders()
null
see availability of return values in BrowserListener
public void setLink(java.lang.String link)
link
- The link message.public java.lang.String getTargetFrame()
public void blockLoad()
unBlockLoad()
public void unBlockLoad()
blockLoad()
public boolean getBlockLoad()
unBlockLoad()
,
blockLoad()
public void setHeaders(java.lang.String string)
string
- the new request headers.public void setPOSTData(java.lang.String string)
string
- #setPostData(String)
public void setTargetFrame(java.lang.String string)
string
- the target frame.public int getX()
public int getY()
public void setX(int x)
x
- the x position.public void setY(int y)
y
- the y position.public int getTransactionId()
setTransactionId(int)
public void setTransactionId(int i)
i
- the transaction ID.getTransactionId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |