|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.AjaxVariableMap
public class AjaxVariableMap
Variable map for ajax applications.
| Nested Class Summary | |
|---|---|
class |
AjaxVariableMap.TerminalErrorImpl
Implementation of VariableOwner.Error interface. |
class |
AjaxVariableMap.VariableOwnerErrorImpl
Implementation of VariableOwner.Error interface. |
| Constructor Summary | |
|---|---|
AjaxVariableMap()
|
|
| Method Summary | |
|---|---|
Map |
handleVariables(HttpServletRequest req,
Terminal.ErrorListener errorListener)
Handles all variable changes in this request. |
String |
registerVariable(String name,
Class type,
Object value,
VariableOwner owner)
Registers a new variable. |
void |
unregisterVariable(String name,
VariableOwner owner)
Unregisters the variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AjaxVariableMap()
| Method Detail |
|---|
public String registerVariable(String name,
Class type,
Object value,
VariableOwner owner)
name - the Variable name.type - value - owner - the Listener for variable changes.
public void unregisterVariable(String name,
VariableOwner owner)
name - the Variable name.owner - the Listener for variable changes.
public Map handleVariables(HttpServletRequest req,
Terminal.ErrorListener errorListener)
throws IOException
req - the HTTP request to handle.errorListener - the listeners If the list is non null, only the listed
listeners are served. Otherwise all the listeners are served.
IOException - if the writing failed due to input/output error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||