bandpopup.java

来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 48 行

JAVA
48
字号
/* Bandpopup.java{{IS_NOTE	Purpose:			Description:			History:		Mon Mar 20 12:31:44     2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT*/package org.zkoss.zul;import org.zkoss.zk.ui.Component;import org.zkoss.zk.ui.UiException;import org.zkoss.zul.impl.XulElement;/** * The popup that belongs to a {@link Bandbox} instance. * * <p>Developer usually listen to the onOpen event that is sent to * {@link Bandbox} and then creates proper components as children * of this component. * * @author tomyeh */public class Bandpopup extends XulElement {	public Bandpopup() {	}	//-- super --//	public boolean setVisible(boolean visible) {		if (!visible)			throw new UnsupportedOperationException("Use Bandbox.setOpen(false) instead");		return true;	}	public void setParent(Component parent) {		if (parent != null && !(parent instanceof Bandbox))			throw new UiException("Bandpopup's parent must be Bandbox");		super.setParent(parent);	}}

⌨️ 快捷键说明

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