Package org.jboss.hal.core.finder
Class ColumnActionFactory
- java.lang.Object
-
- org.jboss.hal.core.finder.ColumnActionFactory
-
public class ColumnActionFactory extends Object
Provides methods to create common column actions.
-
-
Constructor Summary
Constructors Constructor Description ColumnActionFactory(CrudOperations crud, Resources resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ColumnAction<T>add(String id, String type, AddressTemplate template)Returns a column action which opens an add-resource-dialog for the given resource type.<T> ColumnAction<T>add(String id, String type, AddressTemplate template, Iterable<String> attributes)Returns a column action which opens an add-resource-dialog for the given resource type.<T> ColumnAction<T>add(String id, String type, AddressTemplate template, Iterable<String> attributes, Function<String,String> identifier, Supplier<FormItemValidation<String>> createValidator)<T> ColumnAction<T>add(String id, String type, AddressTemplate template, Iterable<String> attributes, Supplier<FormItemValidation<String>> createValidator)<T> ColumnAction<T>add(String id, String type, AddressTemplate template, String iconCss, ColumnActionHandler<T> handler)<T> ColumnAction<T>add(String id, String type, AddressTemplate template, Function<String,String> identifier)<T> ColumnAction<T>add(String id, String type, AddressTemplate template, Function<String,String> identifier, Supplier<FormItemValidation<String>> createValidator)<T> ColumnAction<T>add(String id, String type, AddressTemplate template, ColumnActionHandler<T> handler)elemental2.dom.HTMLElementaddButton(String type)elemental2.dom.HTMLElementaddButton(String title, String iconCss)<T> ColumnAction<T>refresh(String id)<T> ColumnAction<T>refresh(String id, ColumnActionHandler<T> handler)
-
-
-
Constructor Detail
-
ColumnActionFactory
@Inject public ColumnActionFactory(CrudOperations crud, Resources resources)
-
-
Method Detail
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template)
Returns a column action which opens an add-resource-dialog for the given resource type. The dialog contains fields for all required request properties.When clicking "Add", a new resource is added using the specified address template and the newly added resource is selected using the name as identifier in
FinderColumn.refresh(String).
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Function<String,String> identifier)
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Iterable<String> attributes)
Returns a column action which opens an add-resource-dialog for the given resource type. The dialog contains fields for all required request properties plus the ones specified byattributes.When clicking "Add", a new resource is added using the specified address template and the newly added resource is selected using the name as identifier in
FinderColumn.refresh(String).
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Iterable<String> attributes, Supplier<FormItemValidation<String>> createValidator)
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Function<String,String> identifier, Supplier<FormItemValidation<String>> createValidator)
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Iterable<String> attributes, Function<String,String> identifier, Supplier<FormItemValidation<String>> createValidator)
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, ColumnActionHandler<T> handler)
-
add
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, String iconCss, ColumnActionHandler<T> handler)
-
addButton
public elemental2.dom.HTMLElement addButton(String type)
-
refresh
public <T> ColumnAction<T> refresh(String id)
-
refresh
public <T> ColumnAction<T> refresh(String id, ColumnActionHandler<T> handler)
-
-