View getView() { view.clear(); updateBreadcrumbsContainer(); updateBreadcrumbs(); return view; }
private boolean thereIsContentOnBreadcrumbs() { return thereIsBreadcrumbsFor(currentPerspective) || thereIsBreadcrumbToolbarFor(currentPerspective); }
public void clear() { breadcrumbs.clearBreadcrumbs(LIBRARY_PERSPECTIVE); }
/** * Creates a breadcrumb associated with a perspective. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param command command to be executed after the associated place request is accessed */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final Command command) { addBreadCrumb(associatedPerspective, breadCrumbLabel, null, command, true); }
private void updateBreadcrumbs() { if (thereIsBreadcrumbsFor(currentPerspective)) { breadcrumbsPerPerspective.get(currentPerspective).forEach(p -> view.addBreadcrumb(p.getView())); } if (thereIsBreadcrumbToolbarFor(currentPerspective)) { view.addBreadcrumbToolbar(breadcrumbsToolBarPerPerspective.get(currentPerspective)); } }
@PostConstruct public void createBreadcrumbs() { uberfireBreadcrumbsContainer.init(getView().getElement()); }
void updateBreadcrumbsContainer() { if (thereIsContentOnBreadcrumbs()) { uberfireBreadcrumbsContainer.enable(); } else { uberfireBreadcrumbsContainer.disable(); } }
private void updateView() { getView(); }
/** * Creates a breadcrumb associated with a perspective * and Place Request. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param associatedPlaceRequest place request associated with the breadcrumb */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final PlaceRequest associatedPlaceRequest) { addBreadCrumb(associatedPerspective, breadCrumbLabel, associatedPlaceRequest, null, true); }
public void refresh(final Command callback) { editorMaximized = false; breadcrumbs.clearBreadcrumbs(LibraryPlaces.LIBRARY_PERSPECTIVE); translationUtils.refresh(callback::execute); }
View getView() { view.clear(); updateBreadcrumbsContainer(); updateBreadcrumbs(); return view; }
@PostConstruct public void createBreadcrumbs() { uberfireBreadcrumbsContainer.init(getView().getElement()); }
private boolean thereIsContentOnBreadcrumbs() { return thereIsBreadcrumbsFor(currentPerspective) || thereIsBreadcrumbToolbarFor(currentPerspective); }
private void updateView() { getView(); }
/** * Creates a breadcrumb associated with a perspective. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param command command to be executed after the associated place request is accessed */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final Command command) { addBreadCrumb(associatedPerspective, breadCrumbLabel, null, command, true); }
/** * Creates a breadcrumb associated with a perspective. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param command command to be executed after the associated place request is accessed * @param removeDeepLevelBreadcrumbsAfterActivation defines if the deep level breadcrumbs should be removed after the breadcrumb is activated */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final Command command, final boolean removeDeepLevelBreadcrumbsAfterActivation) { addBreadCrumb(associatedPerspective, breadCrumbLabel, null, command, removeDeepLevelBreadcrumbsAfterActivation); }
/** * Creates a breadcrumb associated with a perspective * and Place Request. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param associatedPlaceRequest place request associated with the breadcrumb */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final PlaceRequest associatedPlaceRequest) { addBreadCrumb(associatedPerspective, breadCrumbLabel, associatedPlaceRequest, null, true); }
/** * Creates a breadcrumb associated with a perspective * and Place Request. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param associatedPlaceRequest place request associated with the breadcrumb * @param command command to be executed after the associated place request is accessed */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final PlaceRequest associatedPlaceRequest, final Command command) { addBreadCrumb(associatedPerspective, breadCrumbLabel, associatedPlaceRequest, command, true); }
/** * Creates a breadcrumb associated with a perspective. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param command command to be executed after the associated place request is accessed * @param removeDeepLevelBreadcrumbsAfterActivation defines if the deep level breadcrumbs should be removed after the breadcrumb is activated */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final Command command, final boolean removeDeepLevelBreadcrumbsAfterActivation) { addBreadCrumb(associatedPerspective, breadCrumbLabel, null, command, removeDeepLevelBreadcrumbsAfterActivation); }
/** * Creates a breadcrumb associated with a perspective * and Place Request. * @param associatedPerspective perspective associated with the breadcrumb * @param breadCrumbLabel label of the breadcrumb * @param associatedPlaceRequest place request associated with the breadcrumb * @param command command to be executed after the associated place request is accessed */ public void addBreadCrumb(final String associatedPerspective, final String breadCrumbLabel, final PlaceRequest associatedPlaceRequest, final Command command) { addBreadCrumb(associatedPerspective, breadCrumbLabel, associatedPlaceRequest, command, true); }