Search in sources :

Example 86 with Icon

use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.

the class MainLayout method faq.

private Tab faq() {
    final Span label = new Span("FAQ");
    final Icon icon = QUESTION.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new FAQView());
    return tab;
}
Also used : Tab(com.vaadin.flow.component.tabs.Tab) Icon(com.vaadin.flow.component.icon.Icon) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon) Span(com.vaadin.flow.component.html.Span) HorizontalLayout(com.vaadin.flow.component.orderedlayout.HorizontalLayout)

Example 87 with Icon

use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.

the class MainLayout method apps.

private Tab apps() {
    final Span label = new Span("Apps");
    final Icon icon = BULLETS.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new AppsView(this.handlerRegistry));
    return tab;
}
Also used : Tab(com.vaadin.flow.component.tabs.Tab) Icon(com.vaadin.flow.component.icon.Icon) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon) Span(com.vaadin.flow.component.html.Span) HorizontalLayout(com.vaadin.flow.component.orderedlayout.HorizontalLayout)

Example 88 with Icon

use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.

the class MainLayout method services.

private Tab services() {
    final Span label = new Span("Services");
    final Icon icon = BULLETS.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new ServicesView(this.handlerRegistry, this.serviceRoutingSelector));
    return tab;
}
Also used : Tab(com.vaadin.flow.component.tabs.Tab) Icon(com.vaadin.flow.component.icon.Icon) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon) Span(com.vaadin.flow.component.html.Span) HorizontalLayout(com.vaadin.flow.component.orderedlayout.HorizontalLayout)

Example 89 with Icon

use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.

the class MainLayout method brokers.

private Tab brokers() {
    final Span label = new Span("Brokers");
    final Icon icon = CUBES.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new BrokersView(this.rSocketBrokerManager));
    return tab;
}
Also used : Tab(com.vaadin.flow.component.tabs.Tab) Icon(com.vaadin.flow.component.icon.Icon) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon) Span(com.vaadin.flow.component.html.Span) HorizontalLayout(com.vaadin.flow.component.orderedlayout.HorizontalLayout)

Example 90 with Icon

use of com.vaadin.flow.component.icon.Icon in project flow-components by vaadin.

the class ButtonTest method changeOrder_setIcon_setText_changeOrder.

@Test
public void changeOrder_setIcon_setText_changeOrder() {
    icon = new Icon();
    button = new Button();
    button.setIconAfterText(true);
    button.setIcon(icon);
    button.setText(TEST_STRING);
    assertIconAfterText();
    button.setIconAfterText(false);
    assertIconBeforeText();
}
Also used : Button(com.vaadin.flow.component.button.Button) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon) Icon(com.vaadin.flow.component.icon.Icon) Test(org.junit.Test)

Aggregations

Icon (com.vaadin.flow.component.icon.Icon)110 VaadinIcon (com.vaadin.flow.component.icon.VaadinIcon)94 HorizontalLayout (com.vaadin.flow.component.orderedlayout.HorizontalLayout)46 Button (com.vaadin.flow.component.button.Button)39 Span (com.vaadin.flow.component.html.Span)21 Div (com.vaadin.flow.component.html.Div)19 ComponentRenderer (com.vaadin.flow.data.renderer.ComponentRenderer)18 Tab (com.vaadin.flow.component.tabs.Tab)16 Text (com.vaadin.flow.component.Text)15 Test (org.junit.Test)12 EnhancedButton (org.komunumo.ui.component.EnhancedButton)12 Grid (com.vaadin.flow.component.grid.Grid)10 RouterLink (com.vaadin.flow.router.RouterLink)9 Notification (com.vaadin.flow.component.notification.Notification)8 Component (com.vaadin.flow.component.Component)7 ColumnTextAlign (com.vaadin.flow.component.grid.ColumnTextAlign)7 Anchor (com.vaadin.flow.component.html.Anchor)7 TextField (com.vaadin.flow.component.textfield.TextField)7 UI (com.vaadin.flow.component.UI)6 StreamResource (com.vaadin.flow.server.StreamResource)6