📄 z35-groupbox-005.zul
字号:
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Robert (dada) -->
<?page id="testZul" title=" New ZUL Title" cacheable="false"
language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit"?>
<zk xmlns="http://www.zkoss.org/2005/zul" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul/zul.xsd">
Testing Groupbox basic functionality. If you can see all components after closing and opening the GroupBox, it's ok.
<window title="Groupbox test" width="100%">
<groupbox id="gb3" width="100%" mold="3d">
<attribute name="onChildRemoved">
Messagebox
</attribute>
<caption image="/img/inet.png" label="Testing Group Box"/>
<vbox>
<combobox>
<comboitem label="Simple and Rich"/>
<comboitem label="Cool!"/>
<comboitem label="Thumbs Up!"/>
</combobox>
<combobox>
<comboitem label="Simple and Rich" description="The simplest way to make Web applications rich"/>
<comboitem label="Cool!" description="The coolest technology"/>
<comboitem label="Ajax and RIA" description="Rich Internet Application by Ajax"/>
</combobox>
<combobox>
<comboitem label="Simple and Rich" image="/img/coffee.gif" description="The simplest way to make Web applications rich"/>
<comboitem label="Cool!" image="/img/corner.gif" description="The coolest technology"/>
<comboitem label="Ajax and RIA" image="/img/cubfirs.gif" description="Rich Internet Application by Ajax"/>
</combobox>
<separator bar="true"/>
Auto-complete:
<combobox id="combo" autodrop="true" use="org.zkoss.zkdemo.userguide.SimpleAutoComplete"/>
<hbox>
<checkbox checked="true" onCheck="combo.autodrop = self.checked" label="auto drop popup when typing"/>
<checkbox checked="true" onCheck="combo.buttonVisible = self.checked" label="button visible"/>
</hbox>
</vbox>
</groupbox>
<hbox>
<vbox>
<button label="Open or Close GroupBox" onClick="gb3.setOpen(!gb3.isOpen());"/>
<checkbox label="Use 3d groupbox" checked="false" onCheck='gb3.mold=self.checked? "3d": "default"'/>
</vbox>
<vbox>
<button label="Dynamically Add a few comonenets.">
<attribute name="onClick">
<![CDATA[
gb3.insertBefore(new Checkbox("Testing Checkbox"),combo);
]]>
</attribute>
</button>
</vbox>
</hbox>
</window>
</zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -