|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
boolean |
allowScriptClose(Viewport vp,
boolean openedByScript)
Query application if script should be able to close top-level window. |
long |
getMaxScriptRunningTime()
Maximum time in milliseconds for script to run on the event thread. |
boolean |
interruptLongRunningScript(Viewport vp,
long scriptRunTime)
Notify about long running script that blocks user input. |
void |
reportScriptError(Viewport vp,
boolean justWarning,
String errorMessage,
String url,
int lineNumber,
String lineSource,
int lineOffset)
Notify about errors during script execution. |
void |
scriptAlert(Viewport vp,
String msg)
Implement script alert method |
boolean |
scriptConfirm(Viewport vp,
String msg)
Implement script confirm method |
void |
scriptPrint(Viewport vp)
Implement script print method |
String |
scriptPrompt(Viewport vp,
String msg,
String defVal)
Implement script prompt method |
| Method Detail |
public long getMaxScriptRunningTime()
interruptLongRunningScript. If returns 0, monitoring of long running scripts would be disabled.interruptLongRunningScript(ice.storm.Viewport, long)
public boolean interruptLongRunningScript(Viewport vp,
long scriptRunTime)
getMaxScriptRunningTime. The script would be terminated if the method returns true. A possible way to implement the method is to present to a user a dialog asking to terminate or continue the long running script.
vp - Viewport with code for long running scriptscriptRunTime - Total time in milliseconds since scrip was started
getMaxScriptRunningTime()
public boolean allowScriptClose(Viewport vp,
boolean openedByScript)
openedByScript - specify whether viewport was created by script.
public boolean allowScriptClose(Viewport view, boolean openedByScript) {
return openedByScript;
}
public void reportScriptError(Viewport vp,
boolean justWarning,
String errorMessage,
String url,
int lineNumber,
String lineSource,
int lineOffset)
vp - Viewport containing error triggering scriptjustWarning - True if the reported problem does not prevent father execution of the script.errorMessage - Text of error messageurl - Point to url containing error triggering script codelineNumber - If non-negative, gives number for line with errorlineSource - If not null, contains error line textlineOffset - Offset in characters from line start for error-triggering code
public String scriptPrompt(Viewport vp,
String msg,
String defVal)
public boolean scriptConfirm(Viewport vp,
String msg)
public void scriptAlert(Viewport vp,
String msg)
public void scriptPrint(Viewport vp)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||