|
||||||||||
| 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.
| 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. |
|
| Method Summary | |
|---|---|
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()
Returns the UUID. |
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,
Command cmd,
java.lang.String[] data)
Desktop.getComponentByUuid(java.lang.String) without
activating an execution, we have to use this method.
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)
CommandNotFoundException - if the command is not foundpublic final Desktop getDesktop()
public final Page getPage()
ComponentNotFoundException - if the page is not foundpublic final Component getComponent()
ComponentNotFoundException - if the component is not foundpublic final java.lang.String getComponentUuid()
public final Command getCommand()
public final 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 | |||||||||