@Test public void testSelect_checkVisibilitySetToTrue() { HorizontalLayout content = new HorizontalLayout(); SidebarSheet sheet = createSideBarSheet(content); sheet.select(); assertThat(content.isVisible(), is(true)); }
protected void select() { getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); }
SidebarSheet { protected void select() { getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); } }
SidebarSheet { protected void select() { getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); } @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 { protected void select() { getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); } @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); Button getButton(); Component getContent(); String getName(); @Override String toString(); }
SidebarSheet { protected void select() { getContent().setVisible(true); getButton().addStyleName(LinkkiApplicationTheme.SIDEBAR_SELECTED); uiUpdateObserver.ifPresent(UiUpdateObserver::uiUpdated); } @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); Button getButton(); Component getContent(); String getName(); @Override String toString();  }