⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sibling.zul

📁 ZK是一个Ajax Java Web框架
💻 ZUL
字号:
<?xml version="1.0" encoding="UTF-8"?><!--sibling.zul{{IS_NOTE	Purpose:			Description:			History:		Wed Sep 19 19:35:59     2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window>	<grid>		<columns id="cs">			<column label="AA"/>			<column label="BB"/>			<column label="CC"/>		</columns>		<rows id="rows">			<row>				<label value="AA0"/>				<label value="BB0"/>				<label value="CC0"/>			</row>			<row>				<label value="AA1"/>				<label value="BB1"/>				<label value="CC1"/>			</row>			<row>				<label value="AA2"/>				<label value="BB2"/>				<label value="CC2"/>			</row>		</rows>	</grid>	<label id="info"/>	<zscript>	int cnt = 0;	</zscript>	<button label="count row">		<attribute name="onClick">{info.value = ++cnt + ": ";int sz = 0;for (Component c = rows.firstChild; c != null; c = c.nextSibling, ++sz) {	info.value += c.getFirstChild().getValue() + ", ";	if (c.parent != rows)		alert("Not matched");}if (sz != rows.getChildren().size())	alert("Size wrong");		}</attribute>	</button>	<button label="count backward">		<attribute name="onClick">{info.value = ++cnt + ": ";int sz = 0;for (Component c = rows.lastChild; c != null; c = c.previousSibling, ++sz) {	info.value += c.getFirstChild().getValue() + ", ";	if (c.parent != rows)		alert("Not matched");}if (sz != rows.getChildren().size())	alert("Size wrong");		}</attribute>	</button>	<button label="count by iter">		<attribute name="onClick">info.value = ++cnt + ": ";for (Iterator it = rows.children.iterator(); it.hasNext();) {	Component c = it.next();	info.value += c.getFirstChild().getValue() + ", ";	if (c.parent != rows)		alert("Not matched");}		</attribute>	</button>	<button label="count backward by iter">		<attribute name="onClick">info.value = ++cnt + ": ";for (ListIterator it = rows.children.listIterator(rows.children.size()); it.hasPrevious();) {	Component c = it.previous();	info.value += c.getFirstChild().getValue() + ", ";	if (c.parent != rows)		alert("Not matched");}		</attribute>	</button>	<button label="create row">		<attribute name="onClick">{Row r = new Row();r.appendChild(new Label("New " + rows.getChildren().size()));r.setParent(rows);		}</attribute>	</button></window>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -