b30-1859568.zul

来自「ZK是一个Ajax Java Web框架」· ZUL 代码 · 共 80 行

ZUL
80
字号
<?xml version="1.0" encoding="UTF-8"?><!--B30-1859568.zul{{IS_NOTE	Purpose:			Description:			History:		Mon Dec 31 11:49:53 TST 2007, Created by jumperchen}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk	xmlns="http://www.zkoss.org/2005/zul"	xmlns:h="http://www.w3.org/1999/xhtml">	<window>		<zscript><![CDATA[				void rejig()		{		  Set set = listbox.getSelectedItems();		  Iterator it = set.iterator();		  StringBuffer b = new StringBuffer( "link" );		  while ( it.hasNext() )		    b.append(".").append( it.next().getLabel() );		    		  pdf.href = b.toString();		  xls.href = b.toString();		  txt.href = b.toString();		  xml.href = b.toString();		}	]]></zscript>		<listbox			id="listbox"			multiple="true"			checkmark="true"			onSelect="rejig();">			<listitem label="A" />			<listitem label="B" />			<listitem label="C" />			<listitem label="D" />		</listbox>		<h:p>				Check + uncheck items above to change href values of items below.		Item labels are NOT modified, but items shift by 1 space.		</h:p>		<toolbar>			<toolbarbutton				id="pdf"				href="xx"				label="PDF" />			<toolbarbutton				id="xls"				href="xx"				label="XLS" />			<toolbarbutton				id="txt"				href="xx"				label="TXT" />			<toolbarbutton				id="xml"				href="xx"				label="XML" />		</toolbar>	</window></zk>

⌨️ 快捷键说明

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