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

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

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

Window.setParent介绍

暂无

代码示例

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

/**
 * Show the dialog, loading the specified document.
 *
 * @param document The XML document.
 * @param parent If specified, show viewer in embedded mode. Otherwise, show as modal dialog.
 * @return The dialog.
 */
public static Window showXML(Document document, BaseUIComponent parent) {
  Map<String, Object> args = Collections.singletonMap("document", document);
  boolean modal = parent == null;
  Window dialog = PopupDialog.show(XMLConstants.VIEW_DIALOG, args, modal, modal, modal, null);
  
  if (parent != null) {
    dialog.setParent(parent);
  }
  
  return dialog;
}

代码示例来源:origin: org.fujion/fujion-core

private void doShow(Mode mode, IEventListener closeListener) {
  Assert.state(this.closeListener == null, () -> "Window is already open");
  if (getParent() == null) {
    setParent(ExecutionContext.getPage());
  }
  this.closeListener = closeListener == null ? dummyListener : closeListener;
  setMode(mode);
  setVisible(true);
  fireEvent("open");
}

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

Window parent = new Window(); // Temporary parent in case materialize fails, so can cleanup.
Page currentPage = ExecutionContext.getPage();
parent.setParent(currentPage);
Window window = null;
    window.setParent(null);
    BaseComponent child;
    window.setParent(currentPage);
  } else { // Otherwise, use the temp parent as the window
    window = parent;

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

Window window = getPopupWindow();
window.setTitle(popupData.getTitle());
window.setParent(currentPage);
String pos = getPosition();
window.addStyle("left", pos);

相关文章