Example usage for com.vaadin.server FontAwesome EXCHANGE

List of usage examples for com.vaadin.server FontAwesome EXCHANGE

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome EXCHANGE.

Prototype

FontAwesome EXCHANGE

To view the source code for com.vaadin.server FontAwesome EXCHANGE.

Click Source Link

Usage

From source file:de.uni_tuebingen.qbic.qbicmainportlet.WorkflowComponent.java

License:Open Source License

private void init() {
    VerticalLayout workflowLayout = new VerticalLayout();

    viewContent.setWidth("100%");
    viewContent.setMargin(true);/*from   ww w  . j av a2 s . c  o m*/

    // select available workflows
    workflows = new VerticalLayout();
    VerticalLayout workflowsContent = new VerticalLayout();
    workflows.setMargin(new MarginInfo(false, true, true, false));

    workflowsContent.addComponent(availableWorkflows);
    availableWorkflows.setSizeFull();
    availableWorkflows.setDescription(WORKFKLOW_GRID_DESCRIPTION);
    // availableWorkflows.setWidth("100%");
    workflows.setVisible(false);

    workflows.setCaption("Available Workflows");
    workflows.setIcon(FontAwesome.EXCHANGE);
    workflows.addComponent(workflowsContent);
    workflows.setWidth(100.0f, Unit.PERCENTAGE);

    // submission
    submission = new VerticalLayout();
    submission.setMargin(new MarginInfo(false, true, true, false));

    submission.setCaption(SUBMISSION_CAPTION);
    submission.setIcon(FontAwesome.PLAY);
    submission.setWidth(100.0f, Unit.PERCENTAGE);
    submission.setVisible(false);

    // add sections to layout
    viewContent.addComponent(workflows);
    viewContent.addComponent(submission);

    workflowLayout.addComponent(viewContent);
    setCompositionRoot(workflowLayout);
    addComponentListeners();
}

From source file:views.WorkflowView.java

License:Open Source License

private void init() {

    viewContent.setWidth("100%");
    viewContent.setMargin(new MarginInfo(true, false, false, false));

    // select available workflows
    workflows = new VerticalLayout();
    VerticalLayout workflowsContent = new VerticalLayout();
    workflows.setMargin(new MarginInfo(false, true, true, false));

    workflowsContent.addComponent(availableWorkflows);
    availableWorkflows.setSizeFull();/*  w w w.  j av  a  2s  .  com*/
    availableWorkflows.setDescription(WORKFKLOW_GRID_DESCRIPTION);
    // availableWorkflows.setWidth("100%");
    workflows.setVisible(false);

    workflows.setCaption("Available Workflows");
    workflows.setIcon(FontAwesome.EXCHANGE);
    workflows.addComponent(workflowsContent);
    workflows.setWidth(100.0f, Unit.PERCENTAGE);

    // submission
    submission = new VerticalLayout();
    submission.setMargin(new MarginInfo(false, true, true, false));

    submission.setCaption(SUBMISSION_CAPTION);
    submission.setIcon(FontAwesome.PLAY);
    submission.setWidth(100.0f, Unit.PERCENTAGE);
    submission.setVisible(false);

    // add sections to layout
    viewContent.addComponent(workflows);
    viewContent.addComponent(submission);

    this.addComponent(viewContent);
    addComponentListeners();
}