self"

From Documentation
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>]
  
:<tt>setVisible</tt> : Sets whether this component is visible.
+
:<code>setVisible</code> : Sets whether this component is visible.
:<tt>setParent</tt> : Sets the parent component.
+
:<code>setParent</code> : Sets the parent component.
:<tt>removeChild</tt> : Removes a child.
+
:<code>removeChild</code> : Removes a child.
  
  
Because <tt>self</tt> will be cast to evaluating component, therefore its api is not limited to <javadoc type="interface">org.zkoss.zk.ui.Component</javadoc>.  
+
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>
  
<tt>linkedPanel</tt> is mapping to <tt>getLinkedPanel</tt> of Tab.java
+
<code>linkedPanel</code> is mapping to <code>getLinkedPanel</code> of Tab.java
  
  
 
{{ ZKDevelopersGuidePageFooter}}
 
{{ ZKDevelopersGuidePageFooter}}

Latest revision as of 10:40, 19 January 2022

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Component

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



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.