public interface ComponentAgent extends QueryAgent
Modifier and Type | Method and Description |
---|---|
void |
blur()
Blur this component, it is a short cut of
FocusAgent.blur()
If this component doesn't support FocusAgent , it will throw exception. |
void |
check(boolean checked)
Check this component, it is a short cut of
CheckAgent.check(boolean)
If this component doesn't support CheckAgent , it will throw exception. |
void |
click()
Click on this component, A short cut of
ClickAgent.click()
If this component doesn't support ClickAgent , it will throw exception. |
void |
focus()
Focus this component, it is a short cut of
FocusAgent.focus()
If this component doesn't support FocusAgent , it will throw exception. |
java.lang.Object |
getAttribute(java.lang.String name)
get attribute by specify name.
|
ComponentAgent |
getChild(int index)
get child by specify index.
|
java.util.List<ComponentAgent> |
getChildren()
get children agents.
|
DesktopAgent |
getDesktop()
get desktop agent this component belonged to.
|
ComponentAgent |
getFirstChild()
Returns the first child, if any.
|
java.lang.String |
getId()
get ID.
|
ComponentAgent |
getLastChild()
Returns the last child, if any.
|
ComponentAgent |
getNextSibling()
Returns the next sibling, if any.
|
<T extends org.zkoss.zk.ui.Component> |
getOwner()
Returns the associated owner component of this agent
|
PageAgent |
getPage()
get page agent this component belonged to.
|
ComponentAgent |
getParent()
get parent agent.
|
ComponentAgent |
getPreviousSibling()
Returns the previous sibling, if any.
|
java.lang.String |
getUuid()
get UUID.
|
void |
input(java.lang.Object value)
Input to this component, it is a short cut of
InputAgent.input(Object)
If this component doesn't support InputAgent , it will throw exception. |
void |
select()
Select this component, it is a short cut of
SelectAgent.select()
If this component doesn't support SelectAgent , it will throw exception. |
void |
stroke(java.lang.String key)
Stroke a key on this component, it is a short cut of
KeyStrokeAgent.stroke(String)
If this component doesn't support KeyStrokeAgent , it will throw exception. |
void |
type(java.lang.String value)
Type on this component, it is a short cut of
InputAgent.type(String)
If this component doesn't support InputAgent , it will throw exception. |
as, is, query, queryAll
getClient, getDelegatee
java.lang.String getId()
java.lang.String getUuid()
java.lang.Object getAttribute(java.lang.String name)
name
- attribute name.java.util.List<ComponentAgent> getChildren()
ComponentAgent getChild(int index)
index
- <T extends org.zkoss.zk.ui.Component> T getOwner()
ComponentAgent getFirstChild()
ComponentAgent getLastChild()
ComponentAgent getNextSibling()
ComponentAgent getPreviousSibling()
ComponentAgent getParent()
DesktopAgent getDesktop()
PageAgent getPage()
void click()
ClickAgent.click()
If this component doesn't support ClickAgent
, it will throw exception.QueryAgent.as(Class)
,
ClickAgent
void type(java.lang.String value)
InputAgent.type(String)
If this component doesn't support InputAgent
, it will throw exception.QueryAgent.as(Class)
,
InputAgent
void input(java.lang.Object value)
InputAgent.input(Object)
If this component doesn't support InputAgent
, it will throw exception.QueryAgent.as(Class)
,
InputAgent
void focus()
FocusAgent.focus()
If this component doesn't support FocusAgent
, it will throw exception.QueryAgent.as(Class)
,
FocusAgent
void blur()
FocusAgent.blur()
If this component doesn't support FocusAgent
, it will throw exception.QueryAgent.as(Class)
,
FocusAgent
void check(boolean checked)
CheckAgent.check(boolean)
If this component doesn't support CheckAgent
, it will throw exception.QueryAgent.as(Class)
,
CheckAgent
void stroke(java.lang.String key)
KeyStrokeAgent.stroke(String)
If this component doesn't support KeyStrokeAgent
, it will throw exception.QueryAgent.as(Class)
,
KeyStrokeAgent
void select()
SelectAgent.select()
If this component doesn't support SelectAgent
, it will throw exception.QueryAgent.as(Class)
,
SelectAgent
Copyright © 2019 Potix Corporation. All rights reserved.