📄 b30-1859568.zul
字号:
<?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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -