removedesktopcommand.java
来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 51 行
JAVA
51 行
/* RemoveDesktopCommand.java{{IS_NOTE Purpose: Description: History: Wed Mar 15 11:02:26 2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 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.au.impl;import org.zkoss.lang.Objects;import org.zkoss.zk.mesg.MZk;import org.zkoss.zk.ui.UiException;import org.zkoss.zk.ui.sys.WebAppCtrl;import org.zkoss.zk.ui.impl.AbortByRemoveDesktop;import org.zkoss.zk.au.AuRequest;import org.zkoss.zk.au.Command;/** * A command to remove the specified desktop. * * @author tomyeh */public class RemoveDesktopCommand extends Command { public RemoveDesktopCommand(String evtnm, int flags) { super(evtnm, flags); } protected void process(AuRequest request) { final String[] data = request.getData(); if (data != null && data.length != 0) throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] {Objects.toString(data), this}); ((WebAppCtrl)request.getDesktop().getWebApp()) .getUiEngine().setAbortingReason(new AbortByRemoveDesktop()); //to avoid surprise, we don't remove it now //rather, it is done by AbortByRemoveDesktop.getResponse }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?