?? java.zul
字號:
<?xml version="1.0" encoding="UTF-8"?><!--java.zul{{IS_NOTE Purpose: Description: History: Tue Nov 18 14:47:05 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window id="demo" apply="org.zkoss.zkdemo.userguide.DemoWindowComposer"> <html><![CDATA[ <h4>Script in Java</h4> <p>The zscript element is a special element to define the scripting codes
that will be evaluated when a ZUML page is rendered. By default, the scripting
language is assumed to be Java.</p> ]]></html> <separator/> <tabbox width="100%" tabscroll="false"> <tabs> <tab id="demoView" label="Demo"/> <tab id="srcView" label="View Source"/> </tabs> <tabpanels> <tabpanel> <window id="view"> </window> </tabpanel> <tabpanel> <panel> <panelchildren> <textbox id="codeView" class="code" rows="20" width="95%"> <attribute name="value"><![CDATA[<window id="win" title="Script in Java" width="100%" border="normal">
<zscript language="java">
FCKeditor fck = new FCKeditor();
fck.setValue("Hello Java");
fck.setParent(win);
fck.addEventListener(Events.ON_CHANGE, new EventListener() {
public void onEvent(Event event) throws Exception{
alert(((InputEvent)event).getValue());
}
});
</zscript></window> ]]></attribute> </textbox> </panelchildren> <toolbar mold="panel">
<button id="tryBtn" label="Try me!"/> <button id="reloadBtn" label="Reload" height="18px"/> </toolbar> </panel> </tabpanel> </tabpanels> </tabbox></window>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -