Search in sources :

Example 1 with ProfileButton

use of com.github.appreciated.app.layout.addons.profile.ProfileButton in project vaadin-app-layout by appreciated.

the class ProfileView method furtherConfiguration.

@Override
public void furtherConfiguration(AppLayoutBuilder builder) {
    ProfileButton button = AppBarProfileButtonBuilder.get().withItem("Profile Entry 1", event -> Notification.show("Profile Entry 1 clicked")).withItem("Profile Entry 2", event -> Notification.show("Profile Entry 2 clicked")).withItem("Profile Entry 3", event -> Notification.show("Profile Entry 3 clicked")).build();
    button.getWrappedComponent().setId("it-test-profile-button");
    builder.withAppBar(button);
}
Also used : LeftLayouts(com.github.appreciated.app.layout.component.applayout.LeftLayouts) AppLayoutBuilder(com.github.appreciated.app.layout.component.builder.AppLayoutBuilder) Component(com.vaadin.flow.component.Component) AppLayout(com.github.appreciated.app.layout.component.applayout.AppLayout) AbstractLeftBehaviorBasicView(com.github.appreciated.app.layout.test.base.AbstractLeftBehaviorBasicView) RoutePrefix(com.vaadin.flow.router.RoutePrefix) AppBarProfileButtonBuilder(com.github.appreciated.app.layout.addons.profile.builder.AppBarProfileButtonBuilder) com.github.appreciated.app.layout.test.addon.profile.view(com.github.appreciated.app.layout.test.addon.profile.view) Notification(com.vaadin.flow.component.notification.Notification) ProfileButton(com.github.appreciated.app.layout.addons.profile.ProfileButton) ProfileButton(com.github.appreciated.app.layout.addons.profile.ProfileButton)

Aggregations

ProfileButton (com.github.appreciated.app.layout.addons.profile.ProfileButton)1 AppBarProfileButtonBuilder (com.github.appreciated.app.layout.addons.profile.builder.AppBarProfileButtonBuilder)1 AppLayout (com.github.appreciated.app.layout.component.applayout.AppLayout)1 LeftLayouts (com.github.appreciated.app.layout.component.applayout.LeftLayouts)1 AppLayoutBuilder (com.github.appreciated.app.layout.component.builder.AppLayoutBuilder)1 com.github.appreciated.app.layout.test.addon.profile.view (com.github.appreciated.app.layout.test.addon.profile.view)1 AbstractLeftBehaviorBasicView (com.github.appreciated.app.layout.test.base.AbstractLeftBehaviorBasicView)1 Component (com.vaadin.flow.component.Component)1 Notification (com.vaadin.flow.component.notification.Notification)1 RoutePrefix (com.vaadin.flow.router.RoutePrefix)1