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

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

本文整理了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

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

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

  1. /**
  2. * Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to
  3. * full size, and sets the View display panel to take up all spare space.
  4. */
  5. protected void doLayout() {
  6. if (screenLayout == null) {
  7. screenLayout = screenLayout();
  8. }
  9. screenLayout.setSizeFull();
  10. if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) {
  11. String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel(). AS a "
  12. + "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'";
  13. log.error(msg);
  14. throw new ConfigurationException(msg);
  15. }
  16. if (viewDisplayPanelSizeFull) {
  17. viewDisplayPanel.setSizeFull();
  18. }
  19. setContent(screenLayout);
  20. }

相关文章