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
FieldsModifier and TypeFieldDescriptionprotected Consumer<RemoveOperation.ActionCancelledEvent<E>>protected Consumer<RemoveOperation.AfterActionPerformedEvent<E>>protected Consumer<RemoveOperation.BeforeActionPerformedEvent<E>>protected booleanprotected Stringprotected Stringprotected CollectionContainer<E>protected final Consumer<RemoveOperation.RemoveBuilder<E>>protected ListDataComponent<E>protected RemoveOperation.Operationprotected final Screen - 
Constructor Summary
ConstructorsConstructorDescriptionRemoveBuilder(Screen origin, Class<E> entityClass, Consumer<RemoveOperation.RemoveBuilder<E>> actionHandler)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidexclude()Excludes items from relation: One-To-Many or Many-To-Many.getItems()booleanonCancel(Consumer<RemoveOperation.ActionCancelledEvent<E>> handler) voidremove()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. 
 -