@Component(value="cuba_RemoveHelper")
public class RemoveOperation
extends java.lang.Object
builder(Class, FrameOwner)
method as an entry point.Modifier and Type | Class and Description |
---|---|
static class |
RemoveOperation.ActionCancelledEvent<E> |
static class |
RemoveOperation.AfterActionPerformedEvent<E> |
static class |
RemoveOperation.BeforeActionPerformedEvent<E> |
protected static class |
RemoveOperation.Operation |
static class |
RemoveOperation.RemoveBuilder<E extends Entity>
Remove builder.
|
Modifier and Type | Field and Description |
---|---|
protected DataManager |
dataManager |
protected EntityStates |
entityStates |
protected ExtendedEntities |
extendedEntities |
protected Messages |
messages |
static java.lang.String |
NAME |
protected WindowConfig |
windowConfig |
Constructor and Description |
---|
RemoveOperation() |
Modifier and Type | Method and Description |
---|---|
<E extends Entity> |
builder(java.lang.Class<E> entityClass,
FrameOwner origin)
Creates a remove builder.
|
<E extends Entity> |
builder(ListComponent<E> listComponent)
Creates a remove builder using list component, e.g.
|
protected void |
commitIfNeeded(java.util.Collection<? extends Entity> entitiesToRemove,
CollectionContainer container,
ScreenData screenData) |
protected <E extends Entity> |
excludeItems(RemoveOperation.RemoveBuilder<E> builder,
java.util.List<E> selectedItems) |
<E extends Entity> |
excludeSelected(ListComponent<E> target)
Excludes selected items from the list component without confirmation.
|
protected <E extends Entity> |
focusListComponent(RemoveOperation.RemoveBuilder<E> builder) |
protected <E extends Entity> |
getCollectionContainer(RemoveOperation.RemoveBuilder<E> builder) |
protected <E extends Entity> |
performAction(RemoveOperation.RemoveBuilder<E> builder,
java.util.List<E> selectedItems) |
protected <E extends Entity> |
performActionWithConfirmation(RemoveOperation.RemoveBuilder<E> builder,
java.util.List<E> selectedItems) |
protected <E extends Entity> |
removeItems(RemoveOperation.RemoveBuilder<E> builder,
java.util.List<E> selectedItems) |
<E extends Entity> |
removeSelected(ListComponent<E> target)
Removes selected items from the list component with confirmation dialog.
|
protected <E extends Entity> |
triggerAction(RemoveOperation.RemoveBuilder<E> builder) |
public static final java.lang.String NAME
@Inject protected WindowConfig windowConfig
@Inject protected DataManager dataManager
@Inject protected Messages messages
@Inject protected ExtendedEntities extendedEntities
@Inject protected EntityStates entityStates
public <E extends Entity> RemoveOperation.RemoveBuilder<E> builder(java.lang.Class<E> entityClass, FrameOwner origin)
E
- type of entityentityClass
- entity classorigin
- invoking screenpublic <E extends Entity> RemoveOperation.RemoveBuilder<E> builder(ListComponent<E> listComponent)
E
- type of entitylistComponent
- list componentpublic <E extends Entity> void removeSelected(ListComponent<E> target)
E
- entity typetarget
- list componentpublic <E extends Entity> void excludeSelected(ListComponent<E> target)
E
- entity typetarget
- list componentprotected <E extends Entity> void triggerAction(RemoveOperation.RemoveBuilder<E> builder)
protected <E extends Entity> void performAction(RemoveOperation.RemoveBuilder<E> builder, java.util.List<E> selectedItems)
protected <E extends Entity> void removeItems(RemoveOperation.RemoveBuilder<E> builder, java.util.List<E> selectedItems)
protected <E extends Entity> void focusListComponent(RemoveOperation.RemoveBuilder<E> builder)
protected void commitIfNeeded(java.util.Collection<? extends Entity> entitiesToRemove, CollectionContainer container, ScreenData screenData)
protected <E extends Entity> void excludeItems(RemoveOperation.RemoveBuilder<E> builder, java.util.List<E> selectedItems)
protected <E extends Entity> CollectionContainer<E> getCollectionContainer(RemoveOperation.RemoveBuilder<E> builder)
protected <E extends Entity> void performActionWithConfirmation(RemoveOperation.RemoveBuilder<E> builder, java.util.List<E> selectedItems)