Example usage for com.vaadin.server FontAwesome BRIEFCASE

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

Introduction

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

Prototype

FontAwesome BRIEFCASE

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

Click Source Link

Usage

From source file:com.etest.view.testbank.CellCaseMainUI.java

Table populateDataTable() {
    table.removeAllItems();//w  w  w.j av a 2 s.  c o m
    int i = 0;
    for (CellCase cc : ccs.getCellCaseByTopic(getSyllabusId())) {
        VerticalLayout v = new VerticalLayout();
        v.setWidth("100%");

        Button edit = new Button("modify");
        edit.setSizeFull();
        edit.setData(cc.getCellCaseId());
        edit.setIcon(FontAwesome.PENCIL);
        edit.addStyleName(ValoTheme.BUTTON_LINK);
        edit.addStyleName(ValoTheme.BUTTON_TINY);
        edit.addStyleName(ValoTheme.BUTTON_QUIET);
        edit.addStyleName("button-container");
        edit.addClickListener(modifyBtnClickListener);
        v.addComponent(edit);
        v.setComponentAlignment(edit, Alignment.MIDDLE_LEFT);

        Button approve = new Button("status");
        approve.setSizeFull();
        approve.setData(cc.getCellCaseId());
        approve.addStyleName(ValoTheme.BUTTON_LINK);
        approve.addStyleName(ValoTheme.BUTTON_TINY);
        approve.addStyleName(ValoTheme.BUTTON_QUIET);
        approve.addStyleName("button-container");
        v.addComponent(approve);
        v.setComponentAlignment(approve, Alignment.MIDDLE_LEFT);

        if (cc.getApprovalStatus() == 0) {
            approve.setIcon(FontAwesome.THUMBS_DOWN);
        } else {
            approve.setIcon(FontAwesome.THUMBS_UP);
        }

        Button stem = new Button("stems");
        stem.setSizeFull();
        stem.setData(cc.getCellCaseId());
        stem.setIcon(FontAwesome.BRIEFCASE);
        stem.addStyleName(ValoTheme.BUTTON_LINK);
        stem.addStyleName(ValoTheme.BUTTON_TINY);
        stem.addStyleName(ValoTheme.BUTTON_QUIET);
        stem.addStyleName("button-container");
        stem.addClickListener(stemBtnClickListener);
        v.addComponent(stem);
        v.setComponentAlignment(stem, Alignment.MIDDLE_LEFT);

        Label label = new Label(cc.getCaseTopic(), ContentMode.HTML);
        label.setStyleName("label-padding");

        table.addItem(new Object[] { cc.getCellCaseId(), label, cc.getUsername_(), cc.getDateCreated(), v }, i);
        i++;
    }
    table.setPageLength(table.size());

    return table;
}

From source file:com.hybridbpm.ui.view.CaseView.java

License:Apache License

public CaseView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();/*  w w w . j ava2  s .  c  o  m*/
    tabSheet.addTab(startProcessLayout, "Start case", FontAwesome.MAGIC);
    tabSheet.addTab(myCaseInProgressLayout, "In progress", FontAwesome.BRIEFCASE);
    tabSheet.addTab(myCaseDoneLayout, "Done", FontAwesome.ARCHIVE);
    tabSheet.setSelectedTab(myCaseInProgressLayout);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    startProcessLayout.refreshTable();
    startProcessLayout.setTabSheet(tabSheet);
    myCaseInProgressLayout.setTabSheet(tabSheet);
    myCaseDoneLayout.setTabSheet(tabSheet);
}

From source file:com.ies.schoolos.ui.mobile.info.layout.PersonalLayout.java

private void licenseeGroup() {
    licenseeGroup = new VerticalComponentGroup();
    licenseeGroup.setSizeUndefined();/*from w w  w. jav a 2 s  . com*/

    addTab(licenseeGroup, "", FontAwesome.BRIEFCASE);

    licenseLecturerNumber = new TextField("");
    licenseLecturerNumber.setInputPrompt("");
    licenseLecturerNumber.setImmediate(false);
    licenseLecturerNumber.setWidth("-1px");
    licenseLecturerNumber.setHeight("-1px");
    licenseLecturerNumber.setNullRepresentation("");
    licenseeGroup.addComponent(licenseLecturerNumber);

    licenseLecturerType = new NativeSelect("?",
            new LicenseLecturerType());
    //licenseLecturerType.setInputPrompt("??");
    licenseLecturerType.setItemCaptionPropertyId("name");
    licenseLecturerType.setImmediate(true);
    licenseLecturerType.setNullSelectionAllowed(false);
    licenseLecturerType.setWidth("-1px");
    licenseLecturerType.setHeight("-1px");
    //licenseLecturerType.setFilteringMode(FilteringMode.CONTAINS);
    licenseeGroup.addComponent(licenseLecturerType);

    licenseLecturerIssuedDate = new PopupDateField("   ?");
    licenseLecturerIssuedDate.setInputPrompt("//");
    licenseLecturerIssuedDate.setImmediate(false);
    licenseLecturerIssuedDate.setWidth("-1px");
    licenseLecturerIssuedDate.setHeight("-1px");
    licenseLecturerIssuedDate.setDateFormat("dd/MM/yyyy");
    licenseLecturerIssuedDate.setLocale(new Locale("th", "TH"));
    licenseeGroup.addComponent(licenseLecturerIssuedDate);

    licenseLecturerExpiredDate = new PopupDateField("   ");
    licenseLecturerExpiredDate.setInputPrompt("//");
    licenseLecturerExpiredDate.setImmediate(false);
    licenseLecturerExpiredDate.setWidth("-1px");
    licenseLecturerExpiredDate.setHeight("-1px");
    licenseLecturerExpiredDate.setDateFormat("dd/MM/yyyy");
    licenseLecturerExpiredDate.setLocale(new Locale("th", "TH"));
    licenseeGroup.addComponent(licenseLecturerExpiredDate);

    license11Number = new TextField("?  11");
    license11Number.setInputPrompt("?  11");
    license11Number.setImmediate(false);
    license11Number.setWidth("-1px");
    license11Number.setHeight("-1px");
    license11Number.setNullRepresentation("");
    licenseeGroup.addComponent(license11Number);

    licenseIssueArea = new TextField(" ?");
    licenseIssueArea.setInputPrompt(" ?");
    licenseIssueArea.setImmediate(false);
    licenseIssueArea.setWidth("-1px");
    licenseIssueArea.setHeight("-1px");
    licenseIssueArea.setNullRepresentation("");
    licenseeGroup.addComponent(licenseIssueArea);

    licenseIssueProvinceId = new NativeSelect("?", new Province());
    //licenseIssueProvinceId.setInputPrompt("??");
    licenseIssueProvinceId.setItemCaptionPropertyId("name");
    licenseIssueProvinceId.setImmediate(true);
    licenseIssueProvinceId.setNullSelectionAllowed(false);
    licenseIssueProvinceId.setWidth("-1px");
    licenseIssueProvinceId.setHeight("-1px");
    //licenseIssueProvinceId.setFilteringMode(FilteringMode.CONTAINS);
    licenseeGroup.addComponent(bankProvinceId);

    license17Number = new TextField("?  17");
    license17Number.setInputPrompt("?  17");
    license17Number.setImmediate(false);
    license17Number.setWidth("-1px");
    license17Number.setHeight("-1px");
    license17Number.setNullRepresentation("");
    licenseeGroup.addComponent(license17Number);

    license18Number = new TextField("?  18");
    license18Number.setInputPrompt("?  18");
    license18Number.setImmediate(false);
    license18Number.setWidth("-1px");
    license18Number.setHeight("-1px");
    license18Number.setNullRepresentation("");
    licenseeGroup.addComponent(license18Number);

    license19Number = new TextField("?  19");
    license19Number.setInputPrompt("?  19");
    license19Number.setImmediate(false);
    license19Number.setWidth("-1px");
    license19Number.setHeight("-1px");
    license19Number.setNullRepresentation("");
    licenseeGroup.addComponent(license19Number);

    fillDegreePost = new TextField("?");
    fillDegreePost.setInputPrompt("?");
    fillDegreePost.setImmediate(false);
    fillDegreePost.setWidth("-1px");
    fillDegreePost.setHeight("-1px");
    fillDegreePost.setNullRepresentation("");
    licenseeGroup.addComponent(fillDegreePost);

    fillDegreePostDate = new PopupDateField(
            "  ?");
    fillDegreePostDate.setInputPrompt("//");
    fillDegreePostDate.setImmediate(false);
    fillDegreePostDate.setWidth("-1px");
    fillDegreePostDate.setHeight("-1px");
    fillDegreePostDate.setDateFormat("dd/MM/yyyy");
    fillDegreePostDate.setLocale(new Locale("th", "TH"));
    licenseeGroup.addComponent(fillDegreePostDate);

    HorizontalLayout buttonLayout = new HorizontalLayout();
    buttonLayout.setWidth("100%");
    buttonLayout.setSpacing(true);
    licenseeGroup.addComponent(buttonLayout);

    workBack = new Button(FontAwesome.ARROW_LEFT);
    workBack.setWidth("100%");
    workBack.addClickListener(new ClickListener() {
        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
            setSelectedTab(workGroup);
        }
    });
    buttonLayout.addComponents(workBack);

    addressNext = new Button(FontAwesome.ARROW_RIGHT);
    addressNext.setWidth("100%");
    addressNext.addClickListener(new ClickListener() {
        private static final long serialVersionUID = 1L;

        @Override
        public void buttonClick(ClickEvent event) {
            setSelectedTab(addressGroup);
        }
    });
    buttonLayout.addComponents(addressNext);
}

From source file:lifetime.component.welcome.HomeView.java

License:Apache License

public HomeView(String language) {
    this.language = language;
    super.setSizeFull();
    nUsers = new InfoView("users", 10000000, FontAwesome.USERS);
    nJobs = new InfoView("jobs", 10000, FontAwesome.BRIEFCASE);
    nCourses = new InfoView("courses", 10000, FontAwesome.BOOK);
    searchText = new LifetimeTextField();
    searchButton = new LifetimeButtonLink(null, language, "Search", FontAwesome.SEARCH);
    super.addComponents(getInfoView(), getSearchView());

}

From source file:org.eclipse.hawkbit.ui.distributions.DistributionsViewMenuItem.java

License:Open Source License

@Override
public Resource getDashboardIcon() {
    return FontAwesome.BRIEFCASE;
}