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

📄 popup.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* Popup.java{{IS_NOTE	Purpose:			Description:			History:		Fri Sep 23 09:49:49     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.zul;import org.zkoss.lang.Objects;import org.zkoss.xml.HTMLs;import org.zkoss.zk.ui.event.Events;import org.zkoss.zk.ui.ext.render.ZidRequired;import org.zkoss.zul.impl.XulElement;/** * A container that is displayed as a popup. * The popup window does not have any special frame. * Popups can be displayed when an element is clicked by assigning * the id of the popup to either the {@link #setPopup}, * {@link #setContext} or {@link #setTooltip} attribute of the element. * * <p>Default {@link #getSclass}: ctxpopup. * * @author tomyeh */public class Popup extends XulElement {	public Popup() {		super.setVisible(false);		if (!(this instanceof Menupopup)) setSclass("ctxpopup");	}	//super//	/** Not allowd. */	public boolean setVisible(boolean visible) {		throw new UnsupportedOperationException("You cannot make it visible manually");	}	public String getOuterAttrs() {	//Note: don't generate z.type here because Menupopup's z.type diff		final StringBuffer sb = appendAsapAttr(null, Events.ON_OPEN);		final String attrs = super.getOuterAttrs();		return sb != null ? sb.append(attrs).toString(): attrs;	}	//-- ComponentCtrl --//	protected Object newExtraCtrl() {		return new ExtraCtrl();	}	/** A utility class to implement {@link #getExtraCtrl}.	 * It is used only by component developers.	 */	protected class ExtraCtrl extends XulElement.ExtraCtrl implements ZidRequired {		//ZidRequired//		public boolean isZidRequired() {			return !(getParent() instanceof Menu);		}	}}

⌨️ 快捷键说明

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