|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.metainfo.NodeInfo
org.zkoss.zk.ui.metainfo.ComponentInfo
org.zkoss.zk.ui.metainfo.ZkInfo
public class ZkInfo
Represents the zk element in a ZUML page.
Constructor Summary | |
---|---|
ZkInfo(NodeInfo parent)
Constructs a ZK info. |
Method Summary | |
---|---|
java.lang.Object[] |
resolveCase(Page page,
Component comp)
Returns the case condition's value, or null if no case is specified (i.e., withCase() is fasle. |
java.lang.Object |
resolveSwitch(Page page,
Component comp)
Returns the switch condition's value; evaluate EL expression if any. |
void |
setCase(java.lang.String casec)
Sets the case condition. |
void |
setSwitch(java.lang.String switchc)
Sets the swith condition. |
boolean |
withCase()
Returns whether the case condition is defined. |
boolean |
withSwitch()
Returns whether the switch condition is defined. |
Methods inherited from class org.zkoss.zk.ui.metainfo.NodeInfo |
---|
appendChild, appendChild, appendChild, appendChild, getChildren, removeChild, removeChild, removeChild, removeChild |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZkInfo(NodeInfo parent)
Method Detail |
---|
public boolean withSwitch()
public void setSwitch(java.lang.String switchc)
switchc
- the switch condition; EL allowed.
Ignored if null.
Note: if it is an empty string, the switch condition
(returned by resolveSwitch(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Component)
) is an empty string.public java.lang.Object resolveSwitch(Page page, Component comp)
Note: unlike resolveCase(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Component)
, it might return null
even if withSwitch()
is true.
public boolean withCase()
public void setCase(java.lang.String casec)
public java.lang.Object[] resolveCase(Page page, Component comp)
withCase()
is fasle.
It evaluates EL expression if any.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |