E
- item typepublic static class BulkEditors.EditorBuilder<E extends Entity>
extends java.lang.Object
BulkEditorWindow
with defined parameters.Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<E> |
entities |
protected java.lang.String |
exclude |
protected java.util.Map<java.lang.String,Field.Validator> |
fieldValidators |
protected java.util.function.Function<BulkEditors.EditorBuilder<E>,BulkEditorWindow> |
handler |
protected java.util.List<java.lang.String> |
includeProperties |
protected Screens.LaunchMode |
launchMode |
protected ListComponent<E> |
listComponent |
protected java.lang.Boolean |
loadDynamicAttributes |
protected com.haulmont.chile.core.model.MetaClass |
metaClass |
protected java.util.List<Field.Validator> |
modelValidators |
protected FrameOwner |
origin |
protected java.lang.Boolean |
useConfirmDialog |
Constructor and Description |
---|
EditorBuilder(BulkEditors.EditorBuilder<E> builder) |
EditorBuilder(com.haulmont.chile.core.model.MetaClass metaClass,
java.util.Collection<E> entities,
FrameOwner origin,
java.util.function.Function<BulkEditors.EditorBuilder<E>,BulkEditorWindow> handler) |
Modifier and Type | Method and Description |
---|---|
BulkEditorWindow |
create() |
java.util.Collection<E> |
getEntities() |
java.lang.String |
getExclude() |
java.util.Map<java.lang.String,Field.Validator> |
getFieldValidators() |
java.util.List<java.lang.String> |
getIncludeProperties() |
Screens.LaunchMode |
getLaunchMode() |
ListComponent<E> |
getListComponent() |
com.haulmont.chile.core.model.MetaClass |
getMetaClass() |
java.util.List<Field.Validator> |
getModelValidators() |
FrameOwner |
getOrigin() |
java.lang.Boolean |
isLoadDynamicAttributes() |
java.lang.Boolean |
isUseConfirmDialog() |
BulkEditors.EditorBuilder<E> |
withExclude(java.lang.String exclude)
Sets a regular expression to exclude some fields explicitly
from the list of attributes available for editing.
|
BulkEditors.EditorBuilder<E> |
withFieldValidators(java.util.Map<java.lang.String,Field.Validator> fieldValidators)
Sets a map with validators for fields that will be used for editing certain properties.
|
BulkEditors.EditorBuilder<E> |
withIncludeProperties(java.util.List<java.lang.String> includeProperties)
Sets the entity attributes to be included to bulk editor window.
|
BulkEditors.EditorBuilder<E> |
withLaunchMode(Screens.LaunchMode launchMode)
Sets screen launch mode.
|
BulkEditors.EditorBuilder<E> |
withListComponent(ListComponent<E> listComponent)
Sets the list component that displays the items to be edited.
|
BulkEditors.EditorBuilder<E> |
withLoadDynamicAttributes(java.lang.Boolean loadDynamicAttributes)
Sets whether or not the dynamic attributes of the edited entity should be displayed on
the entity's bulk editor screen.
|
BulkEditors.EditorBuilder<E> |
withModelValidators(java.util.List<Field.Validator> modelValidators)
Sets a map with validators for the result of bulk editing.
|
BulkEditors.EditorBuilder<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 com.haulmont.chile.core.model.MetaClass metaClass
protected final FrameOwner origin
protected final java.util.function.Function<BulkEditors.EditorBuilder<E extends Entity>,BulkEditorWindow> handler
protected Screens.LaunchMode launchMode
protected ListComponent<E extends Entity> listComponent
protected java.lang.String exclude
protected java.util.List<java.lang.String> includeProperties
protected java.util.Map<java.lang.String,Field.Validator> fieldValidators
protected java.util.List<Field.Validator> modelValidators
protected java.lang.Boolean loadDynamicAttributes
protected java.lang.Boolean useConfirmDialog
public EditorBuilder(BulkEditors.EditorBuilder<E> builder)
public EditorBuilder(com.haulmont.chile.core.model.MetaClass metaClass, java.util.Collection<E> entities, FrameOwner origin, java.util.function.Function<BulkEditors.EditorBuilder<E>,BulkEditorWindow> handler)
public BulkEditors.EditorBuilder<E> withLaunchMode(Screens.LaunchMode launchMode)
launchMode
- the launch mode to setpublic BulkEditors.EditorBuilder<E> withListComponent(ListComponent<E> listComponent)
listComponent
- the list component to be usedpublic BulkEditors.EditorBuilder<E> withExclude(java.lang.String exclude)
exclude
- a regular expressionpublic BulkEditors.EditorBuilder<E> withIncludeProperties(java.util.List<java.lang.String> includeProperties)
includeProperties
- the entity attributes to be included to bulk editor windowpublic BulkEditors.EditorBuilder<E> withFieldValidators(java.util.Map<java.lang.String,Field.Validator> fieldValidators)
fieldValidators
- a map with validators for fields that will be used for editing certain propertiespublic BulkEditors.EditorBuilder<E> withModelValidators(java.util.List<Field.Validator> modelValidators)
modelValidators
- a map with validators for the result of bulk editingpublic BulkEditors.EditorBuilder<E> withLoadDynamicAttributes(java.lang.Boolean loadDynamicAttributes)
loadDynamicAttributes
- whether or not the dynamic attributes
of the edited entity should be displayedpublic BulkEditors.EditorBuilder<E> withUseConfirmDialog(java.lang.Boolean useConfirmDialog)
useConfirmDialog
- whether or not the confirmation dialog should be displayedpublic FrameOwner getOrigin()
FrameOwner
of bulk editorpublic com.haulmont.chile.core.model.MetaClass getMetaClass()
MetaClass
of itemspublic java.util.Collection<E> getEntities()
public Screens.LaunchMode getLaunchMode()
public ListComponent<E> getListComponent()
public java.lang.String getExclude()
public java.util.List<java.lang.String> getIncludeProperties()
public java.util.Map<java.lang.String,Field.Validator> getFieldValidators()
public java.util.List<Field.Validator> getModelValidators()
public java.lang.Boolean isLoadDynamicAttributes()
public java.lang.Boolean isUseConfirmDialog()
public BulkEditorWindow create()
BulkEditorWindow