/** * Enable layout margins. Affects all four sides of the layout. * This will tell the client-side implementation to leave extra space around the layout. * The client-side implementation decides the actual amount, and it can vary between themes.<p> * * @param enabled <code>true</code> if margins should be enabled on all sides, false to disable all margins */ public void setMargin(boolean enabled) { ((HorizontalLayout)getCompositionRoot()).setMargin(enabled); }
protected HorizontalLayout createTopPanel() { HorizontalLayout topPanel = new HorizontalLayout(); topPanel.setMargin(false); topPanel.setSpacing(false); topPanel.setStyleName("c-data-grid-top"); return topPanel; }
protected HorizontalLayout createTopPanel() { HorizontalLayout topPanel = new HorizontalLayout(); topPanel.setMargin(false); topPanel.setSpacing(false); topPanel.setStyleName("c-table-top"); return topPanel; }
protected HorizontalLayout createTopPanel() { HorizontalLayout topPanel = new HorizontalLayout(); topPanel.setSpacing(false); topPanel.setMargin(false); topPanel.setStyleName("c-tree-top"); return topPanel; }
public DefaultHorizontalLayoutBuilder() { super(new HorizontalLayout()); getInstance().setMargin(false); getInstance().setSpacing(false); }
private static HorizontalLayout createHeaderFilterIconLayout() { final HorizontalLayout titleFilterIconsLayout = new HorizontalLayout(); titleFilterIconsLayout.addStyleName(SPUIStyleDefinitions.WIDGET_TITLE); titleFilterIconsLayout.setSpacing(false); titleFilterIconsLayout.setMargin(false); titleFilterIconsLayout.setSizeFull(); return titleFilterIconsLayout; }
private static HorizontalLayout createHeaderFilterIconLayout() { final HorizontalLayout titleFilterIconsLayout = new HorizontalLayout(); titleFilterIconsLayout.addStyleName(SPUIStyleDefinitions.WIDGET_TITLE); titleFilterIconsLayout.setSpacing(false); titleFilterIconsLayout.setMargin(false); titleFilterIconsLayout.setSizeFull(); return titleFilterIconsLayout; }
private static HorizontalLayout createHeaderFilterIconLayout() { final HorizontalLayout titleFilterIconsLayout = new HorizontalLayout(); titleFilterIconsLayout.addStyleName(SPUIStyleDefinitions.WIDGET_TITLE); titleFilterIconsLayout.setSpacing(false); titleFilterIconsLayout.setMargin(false); titleFilterIconsLayout.setSizeFull(); return titleFilterIconsLayout; }
protected void initWindowLayout() { windowLayout = new HorizontalLayout(); windowLayout.setSpacing(false); windowLayout.setMargin(true); windowLayout.setSizeFull(); setContent(windowLayout); }
private static HorizontalLayout createHeaderFilterIconLayout() { final HorizontalLayout titleFilterIconsLayout = new HorizontalLayout(); titleFilterIconsLayout.addStyleName(SPUIStyleDefinitions.WIDGET_TITLE); titleFilterIconsLayout.setSpacing(false); titleFilterIconsLayout.setMargin(false); titleFilterIconsLayout.setSizeFull(); return titleFilterIconsLayout; }
private Layout createFooter() { HorizontalLayout footer = new HorizontalLayout(); footer.setSpacing(true); footer.setMargin(true); footer.setWidth(100, Unit.PERCENTAGE); footer.addComponent(okayButton); footer.setComponentAlignment(okayButton, Alignment.BOTTOM_RIGHT); return footer; }
private Layout createFooter() { HorizontalLayout footer = new HorizontalLayout(); footer.setSpacing(true); footer.setMargin(true); footer.setWidth(100, Unit.PERCENTAGE); footer.addComponent(okayButton); footer.setComponentAlignment(okayButton, Alignment.BOTTOM_RIGHT); return footer; }
protected Component addFoldersLabel(AbstractLayout layout, Label label) { HorizontalLayout l = new HorizontalLayout(); l.setMargin(new MarginInfo(false, true, false, true)); l.addComponent(label); l.setWidth(100, Unit.PERCENTAGE); layout.addComponent(l); return l; }
private Layout createMainArea(final String description) { HorizontalLayout layout = new HorizontalLayout(); layout.setSpacing(true); layout.setMargin(true); layout.setWidth(100, Unit.PERCENTAGE); Label label = new Label(description, ContentMode.PREFORMATTED); label.setWidth(100, Unit.PERCENTAGE); layout.addComponent(label); return layout; }
@Override public void init() { Window mainWindow = new Window(""); setMainWindow(mainWindow); mainWindow.removeAllComponents(); HorizontalLayout main = new HorizontalLayout(); main.setSpacing(true); main.setMargin(true); main.setWidth(100, Sizeable.UNITS_PERCENTAGE); mainWindow.setContent(main); }
@Override protected HorizontalLayout initContent() { this.layout.setMargin(false); this.layout.setSpacing(true); this.layout.addComponent(this.refLabel); this.layout.addComponent(new Label("\u00a0\u00a0")); this.layout.addComponent(this.changeButton); this.layout.setComponentAlignment(this.changeButton, Alignment.MIDDLE_LEFT); this.updateDisplay(); return this.layout; }
protected void initUserDetails() { Label userDetailsHeader = new Label(i18nManager.getMessage(Messages.USER_HEADER_DETAILS)); userDetailsHeader.addStyleName(ExplorerLayout.STYLE_H3); userDetailsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK); addDetailComponent(userDetailsHeader); // Details: picture and basic info userDetailsLayout = new HorizontalLayout(); userDetailsLayout.setSpacing(true); userDetailsLayout.setMargin(false, false, true, false); addDetailComponent(userDetailsLayout); populateUserDetails(); }
protected void initDatabaseSettingsDetails() { Label settingsHeader = new Label(i18nManager.getMessage(Messages.MGMT_MENU_DATABASE)); settingsHeader.addStyleName(ExplorerLayout.STYLE_H3); settingsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK); addDetailComponent(settingsHeader); detailLayout = new HorizontalLayout(); detailLayout.setSpacing(true); detailLayout.setMargin(true, false, true, false); addDetailComponent(detailLayout); initSettingsProperties(); }
public Component getComponent() { container = new HorizontalLayout(); container.setSpacing(true); container.setMargin(true); container.addComponent(new Label("User")); container.addComponent(new TextField()); container.addComponent(new Label("Password")); container.addComponent(new PasswordField()); return container; }