public interface RelatedEntitiesAPI
| Modifier and Type | Interface and Description |
|---|---|
static class |
RelatedEntitiesAPI.RelatedScreenDescriptor
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
RelatedEntitiesBuilder |
builder(io.jmix.ui.screen.FrameOwner frameOwner)
Creates a related screen builder.
|
default void |
openRelatedScreen(java.util.Collection<? extends io.jmix.core.Entity> selectedEntities,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.metamodel.model.MetaProperty metaProperty)
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
void |
openRelatedScreen(java.util.Collection<? extends io.jmix.core.Entity> selectedEntities,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.metamodel.model.MetaProperty metaProperty,
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
default <T extends io.jmix.core.Entity> |
openRelatedScreen(java.util.Collection<T> selectedEntities,
java.lang.Class<T> clazz,
java.lang.String property)
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
<T extends io.jmix.core.Entity> |
openRelatedScreen(java.util.Collection<T> selectedEntities,
java.lang.Class<T> clazz,
java.lang.String property,
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
static final java.lang.String NAME
RelatedEntitiesBuilder builder(io.jmix.ui.screen.FrameOwner frameOwner)
Note, it is necessary to set MetaClass or entity class and property or MetaProperty to builder.
Example of creating screen with entity class and property:
RelatedEntitiesBuilder builder = relatedEntitiesAPI.builder(this);
Screen colourBrowser = builder
.withEntityClass(Car.class)
.withProperty("colour")
.withSelectedEntities(carsTable.getSelected())
.withScreenClass(ColourBrowser.class)
.build();
colourBrowser.show();
frameOwner - invoking screen@Deprecated
default void openRelatedScreen(java.util.Collection<? extends io.jmix.core.Entity> selectedEntities,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.metamodel.model.MetaProperty metaProperty)
builder(FrameOwner) to create and set up screen for related entities.selectedEntities - set of entities which represents one side of relationmetaClass - metaClass of single entity from selectedEntitiesmetaProperty - chosen field to find related entities. Can be obtained from metaClass@Deprecated
void openRelatedScreen(java.util.Collection<? extends io.jmix.core.Entity> selectedEntities,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.metamodel.model.MetaProperty metaProperty,
@Nullable
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
builder(FrameOwner) to create and set up screen for related entities.selectedEntities - set of entities which represents one side of relationmetaClass - metaClass of single entity from selectedEntitiesmetaProperty - chosen field to find related entities. Can be obtained from metaClassdescriptor - descriptor contains screen id, WindowManager.OpenType and
generated filter caption@Deprecated
default <T extends io.jmix.core.Entity> void openRelatedScreen(java.util.Collection<T> selectedEntities,
java.lang.Class<T> clazz,
java.lang.String property)
builder(FrameOwner) to create and set up screen for related entities.selectedEntities - set of entities which represents one side of relationclazz - class of single entity from selectedEntitiesproperty - chosen field to find related entities@Deprecated
<T extends io.jmix.core.Entity> void openRelatedScreen(java.util.Collection<T> selectedEntities,
java.lang.Class<T> clazz,
java.lang.String property,
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
builder(FrameOwner) to create and set up screen for related entities.selectedEntities - set of entities which represents one side of relationclazz - class of single entity from selectedEntitiesproperty - chosen field to find related entitiesdescriptor - descriptor contains screen id, WindowManager.OpenType and
generated filter caption