⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 composer.java

📁 ZK 基础介绍 功能操作 模块 结合数据库操作
💻 JAVA
字号:
/* Composer.java{{IS_NOTE	Purpose:			Description:			History:		Thu Oct 25 18:24:27     2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 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.util;import org.zkoss.zk.ui.Component;/** * Represents a composer to initialize a component (or a component of tree) * when ZK loader is composing a component. * It is the controller in the MVC pattern, while the component is the view. * * <p>To initialize a component, you can implement this interface * and then specify the class or an instance of it with the apply attribute * as follows. * *<pre><code>&lt;window apply="my.MyComposer"/&gt; *&lt;window apply="${a_composer}"/&gt;</code></pre> * * <p>Then, ZK loader will * <ol> * <li>Invoke {@link ComposerExt#doBeforeCompose}, if the composer * also implements {@link ComposerExt}.</li> * <li>Create the component (by use of * {@link org.zkoss.zk.ui.sys.UiFactory#newComponent}, which creates * and initializes the component accordingly). * <li>Invokes {@link ComposerExt#doBeforeComposeChildren}, if * {@link ComposerExt} is also implemented.</li> * <li>Composes all children, if any, of this component defined in * the ZUML page.</li> * <li>Invokes {@link #doAfterCompose} after all children are, if any, * composed.</li> * <li>Posts the onCreate event if necessary.</li> * </ol> * * <p>To intercept the lifecycle of the creation of a page, * implement {@link Initiator} and specify the class with the init directive. * * <p>Note: {@link org.zkoss.zk.ui.ext.AfterCompose} has to be implemented * as part of a component, while {@link Composer} is a controller used * to initialize a component (that might or might not implement * {@link org.zkoss.zk.ui.ext.AfterCompose}). * * @author tomyeh * @since 3.0.0 * @see org.zkoss.zk.ui.ext.AfterCompose * @see ComposerExt * @see Initiator */public interface Composer {	/** Invokes after ZK loader creates this component,	 * initializes it and composes all its children, if any.	 * @param comp the component has been composed	 */	public void doAfterCompose(Component comp) throws Exception;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -