Texts"
From Documentation
m |
|||
Line 63: | Line 63: | ||
| content | | content | ||
| <javadoc method="setContent(java.lang.String)">org.zkoss.zul.Style</javadoc> | | <javadoc method="setContent(java.lang.String)">org.zkoss.zul.Style</javadoc> | ||
+ | |- | ||
+ | | tab | ||
+ | | label | ||
+ | | <javadoc method="setLabel(java.lang.String)">org.zkoss.zul.Tab</javadoc> (since 5.0.7) | ||
|} | |} | ||
Line 70: | Line 74: | ||
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | | + | | 5.0.7 |
− | | | + | | April 2011 |
− | | | + | | <javadoc>org.zkoss.zul.Tab</javadoc> allow the XML text as the label. |
|} | |} | ||
{{ZUMLReferencePageFooter}} | {{ZUMLReferencePageFooter}} |
Revision as of 04:15, 7 April 2011
In general, a XML text is interpreted as a label component. For example,
<window>
Begin ${foo.whatever}
</window>
is equivalent to
<window>
<label value="Begin ${foo.whatever}"/>
</window>
However, a component can be designed to accept the nested text as the value of a component property. In other words, a component designer could decide to make ZK Loader interpret the nest text as the value of a predefined property. For example, Html is one of this kind of components, and
<html>Begin ${foo.whatever}</html>
is equivalent to
<html content="Begin ${foo.whatever}"/>
It is designed to make it easy to specify multiple-line value, so it is usually used by particular components that requires the multi-line value.
Here is a list of components that interprets the XML text as a property's value.
Component Name | Property Name | Method |
---|---|---|
a | label | A.setLabel(String) |
button | label | Button.setLabel(String) |
comboitem | content | Comboitem.setContent(String) |
html | content | Html.setContent(String) |
label | value | Label.setValue(String) |
script | content | Script.setContent(String) |
style | content | Style.setContent(String) |
tab | label | Tab.setLabel(String) (since 5.0.7) |
Version History
Version | Date | Content |
---|---|---|
5.0.7 | April 2011 | Tab allow the XML text as the label. |