Package com.vaadin.ui

Examples of com.vaadin.ui.Component.addStyleName()


                                .iterator(); it.hasNext();) {
                            Component c = it.next();
                            if (c.getCaption() != null
                                    && c.getCaption().startsWith(
                                            item.getValue())) {
                                c.addStyleName("selected");
                                break;
                            }
                        }
                        break;
                    }
View Full Code Here


                        toolbarLayout.setExpandRatio(menuBar, 1);
                        toolbarLayout.setComponentAlignment(menuBar,
                                Alignment.TOP_RIGHT);
                        toolbar = toolbarLayout;
                    }
                    toolbar.addStyleName("v-window-top-toolbar");
                    root.addComponent(toolbar);
                }

                Component content = null;
View Full Code Here

                boolean value = (Boolean) event.getProperty().getValue();
                Iterator<Component> iter = cssLayout.iterator();
                while (iter.hasNext()) {
                    Component component = iter.next();
                    if (value) {
                        component.addStyleName("demo-removable-two");
                    } else {
                        component.removeStyleName("demo-removable-two");
                    }
                }
                boxMode = value;
View Full Code Here

    } else {
      pictureComponent = new Label("");
    }
    pictureComponent.setHeight("200px");
    pictureComponent.setWidth("200px");
    pictureComponent.addStyleName(ExplorerLayout.STYLE_PROFILE_PICTURE);
    userDetailsLayout.addComponent(pictureComponent);
    userDetailsLayout.setComponentAlignment(pictureComponent, Alignment.MIDDLE_CENTER);
  }
 
  protected void loadUserDetails() {
View Full Code Here

    // górny pasek

    Component processIdButton = createTaskPaneProcessId(params);
    Component processDescButton = createTaskPaneProcessDesc(params);

    processDescButton.addStyleName(CssStyles.PROCESS_DESC_BUTTON);
    processIdButton.addStyleName(CssStyles.PROCESS_ID_BUTTON);

    HorizontalLayout hl = new HorizontalLayout();
    hl.setSpacing(true);
    hl.setWidth("100%");
View Full Code Here

    } else {
      pictureComponent = new Label("");
    }
    pictureComponent.setHeight("200px");
    pictureComponent.setWidth("200px");
    pictureComponent.addStyleName(ExplorerLayout.STYLE_PROFILE_PICTURE);
    userDetailsLayout.addComponent(pictureComponent);
    userDetailsLayout.setComponentAlignment(pictureComponent, Alignment.MIDDLE_CENTER);
  }
 
  protected void loadUserDetails() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.