1.ZK 客户端和服务端之间的交互
官网对上图的解释如下:
When a ZK application runs on the server, it can have access to the backend resources, assemble UI with
components, listen to user's activity, and then manipulate components to update UI.
All are done at the server. The
synchronization of the states of the components between the browser and the server is done automatically by ZK and
transparently to the application.
When running at the server, the application can access full Java technology stack. User activities, including Ajax and
Server Push, are abstracted to event objects. UI are composed of POJO-like components. ZK is the most productive
approach to develop a modern Web application.
2. ZK UI开发可以用zul或纯java代码来实现
<window title="ZK Essentials" border="normal" width="250px">
<button label="Hello"/>
<button label="Good-bye "/>
</window>
等同于下面的
Window win = new Window();
win.setTitle("ZK Essentials");
win.setBorder("normal");
win.setWidth("250px");
Button helloBtn = new Button();
helloBtn.setLabel("Hello");
helloBtn.setParent(win);
Button byeBtn = new Button();
byeBtn.setLabel("Good-bye");
byeBtn.setParent(win);
3. ZK UI的创建
Components declared using ZUML in a ZUL file are
parsed by a ZK enhanced XML parser. The components
declared are created as
Plain Old Java Objects (POJO) in the JVM on the server. Suppose we have a ZUL page that
outlines the tree of components. Please see the following:
4. 在java中查找控件
Finding a Component Programmatically in Java
例子如下:
1. java 代码生成的UI
Window outerWin = new Window();
Button outerBtn = new Button();
btn.setParent(outerWin);
Window innerWin = new Window();
innerWin.setParent(outerWin);
Button innerBtn = new Button();
innerBtn.setParent(innerWin);
2. zul代码生成的UI
<window id="outerWin">
<button id="outerBtn">
<window id="innerWin">
<button id="innerBtn"/>
</window>
</window>
结构图如下:
在相同的ID空间中可以使用
getFellow 方法来获得控件
We can call the getFellow method on any component to access another component in the
same ID Space.
Window innerWin = (Window)outerWin.getFellow("innerWin");
可以使用的方法如下:
- 大小: 120.4 KB
- 大小: 97.7 KB
- 大小: 89.3 KB
- 大小: 86 KB
- 大小: 91.1 KB
- 大小: 152.8 KB
- 大小: 38.3 KB
分享到:
相关推荐
ZK开发手册,包括各种ZK控件的描述和使用
中控科技ZKTeco网络摄像头ZKIP3、ZKIR3、ZKMD3、ZKSD3系列网络摄像头资料 包括说明文档、帮助文档、zkivision客户端软件,ZKIP3、ZKIR3、ZKMD3、ZKSD3彩页说明,中控摄像头搜索软件、播放器等。监控设备安装定位标...
适合初学者的zk框架的开发手册,描述了各个控件的属性、运用、效果等等。
三款app日期控件,里面有三个例子,包括中文,因为例子
控件做的相当不错哦,推荐一下,ajax的框架
Biokey SDK4.0 完整开发包. 1、biokeySDK4.0指纹采集仪开发包.支持中控指纹采集ZK5000,ZK6000,zk7000,ZK8000美国U.are.U 4000/U.are.U 4000B等指纹采集仪. 2、图象清晰度前所未有,是业内清晰度最高的指纹开发包.
很好的页面显示解决框架 丰富的效果 绝对是页面显示层的很好方案
中控指纹采集器 本驱动程序升级优化采集器参数,更新指纹探测算法,提高取像性能,支持ZK6000B采集器。 兼容性 ...对UareU指纹仪,控件属性SensorIndex设置为0,对ZK6000的SensorIndex属性设置为1000.
有详细的开发示例,示例C#本人已调试通过,生成里改成“X86”模式即可。
但原来的程序如果支持多个指纹仪,不建议使用ZK6000,因为该指纹仪不能在一台计算机上同时接入两个,但ZK6000可以和UarU指纹仪混用程序需要做以下改动,对UareU指纹仪,控件属性SensorIndex设置为0,对ZK6000的...
综合安防管理平台 安装部署手册
Finger Print Application for ZK4000 Device in Delphi Language
天空组态软件专为智能仪表开发设计。能快速开智能仪表监控系统。方便修改界面,第三方硬件整合。 能实现各种硬件组态、在线温度报警、温度远程控制、批量工业控制、温湿度数据在线...http://17zk.com.cn/SkyScada.html
jax框架 ZK.rar Java图书馆管理系统源程序.rar Java图片倒影效果实例源码.rar Java图片翻折,将图像压扁.rar Java坦克大战网络对战版源代码.rar Java声音播放程序源代码.rar JAVA实现CLDC与MIDP底层编程的代码.rar ...
Ajax框架 ZK.rar Java图书馆管理系统源程序.rar Java图片倒影效果实例源码.rar Java图片翻折,将图像压扁.rar Java坦克大战网络对战版源代码.rar Java声音播放程序源代码.rar JAVA实现CLDC与MIDP底层编程的代码.rar ...
c# 获得数据库数据,然后将得到的数据导出到execl格式中,无需office控件
主要对于初入数据仓库行业的开发人员有一定帮助,主要讲解etl常用控件的用法
FastStone Capture是一款经典好用的屏幕截图软件,FastStone Capture具有图像编辑、取色器、屏幕放大镜、屏幕录像、截屏、图像浏览/ 编辑、量尺寸等功能,可以捕捉全屏图像,或者活动窗口、窗口内的控件对象截图,...
Java语言开发的简洁实用的日期选择控件,源码文件功能说明: [DateChooser.java] Java 日期选择控件(主体类) [public] [TablePanel.java] 日历表格面板 [ConfigLine.java] 控制条类 [RoundBox.java] ...
Java日期选择控件完整源代码 14个目标文件 内容索引:JAVA源码,系统相关,日历,日期选择 Java语言开发的简洁实用的日期选择控件,源码文件功能说明: [DateChooser.java] Java 日期选择控件(主体类) [public] ...