Class UberfireBreadcrumbs
- java.lang.Object
-
- org.uberfire.ext.widgets.common.client.breadcrumbs.UberfireBreadcrumbs
-
public class UberfireBreadcrumbs extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUberfireBreadcrumbs.View
-
Constructor Summary
Constructors Constructor Description UberfireBreadcrumbs(UberfireBreadcrumbsContainer uberfireBreadcrumbsContainer, org.jboss.errai.ioc.client.api.ManagedInstance<DefaultBreadcrumbsPresenter> breadcrumbsPresenters, org.uberfire.client.mvp.PlaceManager placeManager, UberfireBreadcrumbs.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.Command command)Creates a breadcrumb associated with a perspective.voidaddBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.Command command, boolean removeDeepLevelBreadcrumbsAfterActivation)Creates a breadcrumb associated with a perspective.voidaddBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.PlaceRequest associatedPlaceRequest)Creates a breadcrumb associated with a perspective and Place Request.voidaddBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.PlaceRequest associatedPlaceRequest, org.uberfire.mvp.Command command)Creates a breadcrumb associated with a perspective and Place Request.voidaddBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.PlaceRequest associatedPlaceRequest, org.uberfire.mvp.Command command, boolean removeDeepLevelBreadcrumbsAfterActivation)Creates a breadcrumb associated with a perspective a Place Request and a target panel.voidaddBreadCrumb(String associatedPerspective, BreadcrumbPresenter breadCrumbPresenter)voidaddToolbar(String associatedPerspective, org.jboss.errai.common.client.dom.Element toolbar)Adds a toolbar to a perspective.voidclearBreadcrumbs(String associatedPerspective)Clears the breadcrumbs associated with a perspective.voidclearBreadcrumbsAndToolBars(String associatedPerspective)Clears the breadcrumbs and toolbars associated with a perspective.voidcreateBreadcrumbs()
-
-
-
Constructor Detail
-
UberfireBreadcrumbs
@Inject public UberfireBreadcrumbs(UberfireBreadcrumbsContainer uberfireBreadcrumbsContainer, org.jboss.errai.ioc.client.api.ManagedInstance<DefaultBreadcrumbsPresenter> breadcrumbsPresenters, org.uberfire.client.mvp.PlaceManager placeManager, UberfireBreadcrumbs.View view)
-
-
Method Detail
-
createBreadcrumbs
@PostConstruct public void createBreadcrumbs()
-
clearBreadcrumbs
public void clearBreadcrumbs(String associatedPerspective)
Clears the breadcrumbs associated with a perspective.- Parameters:
associatedPerspective- perspective associated with the breadcrumb
-
clearBreadcrumbsAndToolBars
public void clearBreadcrumbsAndToolBars(String associatedPerspective)
Clears the breadcrumbs and toolbars associated with a perspective.- Parameters:
associatedPerspective- perspective associated with the breadcrumb
-
addBreadCrumb
public void addBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.Command command)
Creates a breadcrumb associated with a perspective.- Parameters:
associatedPerspective- perspective associated with the breadcrumbbreadCrumbLabel- label of the breadcrumbcommand- command to be executed after the associated place request is accessed
-
addBreadCrumb
public void addBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.Command command, boolean removeDeepLevelBreadcrumbsAfterActivation)
Creates a breadcrumb associated with a perspective.- Parameters:
associatedPerspective- perspective associated with the breadcrumbbreadCrumbLabel- label of the breadcrumbcommand- command to be executed after the associated place request is accessedremoveDeepLevelBreadcrumbsAfterActivation- defines if the deep level breadcrumbs should be removed after the breadcrumb is activated
-
addBreadCrumb
public void addBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.PlaceRequest associatedPlaceRequest)
Creates a breadcrumb associated with a perspective and Place Request.- Parameters:
associatedPerspective- perspective associated with the breadcrumbbreadCrumbLabel- label of the breadcrumbassociatedPlaceRequest- place request associated with the breadcrumb
-
addBreadCrumb
public void addBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.PlaceRequest associatedPlaceRequest, org.uberfire.mvp.Command command)
Creates a breadcrumb associated with a perspective and Place Request.- Parameters:
associatedPerspective- perspective associated with the breadcrumbbreadCrumbLabel- label of the breadcrumbassociatedPlaceRequest- place request associated with the breadcrumbcommand- command to be executed after the associated place request is accessed
-
addBreadCrumb
public void addBreadCrumb(String associatedPerspective, String breadCrumbLabel, org.uberfire.mvp.PlaceRequest associatedPlaceRequest, org.uberfire.mvp.Command command, boolean removeDeepLevelBreadcrumbsAfterActivation)
Creates a breadcrumb associated with a perspective a Place Request and a target panel.- Parameters:
associatedPerspective- perspective associated with the breadcrumbbreadCrumbLabel- label of the breadcrumbassociatedPlaceRequest- place request associated with the breadcrumbcommand- command to be executed after the associated place request is accessedremoveDeepLevelBreadcrumbsAfterActivation- defines if the deep level breadcrumbs should be removed after the breadcrumb is activated
-
addBreadCrumb
public void addBreadCrumb(String associatedPerspective, BreadcrumbPresenter breadCrumbPresenter)
-
addToolbar
public void addToolbar(String associatedPerspective, org.jboss.errai.common.client.dom.Element toolbar)
Adds a toolbar to a perspective. Toolbar is placed in the right side of the breadcrumbs area.- Parameters:
associatedPerspective- perspective associated with the toolbartoolbar- toolbar that will be added
-
-