Class StudioKanbanComponentPreviewLoader

java.lang.Object
io.jmix.kanbanflowui.kit.meta.StudioKanbanComponentPreviewLoader
All Implemented Interfaces:
StudioPreviewComponentLoader

public class StudioKanbanComponentPreviewLoader extends Object implements StudioPreviewComponentLoader
Preview loader used in Studio. For internal use only.

Source loader io.jmix.kanbanflowui.component.loader.KanbanLoader.

  • Constructor Details

    • StudioKanbanComponentPreviewLoader

      public StudioKanbanComponentPreviewLoader()
  • Method Details

    • isSupported

      public boolean isSupported(org.dom4j.Element element)
      Description copied from interface: StudioPreviewComponentLoader
      Define the element that this loader can load.
      Specified by:
      isSupported in interface StudioPreviewComponentLoader
    • load

      @Nullable public com.vaadin.flow.component.Component load(org.dom4j.Element componentElement, org.dom4j.Element viewElement)
      Description copied from interface: StudioPreviewComponentLoader
      Create vaadin component from component xml element.
      Specified by:
      load in interface StudioPreviewComponentLoader
      Parameters:
      componentElement - xml element of component
      viewElement - xml element of view containing componentElement
      See Also:
      • Element
    • loadAttributes

      protected void loadAttributes(JmixKanban<?> kanban, org.dom4j.Element element)
    • loadColumns

      protected void loadColumns(JmixKanban<?> kanban, org.dom4j.Element element)
    • loadSwimlanes

      protected void loadSwimlanes(JmixKanban<?> kanban, org.dom4j.Element element)
    • loadExplicitColumns

      protected void loadExplicitColumns(HasKanbanColumns hasKanbanColumns, org.dom4j.Element columnsElement)
    • loadColumn

      @Nullable protected KanbanColumn loadColumn(org.dom4j.Element columnElement)
    • loadSwimlane

      protected KanbanSwimlane loadSwimlane(org.dom4j.Element swimlaneElement)
    • loadJsFunction

      protected void loadJsFunction(org.dom4j.Element element, String attributeName, Consumer<String> setter)