Package org.zkoss.zats.mimic.impl
Class DefaultPageAgent
java.lang.Object
org.zkoss.zats.mimic.impl.DefaultPageAgent
- All Implemented Interfaces:
Agent,PageAgent,QueryAgent
Default implementation for PageAgent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TTry to get a instance of target class for this query agent, the target class is usually aOperationAgentor a nativeComponent
if it cannot get a instance of target class, it will throwAgentException.booleangetAttribute(String name) get attribute by specify name.get client this agent belonged to.get the delegatee objectget desktop of this pagegetId()get ID.org.zkoss.zk.ui.PagegetPage()getRoots()get root component agents at the page.getType()getUuid()get UUID.inthashCode()<T> booleanCan get a instance of target class for this query agent.to find the first component agent with the selector in this query agent.to find the component agents with the selector in this query agent.toString()
-
Constructor Details
-
DefaultPageAgent
-
-
Method Details
-
getId
Description copied from interface:PageAgentget ID. of the page. -
getType
-
getAttribute
Description copied from interface:PageAgentget attribute by specify name.- Specified by:
getAttributein interfacePageAgent- Parameters:
name- attribute name.- Returns:
- attribute value or null if not found or otherwise.
-
getUuid
Description copied from interface:PageAgentget UUID. of this the page. -
getRoots
Description copied from interface:PageAgentget root component agents at the page. -
getClient
Description copied from interface:Agentget client this agent belonged to. -
getDesktop
Description copied from interface:PageAgentget desktop of this page- Specified by:
getDesktopin interfacePageAgent
-
getPage
public org.zkoss.zk.ui.Page getPage() -
hashCode
public int hashCode() -
equals
-
getDelegatee
Description copied from interface:Agentget the delegatee object- Specified by:
getDelegateein interfaceAgent
-
query
Description copied from interface:QueryAgentto find the first component agent with the selector in this query agent.- Specified by:
queryin interfaceQueryAgent- Parameters:
selector- the selector- Returns:
- the first component agent, null if not found
-
queryAll
Description copied from interface:QueryAgentto find the component agents with the selector in this query agent.- Specified by:
queryAllin interfaceQueryAgent- Parameters:
selector- the selector- Returns:
- the component agents
-
toString
-
as
Description copied from interface:QueryAgentTry to get a instance of target class for this query agent, the target class is usually aOperationAgentor a nativeComponent
if it cannot get a instance of target class, it will throwAgentException.- Specified by:
asin interfaceQueryAgent- Parameters:
clazz- class of specify operation.- Returns:
- operation object.
-
is
Description copied from interface:QueryAgentCan get a instance of target class for this query agent.- Specified by:
isin interfaceQueryAgent- Parameters:
clazz- the class cast to.- Returns:
- true if can get a instance of target class
-