Search in sources :

Example 21 with Icon

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

the class MainLayout method filters.

private Tab filters() {
    final Span label = new Span("RSocket Filters");
    final Icon icon = FORWARD.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new RSocketFiltersView(this.filterChain, 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 22 with Icon

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

the class MainLayout method dashBoard.

private Tab dashBoard() {
    final Span label = new Span("Dashboard");
    final Icon icon = DASHBOARD.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new DashboardView(this.handlerRegistry, this.serviceRoutingSelector, 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 23 with Icon

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

the class MainLayout method system.

private Tab system() {
    final Span label = new Span("Server");
    final Icon icon = SERVER.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new SystemView());
    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 24 with Icon

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

the class MainLayout method jwt.

private Tab jwt() {
    final Span label = new Span("JWT");
    final Icon icon = PASSWORD.create();
    final Tab tab = new Tab(new HorizontalLayout(icon, label));
    tab2Workspace.put(tab, new JwtGeneratorView(this.authenticationService));
    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 25 with Icon

use of com.vaadin.flow.component.icon.Icon in project psip-automation by bssw-psip.

the class AppBar method searchModeOn.

/* === SEARCH === */
public void searchModeOn() {
    menuIcon.setVisible(false);
    title.setVisible(false);
    actionItems.setVisible(false);
    tabContainer.setVisible(false);
    contextIcon.setIcon(new Icon(VaadinIcon.ARROW_BACKWARD));
    contextIcon.setVisible(true);
    searchRegistration = contextIcon.addClickListener(e -> searchModeOff());
    search.setVisible(true);
    search.focus();
}
Also used : ComponentEventListener(com.vaadin.flow.component.ComponentEventListener) HasValue(com.vaadin.flow.component.HasValue) UIUtils(io.bssw.psip.ui.util.UIUtils) Image(com.vaadin.flow.component.html.Image) Component(com.vaadin.flow.component.Component) IMG_PATH(io.bssw.psip.ui.util.UIUtils.IMG_PATH) CssImport(com.vaadin.flow.component.dependency.CssImport) Header(com.vaadin.flow.component.html.Header) Tab(com.vaadin.flow.component.tabs.Tab) Registration(com.vaadin.flow.shared.Registration) Tabs(com.vaadin.flow.component.tabs.Tabs) FlexBoxLayout(io.bssw.psip.ui.components.FlexBoxLayout) ArrayList(java.util.ArrayList) ContextMenu(com.vaadin.flow.component.contextmenu.ContextMenu) FlexComponent(com.vaadin.flow.component.orderedlayout.FlexComponent) ComponentValueChangeEvent(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent) Icon(com.vaadin.flow.component.icon.Icon) TextField(com.vaadin.flow.component.textfield.TextField) Notification(com.vaadin.flow.component.notification.Notification) ButtonVariant(com.vaadin.flow.component.button.ButtonVariant) MainLayout(io.bssw.psip.ui.MainLayout) H1(com.vaadin.flow.component.html.H1) NaviTabs(io.bssw.psip.ui.components.navigation.tab.NaviTabs) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon) Home(io.bssw.psip.ui.views.Home) NaviTab(io.bssw.psip.ui.components.navigation.tab.NaviTab) Button(com.vaadin.flow.component.button.Button) Optional(java.util.Optional) LumoStyles(io.bssw.psip.ui.util.LumoStyles) Icon(com.vaadin.flow.component.icon.Icon) VaadinIcon(com.vaadin.flow.component.icon.VaadinIcon)

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