public class ColumnActionFactory extends Object
| Constructor and Description |
|---|
ColumnActionFactory(CrudOperations crud,
Resources resources) |
| Modifier and Type | Method and 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,
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,
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) |
<T> ColumnAction<T> |
add(String id,
String type,
AddressTemplate template,
String iconCss,
ColumnActionHandler<T> handler) |
elemental2.dom.HTMLElement |
addButton(String type) |
elemental2.dom.HTMLElement |
addButton(String title,
String iconCss) |
<T> ColumnAction<T> |
refresh(String id) |
<T> ColumnAction<T> |
refresh(String id,
ColumnActionHandler<T> handler) |
@Inject public ColumnActionFactory(CrudOperations crud, Resources resources)
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template)
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).
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Function<String,String> identifier)
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Iterable<String> attributes)
attributes.
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).
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, Iterable<String> attributes, Function<String,String> identifier)
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, ColumnActionHandler<T> handler)
public <T> ColumnAction<T> add(String id, String type, AddressTemplate template, String iconCss, ColumnActionHandler<T> handler)
public elemental2.dom.HTMLElement addButton(String type)
public <T> ColumnAction<T> refresh(String id)
public <T> ColumnAction<T> refresh(String id, ColumnActionHandler<T> handler)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.