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, withScreenClass
public RelatedEntitiesClassBuilder(RelatedEntitiesBuilder builder, java.lang.Class<S> screenClass)
public RelatedEntitiesClassBuilder<S> withProperty(java.lang.String property)
RelatedEntitiesBuilder
withProperty
in class RelatedEntitiesBuilder
property
- propertypublic RelatedEntitiesClassBuilder<S> withMetaProperty(io.jmix.core.metamodel.model.MetaProperty metaProperty)
RelatedEntitiesBuilder
withMetaProperty
in class RelatedEntitiesBuilder
metaProperty
- meta propertypublic RelatedEntitiesClassBuilder<S> withEntityClass(java.lang.Class entityClass)
RelatedEntitiesBuilder
withEntityClass
in class RelatedEntitiesBuilder
entityClass
- classpublic RelatedEntitiesClassBuilder<S> withOpenMode(OpenMode openMode)
RelatedEntitiesBuilder
OpenMode
for the lookup screen and returns the builder for chaining.
For example: builder.withOpenMode(OpenMode.DIALOG).build();
withOpenMode
in class RelatedEntitiesBuilder
openMode
- open modepublic RelatedEntitiesClassBuilder<S> withScreenId(java.lang.String screenId)
RelatedEntitiesBuilder
withScreenId
in class RelatedEntitiesBuilder
screenId
- identifier of the screenpublic RelatedEntitiesClassBuilder<S> withOptions(ScreenOptions options)
RelatedEntitiesBuilder
ScreenOptions
for the lookup screen and returns the builder for chaining.withOptions
in class RelatedEntitiesBuilder
options
- screen optionspublic RelatedEntitiesClassBuilder<S> withMetaClass(io.jmix.core.metamodel.model.MetaClass metaClass)
RelatedEntitiesBuilder
withMetaClass
in class RelatedEntitiesBuilder
metaClass
- meta classpublic RelatedEntitiesClassBuilder<S> withSelectedEntities(java.util.Collection<?> selectedEntities)
RelatedEntitiesBuilder
withSelectedEntities
in class RelatedEntitiesBuilder
selectedEntities
- selected entitiespublic RelatedEntitiesClassBuilder<S> withConfigurationName(java.lang.String configurationName)
RelatedEntitiesBuilder
withConfigurationName
in class RelatedEntitiesBuilder
configurationName
- a configuration namepublic java.lang.Class<S> getScreenClass()
public S build()
RelatedEntitiesBuilder
build
in class RelatedEntitiesBuilder