Package com.vaadin.ui

Examples of com.vaadin.ui.Panel.addComponent()


          browserPanel.setHeight(maxY + 220 + "px");
         
          HorizontalLayout panelLayout = new HorizontalLayout();
          panelLayout.setSizeUndefined();
          imagePanel.setContent(panelLayout);
          imagePanel.addComponent(browserPanel);
         
          processImageContainer.addComponent(imagePanel);
         
          didDrawImage = true;
        }
View Full Code Here


        imagePanel.setWidth(100, UNITS_PERCENTAGE);
        imagePanel.setHeight(100, UNITS_PERCENTAGE);
        HorizontalLayout panelLayout = new HorizontalLayout();
        panelLayout.setSizeUndefined();
        imagePanel.setContent(panelLayout);
        imagePanel.addComponent(embedded);
        processImageContainer.addComponent(imagePanel);
       
        didDrawImage = true;
      }
    }
View Full Code Here

    layout.addComponent(textFieldPanel);
    layout.setExpandRatio(textFieldPanel, 1.0f);
   
    commentInputField = new TextField();
    commentInputField.setWidth(100, UNITS_PERCENTAGE);
    textFieldPanel.addComponent(commentInputField);
   
    // Hack to catch keyboard 'enter'
    textFieldPanel.addActionHandler(new Handler() {
      public void handleAction(Action action, Object sender, Object target) {
        addNewComment(commentInputField.getValue().toString());
View Full Code Here

    panel.setHeight(300, UNITS_PIXELS);
   
    content = new Label(html, Label.CONTENT_XHTML);
    content.setHeight(100, UNITS_PERCENTAGE);
   
    panel.addComponent(content);
    addComponent(panel);
  }

  protected void addSimpleRow(String labelMessageKey, String content) {
    addLabel(labelMessageKey);
View Full Code Here

    addComponent(dragAndDropWrapper);
    setComponentAlignment(dragAndDropWrapper, Alignment.MIDDLE_CENTER);
   
    Label dropLabel = new Label(i18nManager.getMessage(Messages.UPLOAD_DROP));
    dropLabel.setSizeUndefined();
    dropPanel.addComponent(dropLabel);
    ((VerticalLayout)dropPanel.getContent()).setComponentAlignment(dropLabel, Alignment.MIDDLE_CENTER);
  }
 
  // File upload event handling -------------------------------------------------------------------
 
View Full Code Here

     
      Panel stackPanel = new Panel();
      stackPanel.setWidth(100, UNITS_PERCENTAGE);
      stackPanel.setSizeFull();
      stackPanel.setScrollable(true);
      stackPanel.addComponent(stackTraceLabel);
     
      layout.addComponent(stackPanel);
      layout.setExpandRatio(stackPanel, 1.0f);
    } else {
     
View Full Code Here

        vl.addComponent(new Label(e.getMessage()));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        e.printStackTrace(new PrintWriter(baos));
        vl.addComponent(new Label("<pre>" + baos.toString() + "</pre>", CONTENT_XHTML));
        vl.addStyleName("error");
        p.addComponent(vl);
        p.setHeight("150px");
        return p;
    }

    @Override
View Full Code Here

    }

    Panel p = new Panel();
    p.addStyleName("tti-panel");
    p.setWidth("100%");
    p.addComponent(mainLayout);
    return p;
  }

  protected Component createTaskIcon(TaskItemProviderParams params) {
    BpmTask task = params.getTask();
View Full Code Here

    }
    if (pi.getDescription() != null) {
      vl.addComponent(createQueuePaneDescription(params));
    }
    p.setWidth("100%");
    p.addComponent(vl);
    return p;
  }

  protected String getQueuePaneHeader(TaskItemProviderParams params) {
    return getProcessDescription(params) + " " +
View Full Code Here

      imagePanel.setWidth(100, UNITS_PERCENTAGE);
      imagePanel.setHeight(400, UNITS_PIXELS);
      HorizontalLayout panelLayout = new HorizontalLayout();
      panelLayout.setSizeUndefined();
      imagePanel.setContent(panelLayout);
      imagePanel.addComponent(embedded);
     
      processImageContainer.addComponent(imagePanel);
    } else {
      Label noImageAvailable = new Label(i18nManager.getMessage(Messages.PROCESS_NO_DIAGRAM));
      processImageContainer.addComponent(noImageAvailable);
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.