Class FragmentCreator
java.lang.Object
io.jmix.bpmflowui.view.modeler.impl.FragmentCreator
-
Constructor Summary
ConstructorDescriptionFragmentCreator
(DialogWindows dialogWindows, Views views, ModelElementsCreator modelElementsCreator) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(View<?> owner, Object editedEntity, Class<? extends StandardDetailView<?>> fragmentClass) Creates details view as editor fragment, that can be attached to any ui component as ui component Supported BeforeShowEventcreateList
(Class<? extends StandardView> fragmentClass) Creates details view as list fragment Delegates creation to io.jmix.flowui.Views class<T extends AbstractElementPropertiesComponent<Object>>
TcreatePropertiesComponent
(View<?> owner, String jsonEntity, BpmnModeler modeler, Class<? extends AbstractElementPropertiesComponent> fragmentClass) Creates root fragments for one of bpmn schema elements such as ServiceTask, UserTask, StartEvent etccreateView
(AbstractElementPropertiesComponent<?> owner, Object editedEntity, Class<? extends AbstractElementPropertiesComponent<?>> fragmentClass) Creates AbstractElementPropertiesComponent fragment (base view that contains one of bpm model)
-
Constructor Details
-
FragmentCreator
public FragmentCreator(DialogWindows dialogWindows, Views views, ModelElementsCreator modelElementsCreator)
-
-
Method Details
-
create
public StandardDetailView<?> create(View<?> owner, Object editedEntity, Class<? extends StandardDetailView<?>> fragmentClass) Creates details view as editor fragment, that can be attached to any ui component as ui component Supported BeforeShowEvent- Parameters:
owner
- parent component vieweditedEntity
- dataContainer entity holderfragmentClass
- class of fragment, that will be created- Returns:
- initialized fragment, before show event fired
-
createList
Creates details view as list fragment Delegates creation to io.jmix.flowui.Views class- Parameters:
fragmentClass
- fragmentClass class of fragment, that will be created- Returns:
- ListView initialized class
-
createPropertiesComponent
public <T extends AbstractElementPropertiesComponent<Object>> T createPropertiesComponent(View<?> owner, String jsonEntity, BpmnModeler modeler, Class<? extends AbstractElementPropertiesComponent> fragmentClass) Creates root fragments for one of bpmn schema elements such as ServiceTask, UserTask, StartEvent etc- Type Parameters:
T
- model class, that fragment holds inside- Parameters:
owner
- modeler viewjsonEntity
- raw (json) data of selected element in modelermodeler
- modeler instancefragmentClass
- class of root fragment- Returns:
- instanced AbstractElementPropertiesComponent Fragment, that root for one of bpmn schema elements
-
createView
public AbstractElementPropertiesComponent<?> createView(AbstractElementPropertiesComponent<?> owner, Object editedEntity, Class<? extends AbstractElementPropertiesComponent<?>> fragmentClass) Creates AbstractElementPropertiesComponent fragment (base view that contains one of bpm model)- Parameters:
owner
- parent view of this fragmenteditedEntity
- model instance that contains inside fragment viewfragmentClass
- fragment class to craete- Returns:
- instanced AbstractElementPropertiesComponent, that already contains editedEntity
-