Package io.jmix.ui.relatedentities
Class RelatedEntitiesClassBuilder<S extends Screen>
java.lang.Object
io.jmix.ui.relatedentities.RelatedEntitiesBuilder
io.jmix.ui.relatedentities.RelatedEntitiesClassBuilder<S>
-
Field Summary
Fields inherited from class io.jmix.ui.relatedentities.RelatedEntitiesBuilder
configurationName, entityClass, handler, metaClass, metaProperty, openMode, options, origin, property, screenId, selectedEntities
-
Constructor Summary
ConstructorDescriptionRelatedEntitiesClassBuilder
(RelatedEntitiesBuilder builder, Class<S> screenClass) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the screen.withConfigurationName
(String configurationName) Sets a name to filter configuration in opened screen.withEntityClass
(Class entityClass) Sets class of entity for which you want to see related entities.withMetaClass
(MetaClass metaClass) Sets MetaClass of entity for which you want to see related entities.withMetaProperty
(MetaProperty metaProperty) Sets MetaProperty from which you want to show related entities.withOpenMode
(OpenMode openMode) SetsOpenMode
for the lookup screen and returns the builder for chaining.withOptions
(ScreenOptions options) SetsScreenOptions
for the lookup screen and returns the builder for chaining.withProperty
(String property) Sets property from which you want to show related entities.withScreenId
(String screenId) Sets screen id and returns the builder for chaining.withSelectedEntities
(Collection<?> selectedEntities) Sets collection of selected items.Methods inherited from class io.jmix.ui.relatedentities.RelatedEntitiesBuilder
getConfigurationName, getEntityClass, getMetaClass, getMetaProperty, getOpenMode, getOptions, getOrigin, getProperty, getScreenId, getSelectedEntities, withScreenClass
-
Field Details
-
screenClass
-
-
Constructor Details
-
Method Details
-
withProperty
Description copied from class:RelatedEntitiesBuilder
Sets property from which you want to show related entities.- Overrides:
withProperty
in classRelatedEntitiesBuilder
- Parameters:
property
- property- Returns:
- current instance of builder
-
withMetaProperty
Description copied from class:RelatedEntitiesBuilder
Sets MetaProperty from which you want to show related entities.- Overrides:
withMetaProperty
in classRelatedEntitiesBuilder
- Parameters:
metaProperty
- meta property- Returns:
- current instance of builder
-
withEntityClass
Description copied from class:RelatedEntitiesBuilder
Sets class of entity for which you want to see related entities.- Overrides:
withEntityClass
in classRelatedEntitiesBuilder
- Parameters:
entityClass
- class- Returns:
- current instance of builder
-
withOpenMode
Description copied from class:RelatedEntitiesBuilder
SetsOpenMode
for the lookup screen and returns the builder for chaining.For example:
builder.withOpenMode(OpenMode.DIALOG).build();
- Overrides:
withOpenMode
in classRelatedEntitiesBuilder
- Parameters:
openMode
- open mode- Returns:
- current instance of builder
-
withScreenId
Description copied from class:RelatedEntitiesBuilder
Sets screen id and returns the builder for chaining.- Overrides:
withScreenId
in classRelatedEntitiesBuilder
- Parameters:
screenId
- identifier of the screen- Returns:
- current instance of builder
-
withOptions
Description copied from class:RelatedEntitiesBuilder
SetsScreenOptions
for the lookup screen and returns the builder for chaining.- Overrides:
withOptions
in classRelatedEntitiesBuilder
- Parameters:
options
- screen options- Returns:
- current instance of builder
-
withMetaClass
Description copied from class:RelatedEntitiesBuilder
Sets MetaClass of entity for which you want to see related entities.- Overrides:
withMetaClass
in classRelatedEntitiesBuilder
- Parameters:
metaClass
- meta class- Returns:
- current instance of builder
-
withSelectedEntities
Description copied from class:RelatedEntitiesBuilder
Sets collection of selected items.- Overrides:
withSelectedEntities
in classRelatedEntitiesBuilder
- Parameters:
selectedEntities
- selected entities- Returns:
- current instance of builder
-
withConfigurationName
Description copied from class:RelatedEntitiesBuilder
Sets a name to filter configuration in opened screen.- Overrides:
withConfigurationName
in classRelatedEntitiesBuilder
- Parameters:
configurationName
- a configuration name- Returns:
- current instance of builder
-
getScreenClass
- Returns:
- screen class
-
build
Description copied from class:RelatedEntitiesBuilder
Builds the screen.- Overrides:
build
in classRelatedEntitiesBuilder
- Returns:
- created screen
-