b30-1882432.zul

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

ZUL
44
字号
<?xml version="1.0" encoding="UTF-8"?><!--B30-1882432.zul{{IS_NOTE	Purpose:			Description:			History:		Wed Apr  9 15:58:27 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:n="http://www.zkoss.org/2005/zk/native">	<n:p>Please scroll down the end of the listbox, and then sort(click on the header) the listbox.</n:p>	<n:p>You should see that the scroll bar must stay on the same place(Opera Only).</n:p>	<zscript>		List items = new org.zkoss.zkdemo.userguide.BigList(100);		ListModel strset = new ListModelList(items); ListitemRenderer		render = new ListitemRenderer() { public void render(Listitem		item, Object data) { new Listcell("column1 - " +		item.getIndex()).setParent(item); new Listcell("column2 - " +		item.getIndex()).setParent(item); new Listcell("column3 - " +		item.getIndex()).setParent(item); } };	</zscript>	<listbox id="list" width="600px" rows="20" model="&#36;{strset}"		itemRenderer="${render}">		<attribute name="onCreate">			list.renderItem(list.getItemAtIndex(50));		</attribute>		<listhead sizable="true">			<listheader label="Load on Demend1" sort="auto" />			<listheader label="Load on Demend2" sort="auto" />			<listheader label="Load on Demend3" sort="auto" />		</listhead>	</listbox></zk>

⌨️ 快捷键说明

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