private BoxLayout createExpandedAttrsLayout() { BoxLayout expandedAttrsLayout = wizard.componentsFactory.createComponent(HBoxLayout.class); expandedAttrsLayout.setWidth(WIDTH_PERCENT_100); expandedAttrsLayout.add(createFirstRowAttrsLayout()); expandedAttrsLayout.add(createSecondRowAttrsLayout()); return expandedAttrsLayout; }
@Override public Component generateCell(ReportRegion entity) { currentReportRegionGeneratedColumn = entity; BoxLayout mainLayout = wizard.componentsFactory.createComponent(VBoxLayout.class); mainLayout.setWidth(WIDTH_PERCENT_100); mainLayout.add(createFirstTwoRowsLayout()); mainLayout.add(createThirdRowAttrsLayout()); return mainLayout; }
private BoxLayout createFirstTwoRowsLayout() { BoxLayout firstTwoRowsLayout = wizard.componentsFactory.createComponent(HBoxLayout.class); BoxLayout expandedAttrsLayout = createExpandedAttrsLayout(); firstTwoRowsLayout.setWidth(WIDTH_PERCENT_100); firstTwoRowsLayout.add(expandedAttrsLayout); firstTwoRowsLayout.add(createBtnsLayout()); firstTwoRowsLayout.expand(expandedAttrsLayout); return firstTwoRowsLayout; }
public void showPreview() { Window parent = (Window) getFrame(); previewBox.setVisible(true); previewBox.setHeight("100%"); previewBox.setWidth("100%"); previewBox.removeAll(); parent.getDialogOptions() .setWidth("1280px") .setResizable(true) .center(); initPreviewContent(previewBox); }
vbox.setWidth("100%"); CollectionDatasource propertyDs = (CollectionDatasource) datasources.get(childMeta.getName());
layout.setSpacing(true); ThemeConstants theme = App.getInstance().getThemeConstants(); layout.setWidth(theme.get("cuba.web.jmx.AttributeEditor.arrayLayout.width")); if (isFixedSize) { layout.setHeight(theme.get("cuba.web.jmx.AttributeEditor.arrayLayout.height"));