public abstract class ImportPresenter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImportPresenter.View |
| Modifier and Type | Field and Description |
|---|---|
protected LibraryPlaces |
libraryPlaces |
protected org.jboss.errai.common.client.api.Caller<LibraryService> |
libraryService |
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> |
notificationEvent |
protected org.guvnor.common.services.project.client.context.WorkspaceProjectContext |
projectContext |
protected javax.enterprise.event.Event<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> |
projectContextChangeEvent |
protected Map<ExampleProject,TileWidget> |
projectWidgetsByName |
protected org.jboss.errai.ioc.client.api.ManagedInstance<TileWidget> |
tileWidgets |
protected ImportPresenter.View |
view |
| Constructor and Description |
|---|
ImportPresenter(ImportPresenter.View view,
LibraryPlaces libraryPlaces,
org.jboss.errai.common.client.api.Caller<LibraryService> libraryService,
org.jboss.errai.ioc.client.api.ManagedInstance<TileWidget> tileWidgets,
org.guvnor.common.services.project.client.context.WorkspaceProjectContext projectContext,
javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent,
javax.enterprise.event.Event<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> projectContextChangeEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
static ImportPresenter |
examplesImportPresenter(ImportPresenter.View view,
LibraryPlaces libraryPlaces,
org.jboss.errai.common.client.api.Caller<LibraryService> libraryService,
org.jboss.errai.ioc.client.api.ManagedInstance<TileWidget> tileWidgets,
org.jboss.errai.common.client.api.Caller<ExamplesService> examplesService,
org.guvnor.common.services.project.client.context.WorkspaceProjectContext projectContext,
javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent,
javax.enterprise.event.Event<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> projectContextChangeEvent) |
List<TileWidget> |
filterProjects(String filter) |
ImportPresenter.View |
getView() |
protected abstract void |
importProjects(List<ExampleProject> projects,
org.jboss.errai.common.client.api.RemoteCallback<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> callback,
org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> errorCallback) |
protected org.uberfire.ext.widgets.common.client.callbacks.DefaultErrorCallback |
loadingErrorCallback() |
protected abstract void |
loadProjects(org.uberfire.mvp.PlaceRequest placeRequest,
org.jboss.errai.common.client.api.RemoteCallback<Set<ExampleProject>> callback) |
void |
ok() |
void |
onStartup(org.uberfire.mvp.PlaceRequest placeRequest) |
void |
setupEvent(ImportProjectsSetupEvent event) |
protected final ImportPresenter.View view
protected final LibraryPlaces libraryPlaces
protected final org.jboss.errai.common.client.api.Caller<LibraryService> libraryService
protected final org.jboss.errai.ioc.client.api.ManagedInstance<TileWidget> tileWidgets
protected final org.guvnor.common.services.project.client.context.WorkspaceProjectContext projectContext
protected final javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent
protected final javax.enterprise.event.Event<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> projectContextChangeEvent
protected Map<ExampleProject,TileWidget> projectWidgetsByName
public ImportPresenter(ImportPresenter.View view, LibraryPlaces libraryPlaces, org.jboss.errai.common.client.api.Caller<LibraryService> libraryService, org.jboss.errai.ioc.client.api.ManagedInstance<TileWidget> tileWidgets, org.guvnor.common.services.project.client.context.WorkspaceProjectContext projectContext, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, javax.enterprise.event.Event<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> projectContextChangeEvent)
@Produces @Source(value=EXAMPLE) public static ImportPresenter examplesImportPresenter(ImportPresenter.View view, LibraryPlaces libraryPlaces, org.jboss.errai.common.client.api.Caller<LibraryService> libraryService, org.jboss.errai.ioc.client.api.ManagedInstance<TileWidget> tileWidgets, org.jboss.errai.common.client.api.Caller<ExamplesService> examplesService, org.guvnor.common.services.project.client.context.WorkspaceProjectContext projectContext, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, javax.enterprise.event.Event<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> projectContextChangeEvent)
public void onStartup(org.uberfire.mvp.PlaceRequest placeRequest)
protected abstract void loadProjects(org.uberfire.mvp.PlaceRequest placeRequest,
org.jboss.errai.common.client.api.RemoteCallback<Set<ExampleProject>> callback)
protected abstract void importProjects(List<ExampleProject> projects, org.jboss.errai.common.client.api.RemoteCallback<org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent> callback, org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> errorCallback)
protected org.uberfire.ext.widgets.common.client.callbacks.DefaultErrorCallback loadingErrorCallback()
public void setupEvent(ImportProjectsSetupEvent event)
public List<TileWidget> filterProjects(String filter)
public void ok()
public void cancel()
public ImportPresenter.View getView()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.