|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sssw.shr.page.AgpScriptHelper
Helper methods.
| Constructor Summary | |
AgpScriptHelper()
|
|
| Method Summary | |
void |
alert(String msg)
Brings up an alert message prompt. |
void |
closeWindow()
Closes the current browser window. |
void |
openWindow(String url,
String window,
String features)
Shows the specified page in the named window with the given parameters. |
void |
openWindow(String pagedesc,
String window,
String features,
Hashtable params)
Shows the specified page in the named window with the given parameters. |
void |
openWindow(String url,
String window,
String features,
String query,
String orderby)
Shows the specified page in the named window with the specified query and orderby parameters. |
void |
reloadFrame(String frame)
Reloads the specified frame. |
void |
reloadTopFrame()
Reloads the toplevel frame. |
void |
setFrameLocation(String pagedesc)
Moves the current frame of the browser to the given url. |
void |
setFrameLocation(String pagedesc,
String frame)
Moves the specified frame of the browser to the given url. |
void |
setFrameLocation(String pagedesc,
String frame,
Hashtable params)
Moves the specified frame of the browser to the given URL with the parameters specified. |
void |
setFrameLocation(String pagedesc,
String frame,
String query,
String orderby)
Moves the specified frame of the browser to the given URL. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AgpScriptHelper()
| Method Detail |
public void setFrameLocation(String pagedesc)
pagedesc - the destination url.
public void setFrameLocation(String pagedesc,
String frame)
pagedesc - the destination url.frame - the frame to move.
public void setFrameLocation(String pagedesc,
String frame,
String query,
String orderby)
pagedesc - the destination url.frame - the frame to move.query - the query to pass.orderby - the orderby.
Assume the current frame if frame is
null.
public void setFrameLocation(String pagedesc,
String frame,
Hashtable params)
pagedesc - the destination url.frame - the frame to move.params - a hashtable containing the parameters.
Assume the current frame if frame is
null.
public void openWindow(String url,
String window,
String features)
url - the page url.window - the destination window.features - a string representing the features. The openWindow method supports
the same set of features as the JavaScript open() method.The following code fragment opens a window with a specified dimension, tool buttons turned off, menubar turned on and status bar turned off.
agScriptHelper.openWindow("http://www.silverstream.com/",
"SilverStream",
"toolbar=false,menubar=true,status=off,width=300,height=400");
AgpScriptHelper.closeWindow()
public void openWindow(String url,
String window,
String features,
String query,
String orderby)
url - the page url.window - the destination window.features - a string representing the features.query - the query string.orderby - the orderby.AgpScriptHelper.closeWindow()
public void openWindow(String pagedesc,
String window,
String features,
Hashtable params)
pagedesc - the page url.window - the destination window.features - a string representing the features.params - a hashtable containing the parameters.AgpScriptHelper.closeWindow()public void closeWindow()
Generally, this should be used only for additionally opened windows.
AgpScriptHelper.openWindow(String url, String window, String features),
AgpScriptHelper.openWindow(String url, String window, String features, String query, String orderby),
AgpScriptHelper.openWindow(String pagedesc, String window, String features, Hashtable params)public void reloadFrame(String frame)
frame - a string specifying the frame to reload.The following code fragment reloads the frame named "_left".
scriptHelper.reloadFrame("_left");
AgpScriptHelper.reloadTopFrame()public void reloadTopFrame()
AgpScriptHelper.reloadFrame(String frame)public void alert(String msg)
msg - the prompt string to display.The following code fragment brings up a JavaScript dialog box.
agScriptHelper.alert("The input is invalid. Please try again!");
|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||