Example usage for com.vaadin.server FontAwesome GEARS

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

Introduction

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

Prototype

FontAwesome GEARS

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

Click Source Link

Usage

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.AbstractMenuItemFactoryImpl.java

License:Apache License

/**
 * Creates the admin menu./*from   w  ww.  j a v  a2  s . co m*/
 *
 * @param mainViewItem
 *            the main view item
 */
private static void createAdminMenu(final MenuItem mainViewItem) {
    if (UserContextUtil.allowRoleInSecurityContext(ROLE_ADMIN)) {
        final MenuItem adminMenuItem = mainViewItem.addItem(ADMIN_TEXT, FontAwesome.SERVER, null);

        final MenuItem configurationMenuItem = adminMenuItem.addItem(CONFIGURATION, FontAwesome.GEARS, null);
        configurationMenuItem.addItem(APPLICATION_CONFIGURATION, FontAwesome.GEARS, COMMAND6);

        configurationMenuItem.addItem(AGENCY, FontAwesome.SERVER, COMMAND7);
        configurationMenuItem.addItem(PORTAL, FontAwesome.SITEMAP, COMMAND8);
        configurationMenuItem.addItem(COUNTRY, FontAwesome.FLAG, COMMAND9);
        configurationMenuItem.addItem(LANGUAGE, FontAwesome.LANGUAGE, COMMAND10);
        configurationMenuItem.addItem(LANGUAGE_CONTENT, FontAwesome.FILE_TEXT, COMMAND11);

        final MenuItem managementMenuItem = adminMenuItem.addItem(MANAGEMENT, FontAwesome.SERVER, null);

        managementMenuItem.addItem(AGENT_OPERATIONS_TEXT, FontAwesome.USER_SECRET, COMMAND12);

        managementMenuItem.addItem(DATA_SUMMARY_TEXT, FontAwesome.DATABASE, COMMAND13);

        managementMenuItem.addItem("Email", FontAwesome.MAIL_FORWARD, COMMAND19);

        managementMenuItem.addItem(SYSTEM_PERFORMANCE, FontAwesome.DASHBOARD, COMMAND14);

        final MenuItem userActivityMenuItem = adminMenuItem.addItem(USER_ACTIVITY, FontAwesome.DATABASE, null);
        userActivityMenuItem.addItem(APPLICATION_SESSION, FontAwesome.LAPTOP, COMMAND15);
        userActivityMenuItem.addItem(APPLICATION_EVENT, FontAwesome.ARROWS, COMMAND16);
        userActivityMenuItem.addItem(APPLICATION_EVENT_CHARTS, FontAwesome.ARROWS, COMMAND20);

        userActivityMenuItem.addItem(USERACCOUNT, FontAwesome.GROUP, COMMAND17);

    }
}

From source file:org.eclipse.hawkbit.simulator.ui.GenerateDialog.java

License:Open Source License

private void createOkButton(final GenerateDialogCallback callback) {

    this.buttonOk = new Button("generate");
    buttonOk.setImmediate(true);//from   w ww.j  a  v  a  2 s .  c om
    buttonOk.setIcon(FontAwesome.GEARS);
    buttonOk.addClickListener(event -> {
        try {
            callback.okButton(namePrefixTextField.getValue(), tenantTextField.getValue(),
                    Integer.valueOf(amountTextField.getValue().replace(".", "").replace(",", "")),
                    Integer.valueOf(pollDelayTextField.getValue().replace(".", "")),
                    new URL(pollUrlTextField.getValue()), gatewayTokenTextField.getValue(),
                    (Protocol) protocolGroup.getValue());
        } catch (final NumberFormatException | MalformedURLException e) {
            LOGGER.info(e.getMessage(), e);
        }
        GenerateDialog.this.close();
    });
}

From source file:org.eclipse.hawkbit.simulator.ui.SimulatorView.java

License:Open Source License

private void createToolbar() {
    final Button createDevicesButton = new Button("generate...");
    createDevicesButton.setIcon(FontAwesome.GEARS);
    createDevicesButton.addClickListener(event -> openGenerateDialog());

    final Button clearDevicesButton = new Button("clear");
    clearDevicesButton.setIcon(FontAwesome.ERASER);
    clearDevicesButton.addClickListener(event -> clearSimulatedDevices());

    toolbar.addComponent(createDevicesButton);
    toolbar.addComponent(clearDevicesButton);
    toolbar.setSpacing(true);//from  ww  w .j a va  2s. c om
}