com.teamdev.jxbrowser.prompt
Class ScriptErrorParams
java.lang.Object
com.teamdev.jxbrowser.prompt.DialogParams
com.teamdev.jxbrowser.prompt.ScriptErrorParams
public class ScriptErrorParams
- extends DialogParams
Contains information about JavaScript error dialog.
|
Constructor Summary |
ScriptErrorParams(Browser browser,
java.lang.String message,
java.lang.String title,
java.lang.String sourceFile,
int lineNumber,
java.awt.Component owner)
Constructs the ScriptErrorInfo instance according to
the passed parameters. |
|
Method Summary |
int |
getLineNumber()
Returns the line number where error occurred. |
java.lang.String |
getSourceFile()
Returns the source file name where error occurred. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptErrorParams
public ScriptErrorParams(Browser browser,
java.lang.String message,
java.lang.String title,
java.lang.String sourceFile,
int lineNumber,
java.awt.Component owner)
- Constructs the
ScriptErrorInfo instance according to
the passed parameters.
- Parameters:
browser - the browser instance.message - the dialog message.title - the dialog title.sourceFile - the file name that contains script.lineNumber - the line number where error occurred.owner - the dialog owner.
getLineNumber
public int getLineNumber()
- Returns the line number where error occurred.
- Returns:
- the line number.
getSourceFile
public java.lang.String getSourceFile()
- Returns the source file name where error occurred.
- Returns:
- the string that represents the source file name.