Class FragmentRenderer<T extends com.vaadin.flow.component.Component,E>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.fragment.Fragment<T>
io.jmix.flowui.fragmentrenderer.FragmentRenderer<T,E>
Type Parameters:
T - the type of the content
E - the type of the data item
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, FragmentOwner, Serializable

public abstract class FragmentRenderer<T extends com.vaadin.flow.component.Component,E> extends Fragment<T>
Base class for Fragment components that will be used as ComponentRenderer for components that support renderers.
See Also:
  • Field Details

    • item

      protected E item
  • Constructor Details

    • FragmentRenderer

      public FragmentRenderer()
  • Method Details

    • setItem

      public void setItem(E item)
      Sets the corresponding item for the rendered fragment component.
      Parameters:
      item - the item for the rendered fragment component
    • getItem

      @Nullable protected E getItem()
      Returns:
      an explicit renderer item or an item from the item renderer container if exists
    • getItemRendererContainer

      @Nullable protected InstanceContainer<E> getItemRendererContainer()
      Returns:
      instance container for the rendering item or null if not declared
      Throws:
      UnsupportedOperationException - if the renderer item container ID is incorrect