Class ModuleLayout
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.orderedlayout.FlexLayout
-
- org.neotropic.util.visual.general.ModuleLayout
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.FlexLayout>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasComponents
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasOrderedComponents<com.vaadin.flow.component.orderedlayout.FlexLayout>
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.orderedlayout.FlexComponent<com.vaadin.flow.component.orderedlayout.FlexLayout>
,com.vaadin.flow.router.RouterLayout
,Serializable
- Direct Known Subclasses:
AuditTrailLayout
,ConfigurationManagerLayout
,ContactManagerLayout
,ContainmentManagerLayout
,ContractManagerLayout
,DataModelManagerLayout
,IpamLayout
,LayoutEditorLayout
,ListTypeManagerLayout
,MainLayout
,MplsLayout
,NavigationLayout
,OutsidePlantManagerLayout
,PoolsLayout
,ProcessManagerLayout
,ProjectsLayout
,QueriesLayout
,ReportsLayout
,SdhLayout
,ServiceManagerLayout
,SessionManagerLayout
,SynchronizationLayout
,TaskManagerLayout
,TemplateManagerLayout
,TopologyManagerLayout
,UserManagerLayout
,WarehousesManagerLayout
@StyleSheet("css/main.css") @StyleSheet("css/main-layout.css") public abstract class ModuleLayout extends com.vaadin.flow.component.orderedlayout.FlexLayout implements com.vaadin.flow.router.RouterLayout
The super class of all flex layouts used in every module of the application.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.orderedlayout.FlexLayout
com.vaadin.flow.component.orderedlayout.FlexLayout.ContentAlignment, com.vaadin.flow.component.orderedlayout.FlexLayout.FlexDirection, com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap, com.vaadin.flow.component.orderedlayout.FlexLayout.WrapMode
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationEntityManager
aem
Reference to the Application Entity Manager so we can check if the Vaadin session is still valid.protected ModuleRegistry
moduleRegistry
Reference to the module registry.protected TranslationService
ts
Reference to the translation service.
-
Constructor Summary
Constructors Constructor Description ModuleLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.Component
buildExtendedHeader(Session session)
Builds a header where the items are not grouped in menus.void
buildHeader(Session session)
void
buildSideMenu(Session session)
Builds a side menu with the options organized in categories (each category a top-level menu).void
onAttach(com.vaadin.flow.component.AttachEvent ev)
void
showRouterLayoutContent(com.vaadin.flow.component.HasElement content)
-
Methods inherited from class com.vaadin.flow.component.orderedlayout.FlexLayout
getAlignContent, getFlexBasis, getFlexDirection, getFlexShrink, getFlexWrap, getOrder, getWrapMode, setAlignContent, setFlexBasis, setFlexDirection, setFlexShrink, setFlexWrap, setOrder, setWrapMode
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut
-
Methods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
expand, getAlignItems, getAlignSelf, getFlexGrow, getJustifyContentMode, replace, setAlignItems, setAlignSelf, setFlexGrow, setJustifyContentMode
-
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
-
Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
-
-
-
-
Field Detail
-
ts
@Autowired protected TranslationService ts
Reference to the translation service.
-
aem
@Autowired protected ApplicationEntityManager aem
Reference to the Application Entity Manager so we can check if the Vaadin session is still valid.
-
moduleRegistry
@Autowired protected ModuleRegistry moduleRegistry
Reference to the module registry.
-
-
Method Detail
-
buildHeader
public void buildHeader(Session session)
-
buildSideMenu
public void buildSideMenu(Session session)
Builds a side menu with the options organized in categories (each category a top-level menu).- Parameters:
session
- The session object. This object is used to validate the sections available according to the user privileges.
-
buildExtendedHeader
public com.vaadin.flow.component.Component buildExtendedHeader(Session session)
Builds a header where the items are not grouped in menus.- Parameters:
session
- The current session.- Returns:
- A component, most likely an horizontal layout with the items arranged in a single line.
-
onAttach
public void onAttach(com.vaadin.flow.component.AttachEvent ev)
- Overrides:
onAttach
in classcom.vaadin.flow.component.Component
-
showRouterLayoutContent
public void showRouterLayoutContent(com.vaadin.flow.component.HasElement content)
- Specified by:
showRouterLayoutContent
in interfacecom.vaadin.flow.router.RouterLayout
-
-