Package io.jmix.flowui.util
Class RemoveOperation.RemoveBuilder<E>
java.lang.Object
io.jmix.flowui.util.RemoveOperation.RemoveBuilder<E>
- Type Parameters:
E
- entity type
- Enclosing class:
- RemoveOperation
Remove builder.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<RemoveOperation.ActionCancelledEvent<E>>
protected Consumer<RemoveOperation.AfterActionPerformedEvent<E>>
protected Consumer<RemoveOperation.BeforeActionPerformedEvent<E>>
protected boolean
protected String
protected String
protected CollectionContainer<E>
protected final Consumer<RemoveOperation.RemoveBuilder<E>>
protected ListDataComponent<E>
protected RemoveOperation.Operation
protected final View<?>
protected Consumer<Collection<E>>
-
Constructor Summary
ConstructorDescriptionRemoveBuilder
(View<?> origin, Class<E> entityClass, Consumer<RemoveOperation.RemoveBuilder<E>> actionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exclude()
Excludes items from relation: One-To-Many or Many-To-Many.getItems()
View<?>
boolean
onCancel
(Consumer<RemoveOperation.ActionCancelledEvent<E>> handler) void
remove()
Removes items.withConfirmation
(boolean confirmation) Sets whether to ask confirmation from the user.withConfirmationMessage
(String confirmationMessage) Sets confirmation dialog message.withConfirmationTitle
(String confirmationTitle) Sets confirmation dialog title.withContainer
(CollectionContainer<E> container) withListDataComponent
(ListDataComponent<E> listDataComponent) withRemoveDelegate
(Consumer<Collection<E>> removeDelegate) Sets the delegate to be invoked instead of DataManager to remove the entities from a storage.
-
Field Details
-
origin
-
entityClass
-
handler
-
operation
-
listDataComponent
-
container
-
items
-
confirmation
protected boolean confirmation -
confirmationMessage
-
confirmationTitle
-
beforeActionPerformedHandler
-
afterActionPerformedHandler
-
actionCancelledHandler
-
removeDelegate
-
-
Constructor Details
-
RemoveBuilder
-
-
Method Details
-
withListDataComponent
public RemoveOperation.RemoveBuilder<E> withListDataComponent(ListDataComponent<E> listDataComponent) -
withContainer
-
withItems
-
withConfirmation
Sets whether to ask confirmation from the user. -
withConfirmationMessage
Sets confirmation dialog message. -
withConfirmationTitle
Sets confirmation dialog title. -
beforeActionPerformed
public RemoveOperation.RemoveBuilder<E> beforeActionPerformed(Consumer<RemoveOperation.BeforeActionPerformedEvent<E>> handler) -
afterActionPerformed
public RemoveOperation.RemoveBuilder<E> afterActionPerformed(Consumer<RemoveOperation.AfterActionPerformedEvent<E>> handler) -
onCancel
public RemoveOperation.RemoveBuilder<E> onCancel(Consumer<RemoveOperation.ActionCancelledEvent<E>> handler) -
withRemoveDelegate
Sets the delegate to be invoked instead of DataManager to remove the entities from a storage. -
getListDataComponent
-
getContainer
-
getItems
-
getConfirmationTitle
-
getConfirmationMessage
-
isConfirmationRequired
public boolean isConfirmationRequired() -
getOrigin
-
getEntityClass
-
getOperation
-
getBeforeActionPerformedHandler
@Nullable public Consumer<RemoveOperation.BeforeActionPerformedEvent<E>> getBeforeActionPerformedHandler() -
getAfterActionPerformedHandler
@Nullable public Consumer<RemoveOperation.AfterActionPerformedEvent<E>> getAfterActionPerformedHandler() -
getActionCancelledHandler
-
exclude
public void exclude()Excludes items from relation: One-To-Many or Many-To-Many. -
remove
public void remove()Removes items.
-