This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zkoss.zkmvc.example.crud; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.ModelMap; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.zkoss.zkmvc.core.ViewModelMap; | |
import org.zkoss.zkmvc.core.annotation.ViewModelAttribute; | |
@Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<window id="win" title="Car List" width="650px" border="normal" | |
apply="demo.getting_started.grid.CarListController"> | |
<style> | |
.z-row.z-detail-faker { | |
background-color: #FAFAFA; | |
} | |
.z-grid-odd.z-detail-faker .z-grid-odd td.z-row-inner{ | |
background-color: #F7F7F7; | |
} | |
.z-grid-odd.z-detail-faker td.z-row-inner{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<zk> | |
<hbox> | |
<vbox> | |
Listbox | |
<window border="normal" apply="org.zkoss.bind.BindComposer" width="400px" | |
title="listbox single selection" | |
viewModel="@id('vm') @init('test.SelectionVM')"> | |
<listbox model="@bind(vm.people)" | |
selectedItem="@bind(vm.selectedPerson)"> | |
<template name="model"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testDownload() throws Exception { | |
DesktopAgent desktop = Zats.newClient().connect("/~./basic/download.zul"); | |
// no download | |
assertTrue(desktop.getDownloadable() == null); | |
desktop.query("#dummy").click(); | |
assertTrue(desktop.getDownloadable() == null); | |
// download from file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zkoss.zktest.bind.issue; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.GlobalCommand; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation3 { | |
String value = "A"; | |
F01141LongOperation3Worker worker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zkoss.zktest.bind.issue; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation2 { | |
String value = "Stoped"; | |
F01141LongOperation2WorkingTask wt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zkoss.zktest.bind.issue; | |
import org.zkoss.bind.annotation.BindingParam; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation1 { | |
String value = "A"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zkoss.zktest.bind.issue; | |
import org.zkoss.bind.annotation.BindingParam; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; | |
public class F01141LongOperation0 { | |
String value = "A"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<zk> | |
<hbox apply="org.zkoss.bind.BindComposer" vflex="1" hflex="1"> | |
<!-- common --> | |
<template name="header">Header: ${each}</template> | |
<template name="footer">Footer: ${each}</template> | |
<!-- different body --> | |
<template name="body"> | |
<window title="This a body1" width="100px"> | |
<button label="click me1" onClick='alert("Ooops")' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zkoss.mvvm.examples.duallistbox; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import org.zkoss.bind.annotation.Command; | |
import org.zkoss.bind.annotation.NotifyChange; |