protected void addMainLayout() { grid = new GridLayout(1, 2); grid.setSizeFull(); // Height division grid.setRowExpandRatio(1, 1.0f); setCompositionRoot(grid); }
@Override protected void doBuild(ViewChangeBusMessage busMessage) { grid = new GridLayout(3, 3); grid.setSizeFull(); setColumnWidths(defaultColumnWidths); setRowHeights(defaultRowHeights); setRootComponent(grid); }
@Override protected void doBuild() { grid = new GridLayout(3, 3); grid.setSizeFull(); setColumnWidths(defaultColumnWidths); setRowHeights(defaultRowHeights); setRootComponent(grid); }
private void createMainLayout() { mainLayout = new GridLayout(); layoutWidgets(); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setRowExpandRatio(0, 1F); mainLayout.setStyleName("fullSize"); }
private void createMainLayout() { mainLayout = new GridLayout(); layoutWidgets(); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setRowExpandRatio(0, 1F); mainLayout.setStyleName("fullSize"); }
@Override public void doBuild(ViewChangeBusMessage busMessage) { label = new Label("This is the " + this.getClass() .getSimpleName()); label.setHeight("100px"); grid = new GridLayout(3, 3); grid.addComponent(label, 1, 1); grid.setSizeFull(); grid.setColumnExpandRatio(0, 0.33f); grid.setColumnExpandRatio(1, 0.33f); grid.setColumnExpandRatio(2, 0.33f); grid.setRowExpandRatio(0, 0.4f); grid.setRowExpandRatio(1, 0.2f); grid.setRowExpandRatio(2, 0.4f); label.setSizeFull(); setRootComponent(grid); }
@Override public void doBuild() { label = new Label("This is the " + this.getClass() .getSimpleName()); label.setHeight("100px"); grid = new GridLayout(3, 3); grid.addComponent(label, 1, 1); grid.setSizeFull(); grid.setColumnExpandRatio(0, 0.33f); grid.setColumnExpandRatio(1, 0.33f); grid.setColumnExpandRatio(2, 0.33f); grid.setRowExpandRatio(0, 0.4f); grid.setRowExpandRatio(1, 0.2f); grid.setRowExpandRatio(2, 0.4f); label.setSizeFull(); setRootComponent(grid); }
protected void initComponentLayout() { selectedComponentLayout = new GridLayout(1,2); selectedComponentLayout.setSizeFull(); selectedComponentLayout.setMargin(true); selectedComponentLayout.setSpacing(true); selectedComponentLayout.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_CREATE_DETAIL); windowLayout.addComponent(selectedComponentLayout); windowLayout.setExpandRatio(selectedComponentLayout, 1.0f); selectedComponentLayout.setRowExpandRatio(0, 1.0f); selectedComponentLayout.setColumnExpandRatio(0, 1.0f); }
private void createMainLayout() { mainLayout = new GridLayout(4, 1); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setStyleName("fullSize"); mainLayout.addComponent(filterByDSTypeLayout, 0, 0); mainLayout.addComponent(distributionTableLayout, 1, 0); mainLayout.addComponent(softwareModuleTableLayout, 2, 0); mainLayout.addComponent(filterBySMTypeLayout, 3, 0); mainLayout.setRowExpandRatio(0, 1.0F); mainLayout.setColumnExpandRatio(1, 0.5F); mainLayout.setColumnExpandRatio(2, 0.5F); }
private void createMainLayout() { mainLayout = new GridLayout(4, 1); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setStyleName("fullSize"); mainLayout.addComponent(filterByDSTypeLayout, 0, 0); mainLayout.addComponent(distributionTableLayout, 1, 0); mainLayout.addComponent(softwareModuleTableLayout, 2, 0); mainLayout.addComponent(filterBySMTypeLayout, 3, 0); mainLayout.setRowExpandRatio(0, 1.0F); mainLayout.setColumnExpandRatio(1, 0.5F); mainLayout.setColumnExpandRatio(2, 0.5F); }
private GridLayout createMainLayout() { createDetailsAndUploadLayout(); mainLayout = new GridLayout(3, 1); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setStyleName("fullSize"); mainLayout.addComponent(filterByTypeLayout, 0, 0); mainLayout.addComponent(smTableLayout, 1, 0); mainLayout.addComponent(detailAndUploadLayout, 2, 0); mainLayout.setRowExpandRatio(0, 1.0F); mainLayout.setColumnExpandRatio(1, 0.5F); mainLayout.setColumnExpandRatio(2, 0.5F); return mainLayout; }
private GridLayout createMainLayout() { createDetailsAndUploadLayout(); mainLayout = new GridLayout(3, 1); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setStyleName("fullSize"); mainLayout.addComponent(filterByTypeLayout, 0, 0); mainLayout.addComponent(smTableLayout, 1, 0); mainLayout.addComponent(detailAndUploadLayout, 2, 0); mainLayout.setRowExpandRatio(0, 1.0F); mainLayout.setColumnExpandRatio(1, 0.5F); mainLayout.setColumnExpandRatio(2, 0.5F); return mainLayout; }
protected void addMainLayout() { if(showEvents) { grid = new GridLayout(3, 3); grid.setColumnExpandRatio(0, .25f); grid.setColumnExpandRatio(1, .52f); grid.setColumnExpandRatio(2, .23f); } else { grid = new GridLayout(2, 3); grid.setColumnExpandRatio(0, .25f); grid.setColumnExpandRatio(1, .75f); } grid.addStyleName(Reindeer.SPLITPANEL_SMALL); grid.setSizeFull(); // Height division grid.setRowExpandRatio(2, 1.0f); setCompositionRoot(grid); }
public ConfirmationDialogPopupWindow(String title, String description) { setWidth(400, UNITS_PIXELS); setModal(true); setResizable(false); addStyleName(Reindeer.PANEL_LIGHT); layout = new GridLayout(2,2); layout.setMargin(true); layout.setSpacing(true); layout.setSizeFull(); setContent(layout); I18nManager i18nManager = ExplorerApp.get().getI18nManager(); if(title != null) { setCaption(title); } else { setCaption(i18nManager.getMessage(Messages.CONFIRMATION_DIALOG_DEFAULT_TITLE)); } initLabel(description); initButtons(i18nManager); }
@Override protected void initUi() { super.initUi(); setSizeFull(); grid.setColumnExpandRatio(0, 0f); // Hide the column on the left side mainLayout = new DetailPanel(); setDetailComponent(mainLayout); // Editor editorGrid = new GridLayout(2, 7); editorGrid.setSizeFull(); editorGrid.setMargin(true); editorGrid.setColumnExpandRatio(0, 1.0f); editorGrid.setColumnExpandRatio(1, 9.0f); editorGrid.setSpacing(true); mainLayout.addComponent(editorGrid); initNameField(editorGrid); initDescriptionField(editorGrid); initTaskTable(editorGrid); initButtons(editorGrid); toolBar.setActiveEntry(KEY_EDITOR); }
protected void buildLayout() { mainLayout = new GridLayout(3, 2); mainLayout.setSpacing(true); colorPickerLayout = new ColorPickerLayout(); ColorPickerHelper.setRgbSliderValues(colorPickerLayout); contentLayout = new VerticalLayout(); colorLabelLayout = new HorizontalLayout(); colorLabelLayout.setMargin(false); colorLabelLayout.addComponents(colorLabel, tagColorPreviewBtn); formLayout.addComponent(tagName); formLayout.addComponent(tagDesc); formLayout.setSizeFull(); contentLayout.addComponent(formLayout); contentLayout.addComponent(colorLabelLayout); contentLayout.setComponentAlignment(formLayout, Alignment.MIDDLE_CENTER); contentLayout.setComponentAlignment(colorLabelLayout, Alignment.MIDDLE_LEFT); contentLayout.setSizeUndefined(); mainLayout.setSizeFull(); mainLayout.addComponent(contentLayout, 0, 0); colorPickerLayout.setVisible(false); mainLayout.addComponent(colorPickerLayout, 1, 0); mainLayout.setComponentAlignment(colorPickerLayout, Alignment.MIDDLE_CENTER); setCompositionRoot(mainLayout); tagName.focus(); }
protected void buildLayout() { mainLayout = new GridLayout(3, 2); mainLayout.setSpacing(true); colorPickerLayout = new ColorPickerLayout(); ColorPickerHelper.setRgbSliderValues(colorPickerLayout); contentLayout = new VerticalLayout(); colorLabelLayout = new HorizontalLayout(); colorLabelLayout.setMargin(false); colorLabelLayout.addComponents(colorLabel, tagColorPreviewBtn); formLayout.addComponent(tagName); formLayout.addComponent(tagDesc); formLayout.setSizeFull(); contentLayout.addComponent(formLayout); contentLayout.addComponent(colorLabelLayout); contentLayout.setComponentAlignment(formLayout, Alignment.MIDDLE_CENTER); contentLayout.setComponentAlignment(colorLabelLayout, Alignment.MIDDLE_LEFT); contentLayout.setSizeUndefined(); mainLayout.setSizeFull(); mainLayout.addComponent(contentLayout, 0, 0); colorPickerLayout.setVisible(false); mainLayout.addComponent(colorPickerLayout, 1, 0); mainLayout.setComponentAlignment(colorPickerLayout, Alignment.MIDDLE_CENTER); setCompositionRoot(mainLayout); tagName.focus(); }
public CreateAttachmentPopupWindow() { this.i18nManager = ExplorerApp.get().getI18nManager(); this.attachmentRendererManager = ExplorerApp.get().getAttachmentRendererManager(); this.taskService = ProcessEngines.getDefaultProcessEngine().getTaskService(); setCaption(i18nManager.getMessage(Messages.RELATED_CONTENT_ADD)); setWidth(700, UNITS_PIXELS); setHeight(430, UNITS_PIXELS); center(); setModal(true); addStyleName(Reindeer.WINDOW_LIGHT); layout = new HorizontalLayout(); layout.setSpacing(false); layout.setMargin(true); layout.setSizeFull(); setContent(layout); initTable(); detailLayout = new GridLayout(1,2); detailLayout.setSizeFull(); detailLayout.setMargin(true); detailLayout.setSpacing(true); detailLayout.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_CREATE_DETAIL); layout.addComponent(detailLayout); layout.setExpandRatio(detailLayout, 1.0f); detailLayout.setRowExpandRatio(0, 1.0f); detailLayout.setColumnExpandRatio(0, 1.0f); initActions(); }
layout.setSizeFull(); layout.setMargin(false, false, true, false); addComponent(layout);
layout.setSizeFull(); layout.setMargin(true);