Example usage for com.vaadin.server FontAwesome TASKS

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

Introduction

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

Prototype

FontAwesome TASKS

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

Click Source Link

Usage

From source file:org.eclipse.hawkbit.ui.management.footer.ManangementConfirmationWindowLayout.java

License:Open Source License

private String getAssigmentSuccessMessage(final int assignedCount) {
    return FontAwesome.TASKS.getHtml() + SPUILabelDefinitions.HTML_SPACE
            + i18n.getMessage("message.target.assignment", new Object[] { assignedCount });
}

From source file:org.eclipse.hawkbit.ui.management.footer.ManangementConfirmationWindowLayout.java

License:Open Source License

private String getDuplicateAssignmentMessage(final int alreadyAssignedCount) {
    return FontAwesome.TASKS.getHtml() + SPUILabelDefinitions.HTML_SPACE
            + i18n.getMessage("message.target.alreadyAssigned", new Object[] { alreadyAssignedCount });
}

From source file:org.eclipse.hawkbit.ui.rollout.RolloutViewMenuItem.java

License:Open Source License

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

From source file:org.jumpmind.vaadin.ui.sqlexplorer.DefaultButtonBar.java

License:Open Source License

protected void populate(MenuBar menuBar) {
    executeAtCursorButton = menuBar.addItem("", FontAwesome.PLAY, new Command() {

        private static final long serialVersionUID = 1L;

        @Override/*  w  w  w .  jav  a 2s.c o  m*/
        public void menuSelected(MenuItem selectedItem) {
            queryPanel.execute(false);
        }
    });
    executeAtCursorButton.setDescription("Run sql under cursor (CTRL+ENTER)");

    executeScriptButton = menuBar.addItem("", FontAwesome.FORWARD, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            queryPanel.execute(true);
        }
    });
    executeScriptButton.setDescription("Run as script");

    commitButton = menuBar.addItem("", FontAwesome.ARROW_CIRCLE_O_RIGHT, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            queryPanel.commit();
        }
    });
    commitButton.setStyleName("green");
    commitButton.setDescription("Commit");
    commitButton.setEnabled(false);

    rollbackButton = menuBar.addItem("", FontAwesome.ARROW_CIRCLE_O_LEFT, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            queryPanel.rollback();
        }
    });
    rollbackButton.setStyleName("red");
    rollbackButton.setDescription("Rollback");
    rollbackButton.setEnabled(false);

    historyButton = menuBar.addItem("", FontAwesome.SEARCH, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            new SqlHistoryDialog(settingsProvider, queryPanel).showAtSize(0.6);
        }
    });
    historyButton.setDescription("Sql History");
    historyButton.setEnabled(true);

    MenuItem optionsButton = menuBar.addItem("", FontAwesome.TASKS, null);
    optionsButton.setDescription("Options");

    importButton = optionsButton.addItem("DB Import", FontAwesome.DOWNLOAD, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            new DbImportDialog(db.getPlatform()).showAtSize(0.6);
        }
    });

    exportButton = optionsButton.addItem("DB Export", FontAwesome.UPLOAD, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            new DbExportDialog(db.getPlatform(), queryPanel).showAtSize(0.6);
        }
    });

    fillButton = optionsButton.addItem("DB Fill", FontAwesome.BEER, new Command() {

        private static final long serialVersionUID = 1L;

        @Override
        public void menuSelected(MenuItem selectedItem) {
            new DbFillDialog(db.getPlatform(), queryPanel).showAtSize(0.6);
        }
    });

    for (IDbMenuItem item : additionalMenuItems) {
        optionsButton.addItem(item.getCaption(), item.getIcon(), item.getCommand());
    }
}

From source file:org.lucidj.top.Top.java

License:Apache License

@Override // MenuProvider
public void buildMenuEntries(MenuInstance menu, Map<String, Object> properties) {
    menu.addMenuEntry(menu.newMenuEntry("Top tasks", FontAwesome.TASKS, 200, NAVID));
}