self"
From Documentation
Maya001122 (talk | contribs) m (Created page with '{{ZKDevelopersGuidePageHeader}} [http://www.zkoss.org/javadoc/3.5.1/zk/org/zkoss/zk/ui/Component.html <javadoc type="interface">org.zkoss.zk.ui.Component</javadoc>] :<tt>setVis…') |
m (correct highlight (via JWB)) |
||
Line 3: | Line 3: | ||
[http://www.zkoss.org/javadoc/3.5.1/zk/org/zkoss/zk/ui/Component.html <javadoc type="interface">org.zkoss.zk.ui.Component</javadoc>] | [http://www.zkoss.org/javadoc/3.5.1/zk/org/zkoss/zk/ui/Component.html <javadoc type="interface">org.zkoss.zk.ui.Component</javadoc>] | ||
− | :< | + | :<code>setVisible</code> : Sets whether this component is visible. |
− | :< | + | :<code>setParent</code> : Sets the parent component. |
− | :< | + | :<code>removeChild</code> : Removes a child. |
− | Because < | + | Because <code>self</code> will be cast to evaluating component, therefore its api is not limited to <javadoc type="interface">org.zkoss.zk.ui.Component</javadoc>. |
For example | For example | ||
Line 15: | Line 15: | ||
</source> | </source> | ||
− | < | + | <code>linkedPanel</code> is mapping to <code>getLinkedPanel</code> of Tab.java |
{{ ZKDevelopersGuidePageFooter}} | {{ ZKDevelopersGuidePageFooter}} |
Latest revision as of 10:40, 19 January 2022
This documentation is for an older version of ZK. For the latest one, please click here.
setVisible
: Sets whether this component is visible.setParent
: Sets the parent component.removeChild
: Removes a child.
Because self
will be cast to evaluating component, therefore its api is not limited to Component.
For example
<tab label="OnDemand" onSelect="load(self.linkedPanel)"/>
linkedPanel
is mapping to getLinkedPanel
of Tab.java