desktopctrl.java
来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 90 行
JAVA
90 行
/* DesktopCtrl.java{{IS_NOTE Purpose: Description: History: Fri Jul 29 08:47:19 2005, Created by tomyeh}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT This program is distributed under GPL Version 2.0 in the hope that it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zk.ui.sys;import org.zkoss.zk.ui.Session;import org.zkoss.zk.ui.Page;import org.zkoss.zk.ui.Component;import org.zkoss.zk.ui.Execution;import org.zkoss.zk.ui.UiException;/** * An addition interface to {@link org.zkoss.zk.ui.Desktop} * for implementation. * * <p>Note: applications shall never access this interface. * * @author tomyeh */public interface DesktopCtrl { /** Returns the request queue. */ public RequestQueue getRequestQueue(); /** Returns the next available ID which is unique in the whole desktop. * * <p>{@link Page} uses this method to generate ID automatically. */ public int getNextId(); /** Adds a component to this page. * <p>It is used internally and developers shall not invoke it * explicityly. */ public void addComponent(Component comp); /** Removes a component to this page. * <p>It is used internally and developers shall not invoke it * explicityly. */ public void removeComponent(Component comp); /** Adds a page to this desktop. * It must be called when a page is created. * * <p>This is one of the only few method you could access * before activating an execution. */ public void addPage(Page page); /** Removes a page from this desktop. * <p>NOTE: once a page is removed, you can NOT add it back. * You shall just GC it. */ public void removePage(Page page); /** Sets the execution (used to represent a lock). * Called only internally (by UIEngine's implementation to activate * an execution). */ public void setExecution(Execution exec); /** Sets the bookmark when receiving the onBookmarkChanged command * from the client. */ public void setBookmarkByClient(String name); /** Notification that the session, which owns this desktop, * is about to be passivated (aka., serialized). */ public void sessionWillPassivate(Session sess); /** Notification that the session, which owns this desktop, * has just been activated (aka., deserialized). */ public void sessionDidActivate(Session sess);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?