Class MplsDashboard
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.orderedlayout.VerticalLayout
-
- com.neotropic.kuwaiba.modules.commercial.mpls.widgets.MplsDashboard
-
- 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
public class MplsDashboard extends com.vaadin.flow.component.orderedlayout.VerticalLayout
MPLS Main Dashboard.- Author:
- Orlando Paz <Orlando.Paz@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MplsDashboard(TranslationService ts, MetadataEntityManager mem, ApplicationEntityManager aem, BusinessEntityManager bem, ResourceFactory resourceFactory, MplsService mplsService, DeleteMplsViewVisualAction deleteMPLSViewVisualAction, NewMplsViewVisualAction newMPLSViewVisualAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider
buildHierarchicalDataProvider(BusinessObjectLight root)
Function that creates a new HierarchicalDataProvider for a tree grid.ViewObject
getCurrentView()
MplsTools
getMplsTools()
void
loadViews()
protected void
onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
void
onDetach(com.vaadin.flow.component.DetachEvent ev)
void
resetDashboard()
resets the mpls view instance and creates a empty onevoid
setCurrentView(ViewObject currentView)
void
setMplsTools(MplsTools mplsTools)
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, getUI, hasListener, 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, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
-
-
-
-
Constructor Detail
-
MplsDashboard
public MplsDashboard(TranslationService ts, MetadataEntityManager mem, ApplicationEntityManager aem, BusinessEntityManager bem, ResourceFactory resourceFactory, MplsService mplsService, DeleteMplsViewVisualAction deleteMPLSViewVisualAction, NewMplsViewVisualAction newMPLSViewVisualAction)
-
-
Method Detail
-
getCurrentView
public ViewObject getCurrentView()
-
setCurrentView
public void setCurrentView(ViewObject currentView)
-
getMplsTools
public MplsTools getMplsTools()
-
setMplsTools
public void setMplsTools(MplsTools mplsTools)
-
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 mpls view instance and creates a empty one
-
buildHierarchicalDataProvider
public com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider buildHierarchicalDataProvider(BusinessObjectLight root)
Function that creates a new HierarchicalDataProvider for a tree grid.- Parameters:
root
- the main toot of the tree- Returns:
- the new data Provider the the given root
-
loadViews
public void loadViews()
-
-