E
- item typepublic class BulkEditorBuilder<E>
extends java.lang.Object
BulkEditorWindow
with defined parameters.Modifier and Type | Field and Description |
---|---|
protected ColumnsMode |
columnsMode |
protected java.util.Collection<E> |
entities |
protected java.lang.String |
exclude |
protected FieldSorter |
fieldSorter |
protected java.util.Map<java.lang.String,Validator<?>> |
fieldValidators |
protected java.util.function.Function<BulkEditorBuilder<E>,BulkEditorWindow<E>> |
handler |
protected java.util.List<java.lang.String> |
includeProperties |
protected ListComponent<E> |
listComponent |
protected io.jmix.core.metamodel.model.MetaClass |
metaClass |
protected java.util.List<Validator<?>> |
modelValidators |
protected OpenMode |
openMode |
protected FrameOwner |
origin |
protected java.lang.Boolean |
useConfirmDialog |
Constructor and Description |
---|
BulkEditorBuilder(BulkEditorBuilder<E> builder) |
BulkEditorBuilder(io.jmix.core.metamodel.model.MetaClass metaClass,
java.util.Collection<E> entities,
FrameOwner origin,
java.util.function.Function<BulkEditorBuilder<E>,BulkEditorWindow<E>> handler) |
Modifier and Type | Method and Description |
---|---|
BulkEditorWindow<E> |
create() |
ColumnsMode |
getColumnsMode() |
java.util.Collection<E> |
getEntities() |
java.lang.String |
getExclude() |
FieldSorter |
getFieldSorter() |
java.util.Map<java.lang.String,Validator<?>> |
getFieldValidators() |
java.util.List<java.lang.String> |
getIncludeProperties() |
ListComponent<E> |
getListComponent() |
io.jmix.core.metamodel.model.MetaClass |
getMetaClass() |
java.util.List<Validator<?>> |
getModelValidators() |
OpenMode |
getOpenMode() |
FrameOwner |
getOrigin() |
java.lang.Boolean |
isUseConfirmDialog() |
BulkEditorBuilder<E> |
withColumnsMode(ColumnsMode columnsMode)
Sets the columns mode for editor which defines number of columns.
|
BulkEditorBuilder<E> |
withExclude(java.lang.String exclude)
Sets a regular expression to exclude some fields explicitly
from the list of attributes available for editing.
|
BulkEditorBuilder<E> |
withFieldSorter(FieldSorter fieldSorter)
Sets field sorter that allows you to sort fields by custom logic.
|
BulkEditorBuilder<E> |
withFieldValidators(java.util.Map<java.lang.String,Validator<?>> fieldValidators)
Sets a map with validators for fields that will be used for editing certain properties.
|
BulkEditorBuilder<E> |
withIncludeProperties(java.util.List<java.lang.String> includeProperties)
Sets the entity attributes to be included to bulk editor window.
|
BulkEditorBuilder<E> |
withListComponent(ListComponent<E> listComponent)
Sets the list component that displays the items to be edited.
|
BulkEditorBuilder<E> |
withModelValidators(java.util.List<Validator<?>> modelValidators)
Sets a map with validators for the result of bulk editing.
|
BulkEditorBuilder<E> |
withOpenMode(OpenMode openMode)
Sets screen open mode.
|
BulkEditorBuilder<E> |
withUseConfirmDialog(java.lang.Boolean useConfirmDialog)
Sets whether or not the confirmation dialog should be displayed to
the user before saving the changes.
|
protected final io.jmix.core.metamodel.model.MetaClass metaClass
protected final FrameOwner origin
protected final java.util.Collection<E> entities
protected final java.util.function.Function<BulkEditorBuilder<E>,BulkEditorWindow<E>> handler
protected OpenMode openMode
protected ListComponent<E> listComponent
protected java.lang.String exclude
protected java.util.List<java.lang.String> includeProperties
protected java.util.Map<java.lang.String,Validator<?>> fieldValidators
protected java.util.List<Validator<?>> modelValidators
protected java.lang.Boolean useConfirmDialog
protected FieldSorter fieldSorter
protected ColumnsMode columnsMode
public BulkEditorBuilder(BulkEditorBuilder<E> builder)
public BulkEditorBuilder(io.jmix.core.metamodel.model.MetaClass metaClass, java.util.Collection<E> entities, FrameOwner origin, java.util.function.Function<BulkEditorBuilder<E>,BulkEditorWindow<E>> handler)
public BulkEditorBuilder<E> withOpenMode(OpenMode openMode)
openMode
- the open mode to setpublic BulkEditorBuilder<E> withListComponent(ListComponent<E> listComponent)
listComponent
- the list component to be usedpublic BulkEditorBuilder<E> withExclude(java.lang.String exclude)
exclude
- a regular expressionpublic BulkEditorBuilder<E> withIncludeProperties(java.util.List<java.lang.String> includeProperties)
includeProperties
- the entity attributes to be included to bulk editor windowpublic BulkEditorBuilder<E> withFieldValidators(java.util.Map<java.lang.String,Validator<?>> fieldValidators)
fieldValidators
- a map with validators for fields that will be used for editing certain propertiespublic BulkEditorBuilder<E> withModelValidators(java.util.List<Validator<?>> modelValidators)
modelValidators
- a map with validators for the result of bulk editingpublic BulkEditorBuilder<E> withUseConfirmDialog(java.lang.Boolean useConfirmDialog)
useConfirmDialog
- whether or not the confirmation dialog should be displayedpublic BulkEditorBuilder<E> withFieldSorter(FieldSorter fieldSorter)
fieldSorter
- field sorterpublic BulkEditorBuilder<E> withColumnsMode(ColumnsMode columnsMode)
columnsMode
- columns modeColumnsMode.ONE_COLUMN
,
ColumnsMode.TWO_COLUMNS
public FrameOwner getOrigin()
FrameOwner
of bulk editorpublic io.jmix.core.metamodel.model.MetaClass getMetaClass()
MetaClass
of itemspublic java.util.Collection<E> getEntities()
public OpenMode getOpenMode()
@Nullable public ListComponent<E> getListComponent()
@Nullable public java.lang.String getExclude()
@Nullable public java.util.List<java.lang.String> getIncludeProperties()
@Nullable public java.util.Map<java.lang.String,Validator<?>> getFieldValidators()
@Nullable public java.util.List<Validator<?>> getModelValidators()
@Nullable public java.lang.Boolean isUseConfirmDialog()
@Nullable public FieldSorter getFieldSorter()
@Nullable public ColumnsMode getColumnsMode()
ColumnsMode.ONE_COLUMN
,
ColumnsMode.TWO_COLUMNS
public BulkEditorWindow<E> create()
BulkEditorWindow