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<?>
-
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)
-
Field Details
-
origin
-
entityClass
-
handler
-
operation
-
listDataComponent
-
container
-
items
-
confirmation
protected boolean confirmation -
confirmationMessage
-
confirmationTitle
-
beforeActionPerformedHandler
-
afterActionPerformedHandler
-
actionCancelledHandler
-
-
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) -
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.
-