org.fujion.component.Window.setCloseAction()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中org.fujion.component.Window.setCloseAction()方法的一些代码示例,展示了Window.setCloseAction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setCloseAction()方法的具体详情如下:
包路径:org.fujion.component.Window
类名称:Window
方法名:setCloseAction

Window.setCloseAction介绍

[英]Sets the CloseAction to be taken when the window is closed.
[中]设置窗口关闭时要执行的关闭操作。

代码示例

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

@Override
public void afterInitialized(BaseComponent comp) {
  window = (Window) comp;
  window.setCloseAction(CloseAction.HIDE);
  comp.setAttribute("controller", this);
  bringToFront = comp.getPage().getAttribute(ATTR_BRING_TO_FRONT, true);
  layoutChangedEvent = new LayoutChangedEvent(comp, null);
  contextMenu.setListener(comp);
  clipboard.addListener(comp);
  comp.getPage().addEventListener("register unregister", layoutListener);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.help.core

root.setCloseAction(CloseAction.DESTROY);
page.setTitle("Help");
InvocationRequestQueue proxyQueue = InvocationRequestQueueRegistry.getInstance().get("help" + proxyId);
root.setCloseAction(CloseAction.HIDE);

相关文章