Example usage for com.vaadin.server FontAwesome QUESTION

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

Introduction

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

Prototype

FontAwesome QUESTION

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

Click Source Link

Usage

From source file:annis.gui.components.HelpButton.java

License:Apache License

public HelpButton(Field<T> field) {
    Validate.notNull(field);//from   w ww. j  a v  a  2s . c o  m
    this.field = field;

    CssLayout layout = new CssLayout();
    setCompositionRoot(layout);

    Button btHelp = new Button("");
    btHelp.setIcon(FontAwesome.QUESTION);
    btHelp.addStyleName(ChameleonTheme.BUTTON_BORDERLESS);
    btHelp.addStyleName("helpbutton");
    btHelp.addClickListener((Button.ClickListener) this);

    setCaption(field.getCaption());
    field.setCaption(null);

    layout.addComponent(field);
    layout.addComponent(btHelp);

}

From source file:org.jumpmind.metl.ui.views.AdminView.java

License:Open Source License

@PostConstruct
protected void init() {
    setSizeFull();/*from  w  w w.  j  av  a  2s  .co m*/

    tabbedPanel = new TabbedPanel();

    HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
    leftSplit.setSizeFull();
    leftSplit.setSplitPosition(AppConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);

    VerticalLayout container = new VerticalLayout();
    container.setSizeFull();
    container.addComponent(tabbedPanel);
    leftSplit.setSecondComponent(container);

    table = new TreeTable();
    table.addStyleName(ValoTheme.TREETABLE_NO_HORIZONTAL_LINES);
    table.addStyleName(ValoTheme.TREETABLE_NO_STRIPES);
    table.addStyleName(ValoTheme.TREETABLE_NO_VERTICAL_LINES);
    table.addStyleName(ValoTheme.TREETABLE_BORDERLESS);
    table.setColumnHeaderMode(ColumnHeaderMode.HIDDEN);
    table.setSizeFull();
    table.setCacheRate(100);
    table.setPageLength(100);
    table.setImmediate(true);
    table.setSelectable(true);
    table.addItemClickListener(this);
    table.addStyleName("noselect");
    table.addContainerProperty("id", String.class, null);
    table.setVisibleColumns(new Object[] { "id" });
    table.setColumnExpandRatio("id", 1);
    addItem("Users", Icons.USER);
    addItem("Groups", Icons.GROUP);
    addItem("REST", Icons.REST);
    addItem("General Settings", Icons.SETTINGS);
    addItem("Mail Server", Icons.EMAIL);
    addItem("Notifications", Icons.NOTIFICATION);
    addItem("Logging", Icons.LOGGING);
    addItem("About", FontAwesome.QUESTION);

    VerticalLayout navigator = new VerticalLayout();
    navigator.addStyleName(ValoTheme.MENU_ROOT);
    navigator.setSizeFull();
    leftSplit.setFirstComponent(navigator);

    MenuBar leftMenuBar = new MenuBar();
    leftMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
    leftMenuBar.setWidth(100, Unit.PERCENTAGE);
    navigator.addComponent(leftMenuBar);

    navigator.addComponent(table);
    navigator.setExpandRatio(table, 1);

    addComponent(leftSplit);

}

From source file:ui.menu.LifetimeMenu.java

License:Apache License

private void initHelpOptions() {
    helpButton = new LifetimeButtonLink("Help", FontAwesome.QUESTION);
    helpButton.addClickListener(this);
    helpButton.addFocusListener(this);
    VerticalLayout options = new VerticalLayout();
    options.setStyleName("v-menu-options");
    menu.put(helpButton, options);/*from  w ww .j a va2 s  .co m*/
}

From source file:views.MetadataUploadView.java

License:Open Source License

private void createDelimiterChangeDialogue(String headline) {
    Window subWindow = new Window(" Unexpected number format");
    subWindow.setWidth("400px");

    VerticalLayout layout = new VerticalLayout();
    layout.setSpacing(true);/*from w  w  w  .j  a va2s.  c  o m*/
    layout.setMargin(true);
    Label preInfo = new Label("The decimal delimiter of this type needs to be replaced with '.'.");
    layout.addComponent(preInfo);
    Button ok = new Button("Change numbers in this column.");
    Button no = new Button("Select different attribute.");
    ok.addClickListener(new ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            changeDelimiterInCol(headline);
            subWindow.close();
        }
    });
    no.addClickListener(new ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            resetAttribute(headline);
            subWindow.close();
        }
    });
    layout.addComponent(ok);
    layout.addComponent(no);

    subWindow.setContent(layout);
    // Center it in the browser window
    subWindow.center();
    subWindow.setModal(true);
    subWindow.setIcon(FontAwesome.QUESTION);
    subWindow.setResizable(false);
    ProjectwizardUI ui = (ProjectwizardUI) UI.getCurrent();
    ui.addWindow(subWindow);
}