|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.au.AuRequest
public class AuRequest
A request sent from the client to UiEngine.
Notice that activate() must be called in the activated execution.
Before calling this method, getPage(), getComponent()
and getCommand() cannot be called.
| Constructor Summary | |
|---|---|
AuRequest(Desktop desktop,
Command cmd,
java.lang.String[] data)
Constructor for a general request sent from client. |
|
AuRequest(Desktop desktop,
java.lang.String uuid,
Command cmd,
java.lang.String[] data)
Constructor for a request sent from a component. |
|
AuRequest(Desktop desktop,
java.lang.String uuid,
java.lang.String cmdId,
java.lang.String[] data)
Constructor for a request sent from a component. |
|
| Method Summary | |
|---|---|
void |
activate()
Activates this request. |
boolean |
equals(java.lang.Object o)
|
Command |
getCommand()
Returns the command; never null. |
static Command |
getCommand(java.lang.String name)
Returns the command of the specified name. |
Component |
getComponent()
Returns the component that this request is applied for, or null if it applies to the whole page or a general request. |
java.lang.String |
getComponentUuid()
Deprecated. As of release 3.0.5, use getComponent()
instead. |
java.lang.String[] |
getData()
Returns the data of the command, might be null. |
Desktop |
getDesktop()
Returns the desktop; never null. |
Page |
getPage()
Returns the page that this request is applied for, or null if this reqeuest is a general request -- regardless any page or component. |
static boolean |
hasRequest(java.lang.String cmdnm)
Returns whether the specified request name is valid. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuRequest(Desktop desktop,
java.lang.String uuid,
java.lang.String cmdId,
java.lang.String[] data)
desktop - the desktop containing the component; never null.uuid - the component ID (never null)cmdId - the command ID; never null.data - the data; might be null.
public AuRequest(Desktop desktop,
java.lang.String uuid,
Command cmd,
java.lang.String[] data)
desktop - the desktop containing the component; never null.uuid - the component ID (never null)cmd - the command; never null.data - the data; might be null.
public AuRequest(Desktop desktop,
Command cmd,
java.lang.String[] data)
cmd - the command; never null.data - the data; might be null.| Method Detail |
|---|
public static final boolean hasRequest(java.lang.String cmdnm)
An request name is the ID of a command
(Command.getId()) which starts with "on".
public static final Command getCommand(java.lang.String name)
ComponentCtrl.getCommand(java.lang.String).
CommandNotFoundException - if the command is not found
public void activate()
throws ComponentNotFoundException,
CommandNotFoundException
It can be accessed only in the activated execution.
Before calling this method, getPage(), getComponent()
and getCommand(java.lang.String) cannot be called.
ComponentNotFoundException
CommandNotFoundExceptionpublic Desktop getDesktop()
public Page getPage()
public Component getComponent()
ComponentNotFoundException - if the component is not foundpublic java.lang.String getComponentUuid()
getComponent()
instead.
public Command getCommand()
public java.lang.String[] getData()
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||