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(FrameOwner frameOwner)
Creates a related screen builder.
|
void |
openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities,
com.haulmont.chile.core.model.MetaClass metaClass,
com.haulmont.chile.core.model.MetaProperty metaProperty)
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
void |
openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities,
com.haulmont.chile.core.model.MetaClass metaClass,
com.haulmont.chile.core.model.MetaProperty metaProperty,
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
Deprecated.
Use
builder(FrameOwner) to create and set up screen for related entities. |
<T extends 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 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(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 void openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities, com.haulmont.chile.core.model.MetaClass metaClass, com.haulmont.chile.core.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 selectedEntities
metaProperty
- chosen field to find related entities. Can be obtained from metaClass
@Deprecated void openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities, com.haulmont.chile.core.model.MetaClass metaClass, com.haulmont.chile.core.model.MetaProperty metaProperty, 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 selectedEntities
metaProperty
- chosen field to find related entities. Can be obtained from metaClass
descriptor
- descriptor contains screen id, WindowManager.OpenType
and
generated filter caption@Deprecated <T extends 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 selectedEntities
property
- chosen field to find related entities@Deprecated <T extends 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 selectedEntities
property
- chosen field to find related entitiesdescriptor
- descriptor contains screen id, WindowManager.OpenType
and
generated filter caption