Class SdhDashboard
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.orderedlayout.VerticalLayout
-
- com.neotropic.kuwaiba.modules.commercial.sdh.widgets.SdhDashboard
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.VerticalLayout>
,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.VerticalLayout>
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.orderedlayout.FlexComponent<com.vaadin.flow.component.orderedlayout.VerticalLayout>
,com.vaadin.flow.component.orderedlayout.ThemableLayout
,Serializable
,ActionCompletedListener
public class SdhDashboard extends com.vaadin.flow.component.orderedlayout.VerticalLayout implements ActionCompletedListener
SDH Main Dashboard.- Author:
- Orlando Paz <Orlando.Paz@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neotropic.kuwaiba.core.apis.integration.modules.actions.ActionCompletedListener
ActionCompletedListener.ActionCompletedEvent
-
-
Field Summary
Fields Modifier and Type Field Description String
CONNECTION_CONTAINERLINK
String
CONNECTION_TRANSPORTLINK
String
CONNECTION_TRIBUTARYLINK
static String
PARAM_BUSINESS_OBJECT
The parameter of the business object.
-
Constructor Summary
Constructors Constructor Description SdhDashboard(CoreActionsRegistry coreActionRegistry, AdvancedActionsRegistry advancedActionsRegistry, ViewWidgetRegistry viewWidgetRegistry, ExplorerRegistry explorerRegistry, TranslationService ts, MetadataEntityManager mem, ApplicationEntityManager aem, BusinessEntityManager bem, ResourceFactory resourceFactory, SdhService sdhService, DeleteSdhViewVisualAction deleteSDHViewVisualAction, NewSdhViewVisualAction newSDHViewVisualAction, DeleteSdhTransportLinkVisualAction deleteSdhTransportLinkVisualAction, DeleteSdhTributaryLinkVisualAction deleteSdhTributaryLinkVisualAction, DeleteSdhContainerLinkVisualAction deleteSdhContainerLinkVisualAction, LoggingService log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionCompleted(ActionCompletedListener.ActionCompletedEvent ev)
Notifies that a module action has been completed.ViewObject
getCurrentView()
SdhTools
getSdhTools()
void
loadViews()
Loads all the sdh Views.protected void
onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
void
onDetach(com.vaadin.flow.component.DetachEvent ev)
void
resetDashboard()
resets the sdh view instance and creates an empty onevoid
setCurrentView(ViewObject currentView)
void
setSdhTools(SdhTools sdhTools)
void
showActionCompledMessages(ActionCompletedListener.ActionCompletedEvent ev)
-
Methods inherited from class com.vaadin.flow.component.orderedlayout.VerticalLayout
addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacing
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, 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, getFlexGrow, getJustifyContentMode, replace, 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, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
-
-
-
Field Detail
-
PARAM_BUSINESS_OBJECT
public static String PARAM_BUSINESS_OBJECT
The parameter of the business object.
-
CONNECTION_TRANSPORTLINK
public final String CONNECTION_TRANSPORTLINK
-
CONNECTION_CONTAINERLINK
public final String CONNECTION_CONTAINERLINK
-
CONNECTION_TRIBUTARYLINK
public final String CONNECTION_TRIBUTARYLINK
-
-
Constructor Detail
-
SdhDashboard
public SdhDashboard(CoreActionsRegistry coreActionRegistry, AdvancedActionsRegistry advancedActionsRegistry, ViewWidgetRegistry viewWidgetRegistry, ExplorerRegistry explorerRegistry, TranslationService ts, MetadataEntityManager mem, ApplicationEntityManager aem, BusinessEntityManager bem, ResourceFactory resourceFactory, SdhService sdhService, DeleteSdhViewVisualAction deleteSDHViewVisualAction, NewSdhViewVisualAction newSDHViewVisualAction, DeleteSdhTransportLinkVisualAction deleteSdhTransportLinkVisualAction, DeleteSdhTributaryLinkVisualAction deleteSdhTributaryLinkVisualAction, DeleteSdhContainerLinkVisualAction deleteSdhContainerLinkVisualAction, LoggingService log)
-
-
Method Detail
-
getCurrentView
public ViewObject getCurrentView()
-
setCurrentView
public void setCurrentView(ViewObject currentView)
-
getSdhTools
public SdhTools getSdhTools()
-
setSdhTools
public void setSdhTools(SdhTools sdhTools)
-
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
- Overrides:
onAttach
in classcom.vaadin.flow.component.Component
-
onDetach
public void onDetach(com.vaadin.flow.component.DetachEvent ev)
- Overrides:
onDetach
in classcom.vaadin.flow.component.Component
-
showActionCompledMessages
public void showActionCompledMessages(ActionCompletedListener.ActionCompletedEvent ev)
-
resetDashboard
public void resetDashboard()
resets the sdh view instance and creates an empty one
-
loadViews
public void loadViews()
Loads all the sdh Views.
-
actionCompleted
public void actionCompleted(ActionCompletedListener.ActionCompletedEvent ev)
Description copied from interface:ActionCompletedListener
Notifies that a module action has been completed.- Specified by:
actionCompleted
in interfaceActionCompletedListener
-
-