|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.ScriptSessions
public class ScriptSessions
A class to act on the current ScriptSession(s).
| Constructor Summary | |
|---|---|
ScriptSessions()
|
|
| Method Summary | |
|---|---|
static void |
addFunctionCall(java.lang.String funcName,
java.lang.Object... params)
Call a named function with one parameter. |
static void |
addScript(ScriptBuffer script)
Add a script to the list waiting for remote execution. |
static void |
addScript(java.lang.String scriptString)
Utility to add the given script to all known browsers. |
static void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this session. |
static void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this session, using the name specified. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptSessions()
| Method Detail |
|---|
public static void setAttribute(java.lang.String name,
java.lang.Object value)
After this method executes, and if the new object implements
ScriptSessionBindingListener, the container calls
ScriptSessionBindingListener.valueBound(org.directwebremoting.event.ScriptSessionBindingEvent).
If an object was already bound to this session of this name that
implements ScriptSessionBindingListener, its
ScriptSessionBindingListener.valueUnbound(org.directwebremoting.event.ScriptSessionBindingEvent) method is called.
If the value passed in is null, this has the same effect as calling
removeAttribute(java.lang.String).
name - the name to which the object is bound; cannot be nullvalue - the object to be bound
java.lang.IllegalStateException - if the page has been invalidatedpublic static void removeAttribute(java.lang.String name)
After this method executes, and if the object implements
ScriptSessionBindingListener, the container calls
ScriptSessionBindingListener.valueUnbound(org.directwebremoting.event.ScriptSessionBindingEvent).
name - the name of the object to remove from this session
java.lang.IllegalStateException - if the page has been invalidatedpublic static void addScript(ScriptBuffer script)
script - The script to executepublic static void addScript(java.lang.String scriptString)
scriptString - The Javascript to send to the browsers
public static void addFunctionCall(java.lang.String funcName,
java.lang.Object... params)
funcName - The name of the function to callparams - The parameters to the above function
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||