Package com.vaadin.ui

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


  }
 
  protected void initPageTitle() {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setWidth(100, UNITS_PERCENTAGE);
    layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
    layout.setSpacing(true);
    layout.setMargin(false, false, true, false);
    addDetailComponent(layout);
   
    Embedded groupImage = new Embedded(null, Images.PROCESS_50);
View Full Code Here


 
  protected void initDefinitions() {
    HorizontalLayout definitionsHeader = new HorizontalLayout();
    definitionsHeader.setSpacing(true);
    definitionsHeader.setWidth(100, UNITS_PERCENTAGE);
    definitionsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
    addDetailComponent(definitionsHeader);
   
    initDefinitionTitle(definitionsHeader);
   
    definitionsLayout = new HorizontalLayout();
View Full Code Here

 
  protected void initInstances() {
    HorizontalLayout instancesHeader = new HorizontalLayout();
    instancesHeader.setSpacing(true);
    instancesHeader.setWidth(100, UNITS_PERCENTAGE);
    instancesHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
    addDetailComponent(instancesHeader);
    initInstancesTitle(instancesHeader);
   
    instancesLayout = new HorizontalLayout();
    instancesLayout.setWidth(100, UNITS_PERCENTAGE);
View Full Code Here

  }
 
  protected void addTableName() {
    HorizontalLayout header = new HorizontalLayout();
    header.setWidth(100, UNITS_PERCENTAGE);
    header.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
    header.setSpacing(true);
   
    // TODO: use right image
    Embedded image = new Embedded(null, Images.DATABASE_50);
    header.addComponent(image);
View Full Code Here

  }
 
  protected void initPageTitle() {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setWidth(100, UNITS_PERCENTAGE);
    layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
    layout.setSpacing(true);
    layout.setMargin(false, false, true, false);
    addDetailComponent(layout);
   
    Embedded groupImage = new Embedded(null, Images.PROCESS_50);
View Full Code Here

 
  protected void initDefinitions() {
    HorizontalLayout definitionsHeader = new HorizontalLayout();
    definitionsHeader.setSpacing(true);
    definitionsHeader.setWidth(100, UNITS_PERCENTAGE);
    definitionsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
    addDetailComponent(definitionsHeader);
   
    initDefinitionTitle(definitionsHeader);
   
    definitionsLayout = new HorizontalLayout();
View Full Code Here

 
  protected void initInstances() {
    HorizontalLayout instancesHeader = new HorizontalLayout();
    instancesHeader.setSpacing(true);
    instancesHeader.setWidth(100, UNITS_PERCENTAGE);
    instancesHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
    addDetailComponent(instancesHeader);
    initInstancesTitle(instancesHeader);
   
    instancesLayout = new HorizontalLayout();
    instancesLayout.setWidth(100, UNITS_PERCENTAGE);
View Full Code Here

        HorizontalLayout toolbar = new HorizontalLayout();
        toolbar.setWidth("100%");
        toolbar.setSpacing(true);
        toolbar.setMargin(true);
        toolbar.addStyleName("toolbar");
        addComponent(toolbar);

        HashMap<String, Especie> especies = new HashMap<String, Especie>();
        for(Especie especie : Especie.getAll()){
          especies.put(especie.getEspecie(), especie);
View Full Code Here

        addStyleName("dashboard-view");

        HorizontalLayout top = new HorizontalLayout();
        top.setWidth("100%");
        top.setSpacing(true);
        top.addStyleName("toolbar");
        addComponent(top);
        String saludo = ((DashboardUI)UI.getCurrent()).getUser().getSaludo();
        final Label title = new Label(saludo == null ? "Bienvenido " +((DashboardUI)UI.getCurrent()).getUser().getNombre() : saludo );
        title.setSizeUndefined();
        title.addStyleName("h1");
View Full Code Here

        loginPanel.addStyleName("login-panel");

        HorizontalLayout labels = new HorizontalLayout();
        labels.setWidth("100%");
        labels.setMargin(true);
        labels.addStyleName("labels");
        loginPanel.addComponent(labels);

        Label welcome = new Label("Bienvenido");
        welcome.setSizeUndefined();
        welcome.addStyleName("h4");
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.