Class FragmentCreator

java.lang.Object
io.jmix.bpmflowui.view.modeler.impl.FragmentCreator

@Component public class FragmentCreator extends Object
  • Constructor Details

  • 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 view
      editedEntity - dataContainer entity holder
      fragmentClass - class of fragment, that will be created
      Returns:
      initialized fragment, before show event fired
    • createList

      public StandardView createList(Class<? extends StandardView> fragmentClass)
      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 view
      jsonEntity - raw (json) data of selected element in modeler
      modeler - modeler instance
      fragmentClass - 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 fragment
      editedEntity - model instance that contains inside fragment view
      fragmentClass - fragment class to craete
      Returns:
      instanced AbstractElementPropertiesComponent, that already contains editedEntity