/** * 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); }
/** * 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); }
protected void applyScrollBarsPolicy(ScrollBarPolicy scrollBarPolicy) { switch (scrollBarPolicy) { case VERTICAL: getContent().setHeightUndefined(); getContent().setWidth(100, Sizeable.Unit.PERCENTAGE); break; case HORIZONTAL: getContent().setHeight(100, Sizeable.Unit.PERCENTAGE); getContent().setWidthUndefined(); break; case BOTH: getContent().setSizeUndefined(); break; case NONE: getContent().setSizeFull(); break; } }