📄 usemacro2.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><?component name="username" macroURI="macro.zul"?><!--usemacro.zul{{IS_NOTE Purpose: Description: History: Mon May 22 18:02:40 2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window id="wnd"> <username id="ua"/> <username label="Account"/> <button label="Create Manullay by Definition"> <attribute name="onClick">{ Component ua = page.getComponentDefinition("username", false).newInstance(page, null); ua.setParent(wnd); ua.applyProperties(); ua.afterCompose(); }</attribute> </button> <button label="Serialize Current Desktop"> <attribute name="onClick">{ import java.io.*; ByteArrayOutputStream boa = new ByteArrayOutputStream(); new ObjectOutputStream(boa).writeObject(desktop); new Label(boa.toByteArray().length+" bytes copied").setParent(vb); }</attribute> </button> <vbox id="vb"/></window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -