Java Code Examples for com.vaadin.ui.CssLayout#setSizeFull()
The following examples show how to use
com.vaadin.ui.CssLayout#setSizeFull() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CubaCurrencyField.java From cuba with Apache License 2.0 | 6 votes |
protected void initLayout() { container = new CssLayout(); container.setSizeFull(); container.setPrimaryStyleName(CURRENCYFIELD_LAYOUT_STYLENAME); container.addComponent(currencyLabel); if (useWrapper()) { ie9InputWrapper = new CssLayout(textField); ie9InputWrapper.setSizeFull(); ie9InputWrapper.setPrimaryStyleName(IE9_INPUT_WRAP_STYLENAME); container.addComponent(ie9InputWrapper); } else { container.addComponent(textField); } setFocusDelegate(textField); }
Example 2
Source File: AdminViewImpl.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 5 votes |
@Override public void postConstruct() { super.postConstruct(); setSizeFull(); layout = new CssLayout(); layout.setSizeFull(); setCompositionRoot(layout); final Label label = new Label("This is admin only view"); label.addStyleName(ValoTheme.LABEL_H2); layout.addComponent(label); }
Example 3
Source File: HiddenAdminViewImpl.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 5 votes |
@Override public void postConstruct() { super.postConstruct(); setSizeFull(); layout = new CssLayout(); layout.setSizeFull(); setCompositionRoot(layout); final Label label = new Label("This is admin only view. Navbar link is was hidden."); label.addStyleName(ValoTheme.LABEL_H2); layout.addComponent(label); }
Example 4
Source File: MyCloudAdd.java From primecloud-controller with GNU General Public License v2.0 | 4 votes |
@Override public void attach() { // myCloud名 cloudNameField = new TextField(ViewProperties.getCaption("field.cloudName")); getLayout().addComponent(cloudNameField); // コメント commentField = new TextField(ViewProperties.getCaption("field.comment")); commentField.setWidth("100%"); getLayout().addComponent(commentField); // テンプレート選択テーブル templateTable = new SelectTemplateTable(); getLayout().addComponent(templateTable); // テンプレート説明欄 final Label nameLabel = new Label(); final Label descriptionLabel = new Label(); Panel descriptionPanel = new Panel(); CssLayout layout = new CssLayout(); layout.addStyleName("template-desc"); descriptionPanel.setHeight("80px"); descriptionPanel.setContent(layout); layout.setSizeFull(); layout.addComponent(nameLabel); layout.addComponent(descriptionLabel); getLayout().addComponent(descriptionPanel); templateTable.addListener(new ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent event) { if (templateTable.getValue() == null) { return; } TemplateDto template = findTemplate(templateTable.getValue()); nameLabel.setValue(template.getTemplate().getTemplateNameDisp() + ":"); descriptionLabel.setValue(template.getTemplate().getTemplateDescriptionDisp()); } }); cloudNameField.focus(); initValidation(); }
Example 5
Source File: LoginView.java From gazpachoquest with GNU General Public License v3.0 | 4 votes |
protected CssLayout createCompositionRoot() { CssLayout root = new CssLayout(); root.setSizeFull(); root.addStyleName(Reindeer.LAYOUT_BLUE); VerticalLayout loginLayout = new VerticalLayout(); loginLayout.setSizeFull(); loginLayout.addStyleName("login-layout"); root.addComponent(loginLayout); final CssLayout loginPanel = new CssLayout(); loginPanel.addStyleName("login-panel"); loginLayout.addComponent(loginPanel); HorizontalLayout labels = new HorizontalLayout(); labels.setWidth("100%"); labels.setMargin(true); labels.addStyleName("labels"); loginPanel.addComponent(labels); Label welcome = new Label("Welcome"); welcome.setSizeUndefined(); welcome.addStyleName(Reindeer.LABEL_H2); labels.addComponent(welcome); labels.setComponentAlignment(welcome, Alignment.MIDDLE_LEFT); Label title = new Label("Gazpacho Quest"); title.setSizeUndefined(); title.addStyleName(Reindeer.LABEL_H1); labels.addComponent(title); labels.setComponentAlignment(title, Alignment.MIDDLE_RIGHT); HorizontalLayout fields = new HorizontalLayout(); fields.setWidth("100%"); fields.setSpacing(true); fields.setMargin(true); fields.addStyleName("fields"); invitation = new TextField("Invitation"); invitation.setSizeUndefined(); invitation.focus(); // invitation.setValue("YAS5ICHRBE"); fields.addComponent(invitation); login = new Button("Start"); login.addClickListener(createLoginButtonListener()); fields.addComponent(login); fields.setComponentAlignment(login, Alignment.BOTTOM_LEFT); loginPanel.addComponent(fields); return root; }