List of usage examples for com.vaadin.ui VerticalLayout setId
@Override public void setId(String id)
From source file:org.eclipse.hawkbit.ui.management.targettable.TargetBulkUpdateWindowLayout.java
License:Open Source License
private VerticalLayout getTokenFieldLayout() { final TokenField tokenField = targetBulkTokenTags.getTokenField(); final VerticalLayout tokenLayout = SPUIComponentProvider.getDetailTabLayout(); tokenLayout.addStyleName("bulk-target-tags-layout"); tokenLayout.addComponent(tokenField); tokenLayout.setSpacing(false);// ww w .ja v a 2 s . c om tokenLayout.setMargin(false); tokenLayout.setSizeFull(); tokenLayout.setHeight("100px"); tokenLayout.setId(UIComponentIdProvider.BULK_UPLOAD_TAG); return tokenLayout; }
From source file:org.eclipse.hawkbit.ui.management.targettag.MultipleTargetFilter.java
License:Open Source License
private Component getSimpleFilterTab() { simpleFilterTab = new VerticalLayout(); final VerticalLayout targetTagTableLayout = new VerticalLayout(); targetTagTableLayout.setSizeFull();// www . ja v a 2 s .co m if (null != config) { targetTagTableLayout.addComponent(config); targetTagTableLayout.setComponentAlignment(config, Alignment.TOP_RIGHT); } targetTagTableLayout.addComponent(filterByButtons); targetTagTableLayout.setComponentAlignment(filterByButtons, Alignment.MIDDLE_CENTER); targetTagTableLayout.setId(UIComponentIdProvider.TARGET_TAG_DROP_AREA_ID); targetTagTableLayout.setExpandRatio(filterByButtons, 1.0F); simpleFilterTab.setCaption(i18n.getMessage("caption.filter.simple")); simpleFilterTab.addComponent(targetTagTableLayout); simpleFilterTab.setExpandRatio(targetTagTableLayout, 1.0F); simpleFilterTab.addComponent(filterByStatusFotter); simpleFilterTab.setComponentAlignment(filterByStatusFotter, Alignment.MIDDLE_CENTER); simpleFilterTab.setSizeFull(); simpleFilterTab.addStyleName(SPUIStyleDefinitions.SIMPLE_FILTER_HEADER); return simpleFilterTab; }
From source file:org.test.chartjs.ChartJSIntegrationView.java
License:Apache License
public ChartJSIntegrationView() { this.setSizeUndefined(); VerticalLayout vl = new VerticalLayout(); vl.setSizeUndefined();// w w w . j a va 2s . c o m // vl.setWidth("500px"); // vl.setHeight("500px"); this.setContent(vl); vl.setId("myPanel"); chartJSExtension = new ChartJSExtension(); chartJSExtension.extend(this); }
From source file:rs.co.micro.bwNet.main.java
public main() { //Layout//w w w. j a v a2s .c o m final VerticalLayout layout = new VerticalLayout(); layout.setMargin(true); layout.addStyleName("odvoji"); layout.setSpacing(true); layout.setResponsive(true); layout.setId("oprem"); //Prvo dugme Button conf = new Button("Configure"); Button.ClickListener listener = new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { navigator.addView("configure", new configure()); navigator.navigateTo("configure"); } }; conf.addClickListener(listener); //Drugo dugme Button log = new Button("Login"); Button.ClickListener listener2 = new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { navigator.addView("login", new login()); navigator.navigateTo("login"); } }; log.addClickListener(listener2); //Trece dugme Button wel = new Button("Welcome"); Button.ClickListener listener3 = new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { navigator.addView("welcome", new welcome()); navigator.navigateTo("welcome"); } }; wel.addClickListener(listener3); layout.addComponents(conf, log, wel); addComponent(layout); }