public class RelatedEntitiesClassBuilder<S extends Screen> extends RelatedEntitiesBuilder
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<S> |
screenClass |
configurationName, entityClass, handler, metaClass, metaProperty, openMode, options, origin, property, screenId, selectedEntities| Constructor and Description |
|---|
RelatedEntitiesClassBuilder(RelatedEntitiesBuilder builder,
java.lang.Class<S> screenClass) |
| Modifier and Type | Method and Description |
|---|---|
S |
build()
Builds the screen.
|
java.lang.Class<S> |
getScreenClass() |
RelatedEntitiesClassBuilder<S> |
withConfigurationName(java.lang.String configurationName)
Sets a name to filter configuration in opened screen.
|
RelatedEntitiesClassBuilder<S> |
withEntityClass(java.lang.Class entityClass)
Sets class of entity for which you want to see related entities.
|
RelatedEntitiesClassBuilder<S> |
withMetaClass(io.jmix.core.metamodel.model.MetaClass metaClass)
Sets MetaClass of entity for which you want to see related entities.
|
RelatedEntitiesClassBuilder<S> |
withMetaProperty(io.jmix.core.metamodel.model.MetaProperty metaProperty)
Sets MetaProperty from which you want to show related entities.
|
RelatedEntitiesClassBuilder<S> |
withOpenMode(OpenMode openMode)
Sets
OpenMode for the lookup screen and returns the builder for chaining. |
RelatedEntitiesClassBuilder<S> |
withOptions(ScreenOptions options)
Sets
ScreenOptions for the lookup screen and returns the builder for chaining. |
RelatedEntitiesClassBuilder<S> |
withProperty(java.lang.String property)
Sets property from which you want to show related entities.
|
RelatedEntitiesClassBuilder<S> |
withScreenId(java.lang.String screenId)
Sets screen id and returns the builder for chaining.
|
RelatedEntitiesClassBuilder<S> |
withSelectedEntities(java.util.Collection<?> selectedEntities)
Sets collection of selected items.
|
getConfigurationName, getEntityClass, getMetaClass, getMetaProperty, getOpenMode, getOptions, getOrigin, getProperty, getScreenId, getSelectedEntities, withScreenClasspublic RelatedEntitiesClassBuilder(RelatedEntitiesBuilder builder, java.lang.Class<S> screenClass)
public RelatedEntitiesClassBuilder<S> withProperty(java.lang.String property)
RelatedEntitiesBuilderwithProperty in class RelatedEntitiesBuilderproperty - propertypublic RelatedEntitiesClassBuilder<S> withMetaProperty(io.jmix.core.metamodel.model.MetaProperty metaProperty)
RelatedEntitiesBuilderwithMetaProperty in class RelatedEntitiesBuildermetaProperty - meta propertypublic RelatedEntitiesClassBuilder<S> withEntityClass(java.lang.Class entityClass)
RelatedEntitiesBuilderwithEntityClass in class RelatedEntitiesBuilderentityClass - classpublic RelatedEntitiesClassBuilder<S> withOpenMode(OpenMode openMode)
RelatedEntitiesBuilderOpenMode for the lookup screen and returns the builder for chaining.
For example: builder.withOpenMode(OpenMode.DIALOG).build();
withOpenMode in class RelatedEntitiesBuilderopenMode - open modepublic RelatedEntitiesClassBuilder<S> withScreenId(java.lang.String screenId)
RelatedEntitiesBuilderwithScreenId in class RelatedEntitiesBuilderscreenId - identifier of the screenpublic RelatedEntitiesClassBuilder<S> withOptions(ScreenOptions options)
RelatedEntitiesBuilderScreenOptions for the lookup screen and returns the builder for chaining.withOptions in class RelatedEntitiesBuilderoptions - screen optionspublic RelatedEntitiesClassBuilder<S> withMetaClass(io.jmix.core.metamodel.model.MetaClass metaClass)
RelatedEntitiesBuilderwithMetaClass in class RelatedEntitiesBuildermetaClass - meta classpublic RelatedEntitiesClassBuilder<S> withSelectedEntities(java.util.Collection<?> selectedEntities)
RelatedEntitiesBuilderwithSelectedEntities in class RelatedEntitiesBuilderselectedEntities - selected entitiespublic RelatedEntitiesClassBuilder<S> withConfigurationName(java.lang.String configurationName)
RelatedEntitiesBuilderwithConfigurationName in class RelatedEntitiesBuilderconfigurationName - a configuration namepublic java.lang.Class<S> getScreenClass()
public S build()
RelatedEntitiesBuilderbuild in class RelatedEntitiesBuilder