@Component(value="cuba_RelatedEntities") public class RelatedEntitiesBean extends java.lang.Object implements RelatedEntitiesAPI
RelatedEntitiesAPI.RelatedScreenDescriptor
NAME
Constructor and Description |
---|
RelatedEntitiesBean() |
Modifier and Type | Method and Description |
---|---|
void |
openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities,
MetaClass metaClass,
MetaProperty metaProperty)
Shows found related entities in default browse screen.
|
void |
openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities,
MetaClass metaClass,
MetaProperty metaProperty,
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
Shows found related entities in chosen screen.
|
<T extends Entity> |
openRelatedScreen(java.util.Collection<T> selectedEntities,
java.lang.Class<T> clazz,
java.lang.String property)
Shows found related entities in default browse screen.
|
<T extends Entity> |
openRelatedScreen(java.util.Collection<T> selectedEntities,
java.lang.Class<T> clazz,
java.lang.String property,
RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
Shows found related entities in chosen screen.
|
public void openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities, MetaClass metaClass, MetaProperty metaProperty)
RelatedEntitiesAPI
openRelatedScreen
in interface RelatedEntitiesAPI
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
public void openRelatedScreen(java.util.Collection<? extends Entity> selectedEntities, MetaClass metaClass, MetaProperty metaProperty, RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
RelatedEntitiesAPI
openRelatedScreen
in interface RelatedEntitiesAPI
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 captionpublic <T extends Entity> void openRelatedScreen(java.util.Collection<T> selectedEntities, java.lang.Class<T> clazz, java.lang.String property)
RelatedEntitiesAPI
openRelatedScreen
in interface RelatedEntitiesAPI
selectedEntities
- set of entities which represents one side of relationclazz
- class of single entity from selectedEntities
property
- chosen field to find related entitiespublic <T extends Entity> void openRelatedScreen(java.util.Collection<T> selectedEntities, java.lang.Class<T> clazz, java.lang.String property, RelatedEntitiesAPI.RelatedScreenDescriptor descriptor)
RelatedEntitiesAPI
openRelatedScreen
in interface RelatedEntitiesAPI
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