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

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

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

Window.setId介绍

暂无

代码示例

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

private void decorateWindow(final Window window) {
  if (id != null) {
    window.setId(id);
  }
  if (SPUIDefinitions.CONFIRMATION_WINDOW.equals(type)) {
    window.setDraggable(false);
    window.setClosable(true);
    window.addStyleName(SPUIStyleDefinitions.CONFIRMATION_WINDOW_CAPTION);
  } else if (SPUIDefinitions.CREATE_UPDATE_WINDOW.equals(type)) {
    window.setDraggable(true);
    window.setClosable(true);
  }
}

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

private void decorateWindow(final Window window) {
  if (id != null) {
    window.setId(id);
  }
  if (SPUIDefinitions.CONFIRMATION_WINDOW.equals(type)) {
    window.setDraggable(false);
    window.setClosable(true);
    window.addStyleName(SPUIStyleDefinitions.CONFIRMATION_WINDOW_CAPTION);
  } else if (SPUIDefinitions.CREATE_UPDATE_WINDOW.equals(type)) {
    window.setDraggable(true);
    window.setClosable(true);
  }
}

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

private void createNotificationWindow() {
  notificationsWindow = new Window();
  notificationsWindow.setWidth(300.0F, Unit.PIXELS);
  notificationsWindow.addStyleName(STYLE_POPUP);
  notificationsWindow.addStyleName(STYLE_NO_CLOSEBOX);
  notificationsWindow.setClosable(true);
  notificationsWindow.setResizable(false);
  notificationsWindow.setDraggable(false);
  notificationsWindow.setId(UIComponentIdProvider.NOTIFICATION_UNREAD_POPUP_ID);
  notificationsWindow.addCloseListener(event -> refreshCaption());
  notificationsWindow.addBlurListener(this::closeWindow);
}

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

private void createNotificationWindow() {
  notificationsWindow = new Window();
  notificationsWindow.setWidth(300.0F, Unit.PIXELS);
  notificationsWindow.addStyleName(STYLE_POPUP);
  notificationsWindow.addStyleName(STYLE_NO_CLOSEBOX);
  notificationsWindow.setClosable(true);
  notificationsWindow.setResizable(false);
  notificationsWindow.setDraggable(false);
  notificationsWindow.setId(UIComponentIdProvider.NOTIFICATION_UNREAD_POPUP_ID);
  notificationsWindow.addCloseListener(event -> refreshCaption());
  notificationsWindow.addBlurListener(this::closeWindow);
}

代码示例来源:origin: uk.q3c.krail/krail

window.setId(ID.getId(Optional.empty(), context, this, window));
window.setClosable(true);

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

window = new Window(caption);
if (!StringUtils.isEmpty(id)) {
  window.setId(id);

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

window = new Window(caption);
if (!StringUtils.isEmpty(id)) {
  window.setId(id);

代码示例来源:origin: com.haulmont.cuba/cuba-web

dialog.setId(ui.getTestIdManager().getTestId("optionDialog"));
reloginBtn.setId(ui.getTestIdManager().getTestId("reloginBtn"));

相关文章