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

📄 openevent.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* OpenEvent.java{{IS_NOTE	Purpose:			Description:			History:		Fri Jul  8 17:00:03     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.event;import org.zkoss.zk.ui.Component;/** * Represents an event cause by user's openning or closing * something at the client. *  * @author tomyeh * @see org.zkoss.zk.ui.ext.client.Openable */public class OpenEvent extends Event {	private final boolean _open;	private final Component _ref;	/** Constructs an onOpen event.	 * @param open whether the new status is open	 */	public OpenEvent(String name, Component target, boolean open) {		this(name, target, open, null);	}	/** Constructs an onOpen event for a context menu, a tooltip or a popup.	 *	 * @param target the component being opened	 * @param ref the component that causes target to be opened.	 */	public OpenEvent(String name, Component target, boolean open,	Component ref) {		super(name, target);		_open = open;		_ref = ref;	}	/** Returns the reference that is the component causing {@link #getTarget}	 * to be opened.	 *	 * <p>It is null, if the open event is not caused by opening	 * a context menu, a tooltip or a popup.	 */	public Component getReference() {		return _ref;	}	/** Returns whether it causes open.	 */	public final boolean isOpen() {		return _open;	}}

⌨️ 快捷键说明

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