@Test public void testSelect_CheckObserver() { HorizontalLayout content = new HorizontalLayout(); SidebarSheet sidebarSheet = new SidebarSheet(VaadinIcons.STAR_HALF_LEFT, "Test SidebarSheet", content, () -> triggered = true); sidebarSheet.select(); assertThat(triggered, is(true)); }
protected void select() { uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); }
SidebarSheet { protected void select() { uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); } }
SidebarSheet { protected void select() { uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); } @Deprecated  SidebarSheet(Resource icon, Component content, String tooltip);  SidebarSheet(Resource icon, String name, Component content);  SidebarSheet(Resource icon, String name, Component content, UiUpdateObserver uiUpdateObserver);  SidebarSheet(Resource icon, String name, Supplier<Component> contentSupplier);  SidebarSheet(Resource icon, String name, Supplier<Component> contentSupplier,
            @CheckForNull UiUpdateObserver uiUpdateObserver);  SidebarSheet(String id, Resource icon, String name, Component content, UiUpdateObserver uiUpdateObserver);  SidebarSheet(String id, Resource icon, String name, Component content);  SidebarSheet(String id, Resource icon, String name, Supplier<Component> contentSupplier);  SidebarSheet(String id, Resource icon, String name, Supplier<Component> contentSupplier,
            @CheckForNull UiUpdateObserver uiUpdateObserver); }
SidebarSheet { protected void select() { uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); } @Deprecated  SidebarSheet(Resource icon, Component content, String tooltip);  SidebarSheet(Resource icon, String name, Component content);  SidebarSheet(Resource icon, String name, Component content, UiUpdateObserver uiUpdateObserver);  SidebarSheet(Resource icon, String name, Supplier<Component> contentSupplier);  SidebarSheet(Resource icon, String name, Supplier<Component> contentSupplier,
            @CheckForNull UiUpdateObserver uiUpdateObserver);  SidebarSheet(String id, Resource icon, String name, Component content, UiUpdateObserver uiUpdateObserver);  SidebarSheet(String id, Resource icon, String name, Component content);  SidebarSheet(String id, Resource icon, String name, Supplier<Component> contentSupplier);  SidebarSheet(String id, Resource icon, String name, Supplier<Component> contentSupplier,
            @CheckForNull UiUpdateObserver uiUpdateObserver); String getId(); Button getButton(); Component getContent(); String getName(); Optional<UiUpdateObserver> getUiUpdateObserver(); void setUiUpdateObserver(@CheckForNull UiUpdateObserver uiUpdateObserver); @Override String toString(); }
SidebarSheet { protected void select() { uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); } @Deprecated  SidebarSheet(Resource icon, Component content, String tooltip);  SidebarSheet(Resource icon, String name, Component content);  SidebarSheet(Resource icon, String name, Component content, UiUpdateObserver uiUpdateObserver);  SidebarSheet(Resource icon, String name, Supplier<Component> contentSupplier);  SidebarSheet(Resource icon, String name, Supplier<Component> contentSupplier,
            @CheckForNull UiUpdateObserver uiUpdateObserver);  SidebarSheet(String id, Resource icon, String name, Component content, UiUpdateObserver uiUpdateObserver);  SidebarSheet(String id, Resource icon, String name, Component content);  SidebarSheet(String id, Resource icon, String name, Supplier<Component> contentSupplier);  SidebarSheet(String id, Resource icon, String name, Supplier<Component> contentSupplier,
            @CheckForNull UiUpdateObserver uiUpdateObserver); String getId(); Button getButton(); Component getContent(); String getName(); Optional<UiUpdateObserver> getUiUpdateObserver(); void setUiUpdateObserver(@CheckForNull UiUpdateObserver uiUpdateObserver); @Override String toString();  }