|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.ri.enhancedawt.browser.Main
ICEbrowser Enhanced AWT Reference Implementation
| Field Summary | |
String |
cancelText
|
static StormBase |
m_base
The StormBase member is the main access point of the browser |
String |
okText
|
| Constructor Summary | |
Main()
Constructor - no arguments |
|
| Method Summary | |
void |
activateFrame()
The frame setup method for command line startup. |
boolean |
allowScriptClose(Viewport vp,
boolean openedByScript)
Interface methods from ScripterCallback |
Container |
createTopLevelContainer(Viewport viewport)
Interface method from ViewportCallback |
void |
destroy()
The ApplicationPlugin destroy method |
void |
disposeTopLevelContainer(Viewport viewport)
Interface method from ViewportCallback |
ConfigurationManager |
getConfigManager()
|
long |
getMaxScriptRunningTime()
Maximum time in milliseconds for script to run on the event thread. |
Preferences |
getPreferences()
|
String[] |
getTopLevelIds()
Gets the top level viewport ids. |
void |
handleGesture(String viewportId,
Gesture g)
The IBGestureListener impl |
void |
init()
The ApplicationPlugin init() method |
void |
init(StormBase base)
Interface method from ViewportCallback |
boolean |
interruptLongRunningScript(Viewport vp,
long scriptRunningTime)
Notify about long running script that blocks user input. |
static void |
main(String[] args)
The static main method. |
void |
parseArgs(String[] args)
Parses the args for GUI information. |
void |
processViewportMessage(Viewport view,
String messageName,
Object addArg,
Object value)
Interface method from ViewportCallback |
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 view)
Implement script print method |
String |
scriptPrompt(Viewport vp,
String msg,
String defVal)
Implement script prompt method |
void |
setLoadImages(boolean doLoad)
Set whether the ice browser should load images or not. |
void |
start()
The ApplicationPlugin start method |
void |
stop()
The ApplicationPlugin stop method |
void |
topLevelWindowClosing(String viewportId)
The GUI calls this method when a top level window is closing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static StormBase m_base
public String okText
public String cancelText
| Constructor Detail |
public Main()
| Method Detail |
public void init()
public ConfigurationManager getConfigManager()
public Preferences getPreferences()
public void start()
public void stop()
public void destroy()
public void topLevelWindowClosing(String viewportId)
viewportId - the viewport id representing the window
that is closing.public String[] getTopLevelIds()
public void setLoadImages(boolean doLoad)
doLoad - boolean to load images or not.
public void handleGesture(String viewportId,
Gesture g)
handleGesture in interface IBGestureListenerpublic void init(StormBase base)
init in interface ViewportCallbackpublic Container createTopLevelContainer(Viewport viewport)
createTopLevelContainer in interface ViewportCallbackviewport - the viewport that will be associated
with this awt container. The viewport object may contain
some parameters describing how the new browser window should
look like (for example, from window.open() in JavaScript)
public void disposeTopLevelContainer(Viewport viewport)
disposeTopLevelContainer in interface ViewportCallback
public void processViewportMessage(Viewport view,
String messageName,
Object addArg,
Object value)
processViewportMessage in interface ViewportCallback
public boolean allowScriptClose(Viewport vp,
boolean openedByScript)
allowScriptClose in interface ScripterCallbackopenedByScript - specify whether viewport was created by script.
public boolean allowScriptClose(Viewport view, boolean openedByScript) {
return openedByScript;
}
public long getMaxScriptRunningTime()
ScripterCallback
getMaxScriptRunningTime in interface ScripterCallbackinterruptLongRunningScript. If returns 0, monitoring of long running scripts would be disabled.ScripterCallback.interruptLongRunningScript(ice.storm.Viewport, long)
public boolean interruptLongRunningScript(Viewport vp,
long scriptRunningTime)
ScripterCallbackgetMaxScriptRunningTime. 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.
interruptLongRunningScript in interface ScripterCallbackvp - Viewport with code for long running scriptscriptRunningTime - Total time in milliseconds since scrip was started
ScripterCallback.getMaxScriptRunningTime()
public void reportScriptError(Viewport vp,
boolean justWarning,
String errorMessage,
String url,
int lineNumber,
String lineSource,
int lineOffset)
ScripterCallback
reportScriptError in interface ScripterCallbackvp - 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 void scriptAlert(Viewport vp,
String msg)
ScripterCallback
scriptAlert in interface ScripterCallback
public boolean scriptConfirm(Viewport vp,
String msg)
ScripterCallback
scriptConfirm in interface ScripterCallback
public String scriptPrompt(Viewport vp,
String msg,
String defVal)
ScripterCallback
scriptPrompt in interface ScripterCallbackpublic void scriptPrint(Viewport view)
ScripterCallback
scriptPrint in interface ScripterCallbackpublic static void main(String[] args)
args - public void parseArgs(String[] args)
args - A string array of arguments to parse.public void activateFrame()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||