com.vaadin.ui.UI.removeWindow()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(209)

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

UI.removeWindow介绍

[英]Remove the given subwindow from this UI. Since Vaadin 6.5, Window.CloseListeners are called also when explicitly removing a window by calling this method. Since Vaadin 6.5, returns a boolean indicating if the window was removed or not.
[中]从此UI中删除给定的子窗口。从瓦丁6.5开始,窗户。当通过调用此方法显式删除窗口时,也会调用CloseListeners。自Vaadin 6.5以来,返回一个布尔值,指示窗口是否已删除。

代码示例

代码示例来源:origin: com.vaadin/vaadin-server

/**
 * Method that handles window closing (from UI).
 *
 * <p>
 * By default, windows are removed from their respective UIs and thus
 * visually closed on browser-side.
 * </p>
 *
 * <p>
 * To react to a window being closed (after it is closed), register a
 * {@link CloseListener}.
 * </p>
 */
public void close() {
  UI uI = getUI();
  // Don't do anything if not attached to a UI
  if (uI != null) {
    // window is removed from the UI
    uI.removeWindow(this);
  }
}

代码示例来源:origin: io.permazen/permazen-vaadin

/**
 * Close this window.
 */
public void closeWindow() {
  this.ui.removeWindow(this);
}

代码示例来源:origin: org.jsimpledb/jsimpledb-vaadin

/**
 * Close this window.
 */
public void closeWindow() {
  this.ui.removeWindow(this);
}

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(ServerWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(NewBusinessStreamWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(FilterWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(NotificationWindow.this);
  }
});

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

/**
 * Discard the changes and close the popup.
 */
protected void discard() {
  UI.getCurrent().removeWindow(window);
}

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(StartupControlConfigurationWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(NewRoleWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    UI.getCurrent().removeWindow(NewPolicyWindow.this);
  }
});

代码示例来源:origin: eclipse/hawkbit

/**
 * Discard the changes and close the popup.
 */
protected void discard() {
  UI.getCurrent().removeWindow(window);
}

代码示例来源:origin: OpenNMS/opennms

@Override
public void buttonClick(Button.ClickEvent event) {
  if (event.getButton() == okayButton) parentWindow.removeWindow(DialogWindow.this);
}

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

public void close() {
  m_fieldGroup.unbind();
  UI.getCurrent().removeWindow(this);
}
public void load(Audit audit) {

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

@Override
  public void itemClick(ItemClickEvent itemClickEvent) 
  {
   flow = (Flow)itemClickEvent.getItemId();
   UI.getCurrent().removeWindow(PolicyAssociationFlowSearchWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

@Override
  public void itemClick(ItemClickEvent itemClickEvent) 
  {
   module = (Module)itemClickEvent.getItemId();
   UI.getCurrent().removeWindow(PolicyAssociationModuleSearchWindow.this);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

@Override
  public void itemClick(ItemClickEvent itemClickEvent) 
  {
   businessStream = (BusinessStream)itemClickEvent.getItemId();
   UI.getCurrent().removeWindow(PolicyAssociationBusinessStreamSearchWindow.this);
  }
});

代码示例来源:origin: KrailOrg/krail

/**
 * Closes the window if open.
 */
public void close() {
  if (DIALOG_DEFAULT_TRANSITION_LISTENER == null || (DIALOG_DEFAULT_TRANSITION_LISTENER != null && DIALOG_DEFAULT_TRANSITION_LISTENER.close(this))) {
    UI.getCurrent().removeWindow(window);
  }
}

代码示例来源:origin: com.vaadin/vaadin-server

parent.removeWindow(window);

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

private void toggleWindow(final ClickEvent event) {
  if (notificationsWindow.isAttached()) {
    getUI().removeWindow(notificationsWindow);
    return;
  }
  createUnreadMessagesLayout();
  notificationsWindow.setPositionY(event.getClientY() - event.getRelativeY() + 40);
  getUI().addWindow(notificationsWindow);
  currentView.refreshView(unreadNotifications.keySet());
  clear();
  notificationsWindow.focus();
}

相关文章