Class ProjectBranchBreadcrumb
- java.lang.Object
-
- org.kie.workbench.common.screens.library.client.util.breadcrumb.ProjectBranchBreadcrumb
-
- All Implemented Interfaces:
org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
@Dependent public class ProjectBranchBreadcrumb extends Object implements org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProjectBranchBreadcrumb.View
-
Field Summary
Fields Modifier and Type Field Description static Comparator<org.guvnor.structure.repositories.Branch>BRANCH_ALPHABETICAL_ORDER_COMPARATOR
-
Constructor Summary
Constructors Constructor Description ProjectBranchBreadcrumb(ProjectBranchBreadcrumb.View view, LibraryPlaces libraryPlaces, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, org.guvnor.common.services.project.client.security.ProjectController projectController, org.uberfire.client.promise.Promises promises)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voiddeactivate()List<org.guvnor.structure.repositories.Branch>getBranches()org.guvnor.structure.repositories.BranchgetCurrentBranch()org.uberfire.client.mvp.UberElemental<? extends org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter>getView()voidnewBranchEvent(org.guvnor.structure.repositories.NewBranchEvent newBranchEvent)voidonBranchChanged(org.guvnor.structure.repositories.Branch branch)voidrepositoryUpdatedEvent(org.guvnor.structure.repositories.RepositoryUpdatedEvent event)ProjectBranchBreadcrumbsetup(Collection<org.guvnor.structure.repositories.Branch> branches)
-
-
-
Field Detail
-
BRANCH_ALPHABETICAL_ORDER_COMPARATOR
public static final Comparator<org.guvnor.structure.repositories.Branch> BRANCH_ALPHABETICAL_ORDER_COMPARATOR
-
-
Constructor Detail
-
ProjectBranchBreadcrumb
@Inject public ProjectBranchBreadcrumb(ProjectBranchBreadcrumb.View view, LibraryPlaces libraryPlaces, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, org.guvnor.common.services.project.client.security.ProjectController projectController, org.uberfire.client.promise.Promises promises)
-
-
Method Detail
-
setup
public ProjectBranchBreadcrumb setup(Collection<org.guvnor.structure.repositories.Branch> branches)
-
activate
public void activate()
- Specified by:
activatein interfaceorg.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceorg.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
-
getCurrentBranch
public org.guvnor.structure.repositories.Branch getCurrentBranch()
-
getBranches
public List<org.guvnor.structure.repositories.Branch> getBranches()
-
getView
public org.uberfire.client.mvp.UberElemental<? extends org.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter> getView()
- Specified by:
getViewin interfaceorg.uberfire.ext.widgets.common.client.breadcrumbs.widget.BreadcrumbPresenter
-
onBranchChanged
public void onBranchChanged(org.guvnor.structure.repositories.Branch branch)
-
newBranchEvent
public void newBranchEvent(@Observes org.guvnor.structure.repositories.NewBranchEvent newBranchEvent)
-
repositoryUpdatedEvent
public void repositoryUpdatedEvent(@Observes org.guvnor.structure.repositories.RepositoryUpdatedEvent event)
-
-