|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.webrenderer.se.event.BrowserEvent
public class 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 Form| Field Summary | |
|---|---|
protected java.lang.String |
headers
|
protected java.lang.String |
link
|
protected java.lang.String |
postData
|
protected boolean |
result
|
protected java.lang.String |
targetFrame
|
protected java.lang.String |
title
|
protected int |
transactionId
|
protected java.lang.String |
url
|
protected int |
x
|
protected int |
y
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor 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()
Get the X-position of the event. |
int |
getY()
Get the Y-position of the event. |
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 of the event. |
void |
setY(int y)
Sets the Y-position of the event. |
void |
unBlockLoad()
Unblock the loading. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int transactionId
protected boolean result
protected java.lang.String url
protected java.lang.String title
protected java.lang.String link
protected java.lang.String headers
protected java.lang.String postData
protected java.lang.String targetFrame
protected int x
protected int y
| 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 - 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 of the event.public void setY(int y)
y - The Y-position of the event.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 | ||||||||