public class JavascriptEvent extends EventObject
JavascriptEvent will be invoked if a Javascript
status message arises.
To reduce the cost of multiple method invocations, the event object will record only the new data pertaining to the event.
source| Constructor and Description |
|---|
JavascriptEvent(Object source)
Constructor for JavascriptEvent with a source.
|
JavascriptEvent(Object source,
String errorMessage,
String sourceName,
String sourceLine,
int lineNumber,
int columnNumber,
int flags)
Constructor for JavascriptEvent for the case of a Javascript Message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
blockDialog()
This method blocks Javascript dialogs if called inside onJavaScriptDialog() event handler
|
boolean |
getBlockDialog()
Gets the blocked status of Javascript dialogs.
|
String |
getCaption()
Gets the caption.
|
int |
getColumnNumber()
Get the column number.
|
String |
getErrorMessage()
Get the error message.
|
int |
getFlags()
Get the flag for this event.
|
String |
getJavascriptStatus()
Gets the Javascript status message.
|
int |
getLineNumber()
Get the line number.
|
String |
getMessage()
Gets the message.
|
String |
getSourceLine()
Get the source line.
|
String |
getSourceName()
Get the source name.
|
void |
setCaption(String newCaption)
Sets the caption.
|
void |
setJavascriptStatus(String newStatus)
Set the Javascript status message.
|
void |
setMessage(String newMessage)
Sets the message.
|
getSource, toStringpublic JavascriptEvent(Object source)
null.source - The source of the eventpublic void setJavascriptStatus(String newStatus)
newStatus - The Javascript status message.public String getJavascriptStatus()
null. The status message
indicates the current action being taken by the component (for example, the page currently
being loaded).null if there is no status data available.public void blockDialog()
public boolean getBlockDialog()
true if dialogs are blocked.public String getCaption()
public void setCaption(String newCaption)
newCaption - captionpublic String getMessage()
public void setMessage(String newMessage)
newMessage - the message.public int getColumnNumber()
public String getErrorMessage()
public int getFlags()
public int getLineNumber()
public String getSourceLine()
public String getSourceName()