Class NodeManagerView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
com.decs.application.views.nodemanager.NodeManagerView
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
@Route(value="node-manager",
layout=MainLayout.class)
@Uses(com.vaadin.flow.component.icon.Icon.class)
public class NodeManagerView
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
Node Manager Class
This class implements the web application node manager page. It is responsible for all visual components and their behavior.
- Version:
- 1.0
- Author:
- Bruno Guiomar
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.vaadin.flow.component.html.Spanprivate final com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.component.button.Button, SlaveInfo> Creates the node info button and defines its behaviorprivate com.vaadin.flow.component.grid.Grid<SlaveInfo> private com.vaadin.flow.component.orderedlayout.VerticalLayoutprivate com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate com.vaadin.flow.component.html.Spanprivate com.vaadin.flow.component.button.Buttonprivate com.vaadin.flow.component.icon.Iconprivate com.vaadin.flow.component.grid.dataview.GridListDataView<SlaveInfo> private com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate SlaveManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate com.vaadin.flow.component.dialog.DialogbuildSlaveInfoDialog(SlaveInfo currentSlave, SystemInformation systemInformation) Builds a dialog component for the node info informationprivate com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.button.Button, SlaveInfo> Creates a component renderer for the node info buttonprivate voidBuilds the nodes list view and its visual componentsprivate voidupdateSlaveList(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) Defines the event handler for updating the connected slaves listMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods 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
-
slaveManager
-
nodeListLayoutGroup
private com.vaadin.flow.component.orderedlayout.HorizontalLayout nodeListLayoutGroup -
nodeListGridLayout
private com.vaadin.flow.component.orderedlayout.VerticalLayout nodeListGridLayout -
nodeListUpperGroup
private com.vaadin.flow.component.orderedlayout.HorizontalLayout nodeListUpperGroup -
nodeListTitle
private com.vaadin.flow.component.html.Span nodeListTitle -
nodeListTitleUpdateBtnIcon
private com.vaadin.flow.component.icon.Icon nodeListTitleUpdateBtnIcon -
nodeListTitleUpdateBtn
private com.vaadin.flow.component.button.Button nodeListTitleUpdateBtn -
nodeListGrid
-
connectedSlaves
private com.vaadin.flow.component.html.Span connectedSlaves -
nodeListUpdater
-
nodeInfoButton
private final com.vaadin.flow.function.SerializableBiConsumer<com.vaadin.flow.component.button.Button,SlaveInfo> nodeInfoButtonCreates the node info button and defines its behavior
-
-
Constructor Details
-
NodeManagerView
Class Constructor- Parameters:
slaveManager- Slave manager object
-
-
Method Details
-
createNodeList
private void createNodeList()Builds the nodes list view and its visual components -
updateSlaveList
private void updateSlaveList(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) Defines the event handler for updating the connected slaves list- Parameters:
event- Button click event
-
createNodeInfoRenderer
private com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.button.Button,SlaveInfo> createNodeInfoRenderer()Creates a component renderer for the node info button- Returns:
- Component renderer object
-