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

📄 b30-1926092.zul

📁 ZK是一个Ajax Java Web框架
💻 ZUL
字号:
<?xml version="1.0" encoding="UTF-8" ?>

<!-- B30-1926092.zul
-->
<zk
	xmlns="http://www.zkoss.org/2005/zul"
	xmlns:h="http://www.w3.org/1999/xhtml">

	<window>

		<popup id="myPopup">
			<vbox>
				<label value="Label" />
				<textbox
					value="text"
					cols="40"
					rows="10" />
			</vbox>
		</popup>

		<h:h2>Treeitem/listitem popup/context bug</h:h2>
		<h:p>Left mouse popup on Treeitem never stays up.</h:p>
		<h:p>Right mouse context on Treeitem only stays up if you click on the selected item. If Treeitem is not currently selected, then context popup does not stay up.</h:p>

		<tree
			id="tree"
			pageSize="-1"
			rows="20">
			<treecols>
				<treecol label="A" />
				<treecol label="B" />
				<treecol label="C" />
				<treecol label="D" />
			</treecols>
			<treechildren>
				<treeitem
					popup="myPopup"
					context="myPopup">
					<treerow>
						<treecell label="Item 1.a" />
						<treecell label="Item 1.b" />
						<treecell label="Item 1.c" />
						<treecell label="Item 1.d" />
					</treerow>
					<treechildren>
						<treeitem
							popup="myPopup"
							context="myPopup">
							<treerow>
								<treecell label="Item 2.a" />
								<treecell label="Item 2.b" />
								<treecell label="Item 2.c" />
								<treecell label="Item 2.d" />
							</treerow>
							<treechildren>
								<treeitem
									popup="myPopup"
									context="myPopup">
									<treerow>
										<treecell label="Item 3.a" />
										<treecell label="Item 3.b" />
										<treecell label="Item 3.c" />
										<treecell label="Item 3.d" />
									</treerow>
								</treeitem>
							</treechildren>
						</treeitem>
					</treechildren>
				</treeitem>
			</treechildren>
		</tree>

	<listbox>
		<listitem label="Right click me" 
					popup="myPopup"
					context="myPopup"/>
	</listbox>
	</window>
</zk>

⌨️ 快捷键说明

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