Package io.jmix.flowui.fragmentrenderer
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 contentE- 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.fragment.Fragment
Fragment.ReadyEvent -
Field Summary
FieldsFields inherited from class io.jmix.flowui.fragment.Fragment
fragmentActions, fragmentData, parentController, uiComponents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EgetItem()protected InstanceContainer<E>voidSets the corresponding item for the rendered fragment component.Methods inherited from class io.jmix.flowui.fragment.Fragment
addReadyListener, findInnerComponent, getFragmentActions, getFragmentData, getInnerComponent, getParentController, initContent, setFragmentActions, setFragmentData, setParentController, setUiComponentsMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
item
-
-
Constructor Details
-
FragmentRenderer
public FragmentRenderer()
-
-
Method Details
-
setItem
Sets the corresponding item for the rendered fragment component.- Parameters:
item- the item for the rendered fragment component
-
getItem
- Returns:
- an explicit renderer item or an item from the item renderer container if exists
-
getItemRendererContainer
- Returns:
- instance container for the rendering item or
nullif not declared - Throws:
UnsupportedOperationException- if the renderer item container ID is incorrect
-