📄 bandpopup.java
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -