Package org.jboss.hal.core.finder
Class ItemActionFactory
- java.lang.Object
-
- org.jboss.hal.core.finder.ItemActionFactory
-
public class ItemActionFactory extends Object
Convenience methods for common item actions.
-
-
Constructor Summary
Constructors Constructor Description ItemActionFactory(CrudOperations crud, ItemMonitor itemMonitor, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, Resources resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ItemAction<T>placeRequest(String title, com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)<T> ItemAction<T>placeRequest(String title, com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest, Constraint constraint)<T> ItemAction<T>remove(String type, String name, AddressTemplate template, FinderColumn<T> column)Creates a 'remove' action which removes the specified resource from the given template.<T> ItemAction<T>remove(String type, String name, AddressTemplate template, ItemActionHandler<T> handler)Wraps the specified handler inside a confirmation dialog.<T> ItemAction<T>remove(String type, String name, AddressTemplate template, AddressTemplate constraint, FinderColumn<T> column)<T> ItemAction<T>remove(String type, String name, AddressTemplate template, AddressTemplate constraint, ItemActionHandler<T> handler)<T> ItemAction<T>view(com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)<T> ItemAction<T>view(String nameToken, String... parameter)<T> ItemAction<T>viewAndMonitor(String itemId, com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
-
-
-
Constructor Detail
-
ItemActionFactory
@Inject public ItemActionFactory(CrudOperations crud, ItemMonitor itemMonitor, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, Resources resources)
-
-
Method Detail
-
view
public <T> ItemAction<T> view(String nameToken, String... parameter)
-
view
public <T> ItemAction<T> view(com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
-
placeRequest
public <T> ItemAction<T> placeRequest(String title, com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
-
placeRequest
public <T> ItemAction<T> placeRequest(String title, com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest, Constraint constraint)
-
viewAndMonitor
public <T> ItemAction<T> viewAndMonitor(String itemId, com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
-
remove
public <T> ItemAction<T> remove(String type, String name, AddressTemplate template, ItemActionHandler<T> handler)
Wraps the specified handler inside a confirmation dialog. The action is executed upon confirmation.
-
remove
public <T> ItemAction<T> remove(String type, String name, AddressTemplate template, AddressTemplate constraint, ItemActionHandler<T> handler)
-
remove
public <T> ItemAction<T> remove(String type, String name, AddressTemplate template, FinderColumn<T> column)
Creates a 'remove' action which removes the specified resource from the given template. The template can contain a wildcard which is replaced by the resource name. The action wil bring up a confirmation dialog. If confirmed the resource is removed andFinderColumn.refresh(FinderColumn.RefreshMode)is called.
-
remove
public <T> ItemAction<T> remove(String type, String name, AddressTemplate template, AddressTemplate constraint, FinderColumn<T> column)
-
-