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

x33g5p2x  于2022-01-26 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(135)

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

Panel.getParent介绍

暂无

代码示例

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

/**
 * Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to
 * full size, and sets the View display panel to take up all spare space.
 */
protected void doLayout() {
  if (screenLayout == null) {
    screenLayout = screenLayout();
  }
  screenLayout.setSizeFull();
  if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) {
    String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel().  AS a "
        + "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'";
    log.error(msg);
    throw new ConfigurationException(msg);
  }
  viewDisplayPanel.setSizeFull();
  setContent(screenLayout);
}

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

/**
 * Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to
 * full size, and sets the View display panel to take up all spare space.
 */
protected void doLayout() {
  if (screenLayout == null) {
    screenLayout = screenLayout();
  }
  screenLayout.setSizeFull();
  if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) {
    String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel().  AS a "
        + "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'";
    log.error(msg);
    throw new ConfigurationException(msg);
  }
  if (viewDisplayPanelSizeFull) {
    viewDisplayPanel.setSizeFull();
  }
  setContent(screenLayout);
}

相关文章