Suggested case list:
Using timer to refresh a grid
383guest172.69.33.12125nk0uiMay 7, 2020 7:23:47 AMlinkuser model to move item to another listbox
120guest162.158.193.148d0n3krApr 2, 2020 5:28:28 AMlinkDisabled list item row passed to VM-1981
296fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:44 PMlinkDisabled list item row passed to VM-1981
295fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:16 PMlinkDisabled list item row passed to VM-1981
294fatih123160.83.36.13225nk0uiFeb 13, 2018 3:30:44 PMlinkgrid sample with ListModel/RowRenderer
816guest80.82.2.1312vah9ajFeb 21, 2017 11:42:21 AMlinkgrid sample with ListModel/RowRenderer
809guest175.98.113.1622vah9ajJan 26, 2017 9:19:33 AMlinkgrid sample with ListModel/RowRenderer
196guest79.185.142.402vah9ajApr 26, 2014 10:53:57 PMlinkgrid sample with ListModel/RowRenderer
195guest79.185.142.402vah9ajApr 26, 2014 10:53:54 PMlinkgrid sample with ListModel/RowRenderer
194guest79.185.142.402vah9ajApr 26, 2014 10:53:51 PMlinkgrid sample with ListModel/RowRenderer
193guest79.185.142.402vah9ajApr 26, 2014 10:53:48 PMlinkgrid sample with ListModel/RowRenderer
192guest79.185.142.402vah9ajApr 26, 2014 10:53:44 PMlinkgrid sample with ListModel/RowRenderer
191guest79.185.142.402vah9ajApr 26, 2014 10:53:40 PMlinkHierarchy table without using ZK PE/EE
1aaknai151.28.135.2131s871daJul 29, 2013 11:02:46 PMlinkgrid sample with ListModel/RowRenderer
128aaknai151.28.135.2132vah9ajJul 29, 2013 7:20:00 PMlinkuser model to move item to another listbox
1TonyQ114.25.109.94d0n3krApr 21, 2012 10:43:27 AMlinkUsing timer to refresh a grid
1TonyQ220.133.44.3725nk0uiFeb 17, 2012 3:17:34 AMlinkFire a event from child iframe
1TonyQ220.133.44.372eupjotFeb 3, 2012 5:04:52 AMlinkTextbox input restriction sample
1TonyQ72.21.245.2431b3nlr0Dec 20, 2011 10:09:10 AMlinkTest web core taglib in ZUL
1TonyQ198.203.175.175ofqkemDec 17, 2011 3:36:08 AMlinkLatest 10 Fiddles :
frozen scroll
1guest172.69.33.373j82a06Mar 28, 2024 8:03:44 AMlinkGmarker and forEach
1guest172.68.67.1362lpvk1hMar 28, 2024 7:29:50 AMlinkGmaps
1guest172.68.67.1363dvghg5Mar 28, 2024 7:28:20 AMlinkgrid demo
5guest172.71.158.2371grhhu3Mar 27, 2024 7:46:36 AMlinkgrid demo
4guest172.71.158.2371grhhu3Mar 27, 2024 7:46:25 AMlinkgrid demo
3guest172.71.154.181grhhu3Mar 27, 2024 7:44:16 AMlinkgrid demo
2guest172.71.154.181grhhu3Mar 27, 2024 7:43:58 AMlinkgrid demo
1guest172.71.154.191grhhu3Mar 27, 2024 7:42:54 AMlinkScrollable Panel
13guest172.69.223.193ctlblaMar 27, 2024 5:31:21 AMlinkScrollable Panel
12guest172.69.223.194ctlblaMar 27, 2024 5:30:56 AMlinkTest BFM Navbar
33NilsR162.158.89.1012bsoj99Jun 11, 2021 11:33:10 AMlinkresources
index.zulzul<zk>
<style src="style.css"/>
<checkbox label="Collapsed" checked="false">
<attribute name="onCheck"><![CDATA[
navBar.setCollapsed(event.isChecked());
]]></attribute>
</checkbox>
<zscript><![CDATA[
List files = new ArrayList();
for (int i = 1; i <= 5; i++) {
files.add("Datei " + i);
}
]]></zscript>
<div apply="pkg$.TestComposer">
<borderlayout height="1080px">
<center border="0">
<borderlayout>
<west maxsize="600" size="10%" border="0">
<div style="background:#2C4766; color: white" vflex="1">
<button iconSclass="z-icon-reorder" label="" style="font-size: 14px; background: none !important; color: white; border: none !important; font-weight: bold; box-shadow: none; width:25%">
<attribute name="onClick"><![CDATA[
navBar.setCollapsed(event.isClicked());
]]></attribute>
</button>
<div class="circle" style="margin: 10px !important; display:block; border: 1px solid white">
<div style="padding-left: 14px; padding-top: 18px">NR</div>
</div>
<navbar orient="vertical" width="150px" id="navBar">
<navitem label="Dashboard" iconSclass="z-icon-home" />
<navitem label="Favoriten" iconSclass="z-icon-heart" />
<nav label="Datenräume" iconSclass="z-icon-cloud">
<navitem label="Meine Dateien" iconSclass="z-icon-user"/>
<navitem label="Projekt xyz" iconSclass="z-icon-random"/>
<navitem label="Vertrieb" iconSclass="z-icon-shopping-cart"/>
<navitem label="Mehr anzeigen" style="text-decoration: underline;"/>
</nav>
<navitem label="Postbox" iconSclass="z-icon-envelope" />
<navitem label="Kontakte" iconSclass="z-icon-group"/>
<navitem label="Administration" iconSclass="z-icon-cogs"/>
<navitem label="Info" iconSclass="z-icon-info-circle"/>
</navbar>
</div>
</west>
<center border="0">
<borderlayout>
<west title="Verzeichnisbaum" size="15%" collapsible="true" splittable="true">
<div style="margin: 10px">
<label value="Ordner 1"/>
</div>
</west>
<center>
<borderlayout>
<north>
<div>
<div style="margin-bottom: 5px; width: 65%; display: inline-block">
<button label="xyza" iconSclass="z-icon-folder" style="background: none !important; color: black; border: none !important; font-size: 16px; font-weight: bold; box-shadow: none;margin-bottom: 0px;"/>
<separator/>
<button style="padding: 8px 16px !important;" label="Datei hochladen"/>
<listbox mold="select">
<listitem label="Anlegen" selected="true"/>
<listitem label="Ordner anlegen" />
<listitem label="Excel anlegen" />
<listitem label="Word anlegen" />
<listitem label="PowerPoint anlegen" />
</listbox>
<listbox mold="select" style="text-align-last: center;">
<listitem label="..." selected="true"/>
<listitem label="Herunterladen" />
<listitem label="Öffnen" />
</listbox>
</div>
<div style="width: 25%; display: inline-block; vertical-align: super;">
<div class="circle">
<div style="padding-left: 8px; padding-top: 18px">public</div>
</div>
<div class="circle">
<div style="padding-left: 14px; padding-top: 18px">NR</div>
</div>
<div class="circle">
<div style="padding-left: 14px; padding-top: 18px">WK</div>
</div>
<div class="circle">
<div style="padding-left: 14px; padding-top: 18px">+3</div>
</div>
</div>
<div style="width: 8%; display: inline-block; vertical-align: super;">
<listbox mold="select" style="text-align-last: center; width: 120px;">
<listitem label="Ansicht" selected="true"/>
<listitem label="Listenansicht" />
<listitem label="Kachelansicht" />
</listbox>
</div>
</div>
</north>
<center>
<listbox id="listbox" width="100%" nonselectableTags="" checkmark="true" multiple="true">
<listhead>
<listheader label="Name" width="50%"/>
<listheader label="Typ" width="10%"/>
<listheader label="Größe" width="10%%"/>
<listheader label="Letzte Änderung" width="15%"/>
<listheader label="Ersteller" width="15%"/>
</listhead>
<zk forEach="${files}">
<listitem>
<listcell label="${each}"></listcell>
<listcell>
<label value="Datei"/>
</listcell>
<listcell>
<label value="10MB"/>
</listcell>
<listcell>
<label value="26.10.2019 10:13"/>
</listcell>
<listcell>
<label value="Pan, Peter"/>
</listcell>
</listitem>
</zk>
</listbox>
</center>
<east size="20%">
<div style="margin: 10px">
<label value="Datei 1" style="font-weight: bold; font-size:20px; margin: 10px;"/><separator/>
<textbox style="margin-top: 20px; margin-bottom: 20px; margin-left: 10px;" rows="1" hflex="1" value="https://test.system/rest/share/34gh5j423a213"></textbox>
<div class="container"><label value="Attribute"></label></div>
<div style="margin-top: 10px;"><label style="margin-right: 15px;margin-left: 10px;" value="Virenprüfung"/><checkbox mold="default" checked="true" style="margin-right: 20px;" disabled="true"/><label value="19.05.2019"/><separator/>
<label style="margin-right: 25px;margin-left: 10px;" value="Öffentlich"/><checkbox style="margin-left: 5px;" mold="switch" checked="false" /></div><separator/><separator/><separator/>
<div class="container"><label value="Persönliche Einstellungen"></label></div>
<div style="margin-top: 10px; margin-left: 10px;"><label value="Erinnerung" style="margin-right: 5px;"/>
<checkbox mold="switch" checked="true" style="margin-right: 20px;"/><label value="23.05.2019"/></div><separator/>
<label width="80px" style="margin-left: 10px;" value="Beobachten"/>
<checkbox mold="switch" checked="false"/><separator/>
<label style="margin-right: 15px;margin-left: 10px;" value="Favoriten"/>
<checkbox mold="switch" checked="false"/><separator/><separator/><separator/>
<div class="container"><label value="Aktionen"></label></div>
<button label="Herunterladen" style="background: none !important; color: black; width:100%; margin-bottom: 0px;"/>
<button label="Öffnen" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
<button label="Link senden" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
<button label="Kopieren" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
<button label="Verschieben" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
<button label="Umbennen" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
<button label="Protokoll anzeigen" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
<button label="Versionen anzeigen" style="background: none !important; color: black;width:100%; margin-bottom: 0px;"/>
</div>
</east>
</borderlayout>
</center>
</borderlayout>
</center>
</borderlayout>
</center>
</borderlayout>
</div>
</zk>
TestComposer.javajava
import java.util.List;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.DropEvent;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zkmax.zul.Navbar;
import org.zkoss.zkmax.zul.Navitem;
public class TestComposer extends SelectorComposer<Component>{
@Wire
Navbar navBar;
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
}
@Listen("onDrop = navitem")
public void onNavItemDrop(DropEvent event) {
final Navitem dragged = (Navitem) event.getDragged();
final Navitem dropped = (Navitem) event.getTarget();
final List<Component> list = navBar.getChildren();
for (final Component component : list){
if(component instanceof Navitem){
final Navitem currentNavitem = (Navitem) component;
if(currentNavitem.equals(dropped)){
navBar.insertBefore(dragged, dropped);
return;
} else if(currentNavitem.equals(dragged)){
navBar.insertBefore(dropped, dragged);
return;
}
}
}
}
}
style.csscss.horizontal, .vertical {
min-height: 300px;
background-color: #EAE7E7;
}
.z-navitem-content, .z-nav-content {
color: white;
font-size: 18px;
}
.z-nav .z-navitem-content {
padding: 6px 18px;
}
.z-navbar>ul ul .z-navitem:last-child span{
text-decoration: underline;
}
.z-listheader {
background: #00A5E1;
border-bottom: #00A5E1;
border-left: #00A5E1;
}
button {
margin: 8px;
padding: 4px !important;
background-color: #00A5E1 !important;
}
.circle {
width: 50px;
height: 50px;
border-radius: 25px;
background: none;
border: 1px solid black;
margin: 4px;
display: inline-block;
}
.z-navbar {
position: absolute;
border: none !important;
}
.z-navbar ul {
background: none;
}
.z-navbar-horizontal li {
min-width: 145px;
}
.z-navbar-vertical {
width: 160px;
height: 300px;
}
.z-navbar-vertical.z-navbar-collapsed {
width: inherit;
}
.z-navbar-horizontal.z-navbar-collapsed {
width: 580px;
}
.content {
padding: 18px 22px;
}
.vertical .content {
padding-left: 182px;
}
.vertical .content.collapsed {
padding-left: 75px;
}
.horizontal .content {
padding-top: 50px;
}
.content .title {
margin: 0;
}
.content .subTitle {
margin: 0;
}
.container {
color: #777;
padding: 10px 8px 20px 10px;
cursor: pointer;
letter-spacing: 0.5px;
height: 18px;
border-bottom: 3px solid rgba(15, 139, 240, 0.4);
}
.container span {
font-size: 14px;
}
.z-select {
margin: 8px;
}