Class MplsTools

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.HorizontalLayout>, 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.HorizontalLayout>, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.orderedlayout.FlexComponent<com.vaadin.flow.component.orderedlayout.HorizontalLayout>, com.vaadin.flow.component.orderedlayout.ThemableLayout, Serializable

    public class MplsTools
    extends com.vaadin.flow.component.orderedlayout.HorizontalLayout
    Component with a set of tools available to work in an Mpls view
    Author:
    Orlando Paz <orlando.paz@kuwaiba.org>
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.shared.Registration addDeleteObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectEvent> listener)  
      com.vaadin.flow.shared.Registration addDeleteObjectPermanentlyObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectPermanentlyEvent> listener)  
      com.vaadin.flow.shared.Registration AddDetectConnectionsListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.DetectConnectionsEvent> listener)  
      com.vaadin.flow.shared.Registration AddExistingConnectionListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.AddExistingConnectionEvent> listener)  
      com.vaadin.flow.shared.Registration addNewConnectionListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewConnectionEvent> listener)  
      com.vaadin.flow.shared.Registration addNewObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewObjectEvent> listener)  
      com.vaadin.flow.shared.Registration addSaveViewListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.SaveViewEvent> listener)  
      com.vaadin.flow.shared.Registration addSelectObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.SelectObjectEvent> listener)  
      com.vaadin.flow.component.button.Button getBtnNewView()  
      com.vaadin.flow.component.button.Button getBtnOpenView()  
      com.vaadin.flow.component.button.Button getBtnRemoveView()  
      void setBtnNewView​(com.vaadin.flow.component.button.Button btnNewView)  
      void setBtnOpenView​(com.vaadin.flow.component.button.Button btnOpenView)  
      void setBtnRemoveView​(com.vaadin.flow.component.button.Button btnRemoveView)  
      static void setButtonTitle​(com.vaadin.flow.component.button.Button button, String title)
      Set the title/tool tip for the given button
      void setGeneralToolsEnabled​(boolean enable)
      Function that enables/disables main functionality buttons
      void setSelectionToolsEnabled​(boolean enable)
      Function that enables/disables the buttons that depends of object selection events
      • Methods inherited from class com.vaadin.flow.component.orderedlayout.HorizontalLayout

        addAndExpand, getAlignItems, getAlignSelf, getDefaultVerticalComponentAlignment, getVerticalComponentAlignment, setAlignItems, setAlignSelf, setDefaultVerticalComponentAlignment, setSpacing, setVerticalComponentAlignment
      • 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, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.ClickNotifier

        addClickListener, addClickShortcut
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • 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.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
      • 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
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout

        getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin, setPadding
    • Method Detail

      • getBtnOpenView

        public com.vaadin.flow.component.button.Button getBtnOpenView()
      • setBtnOpenView

        public void setBtnOpenView​(com.vaadin.flow.component.button.Button btnOpenView)
      • getBtnNewView

        public com.vaadin.flow.component.button.Button getBtnNewView()
      • setBtnNewView

        public void setBtnNewView​(com.vaadin.flow.component.button.Button btnNewView)
      • getBtnRemoveView

        public com.vaadin.flow.component.button.Button getBtnRemoveView()
      • setBtnRemoveView

        public void setBtnRemoveView​(com.vaadin.flow.component.button.Button btnRemoveView)
      • addNewObjectListener

        public com.vaadin.flow.shared.Registration addNewObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewObjectEvent> listener)
      • addSelectObjectListener

        public com.vaadin.flow.shared.Registration addSelectObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.SelectObjectEvent> listener)
      • addNewConnectionListener

        public com.vaadin.flow.shared.Registration addNewConnectionListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewConnectionEvent> listener)
      • addSaveViewListener

        public com.vaadin.flow.shared.Registration addSaveViewListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.SaveViewEvent> listener)
      • addDeleteObjectListener

        public com.vaadin.flow.shared.Registration addDeleteObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectEvent> listener)
      • addDeleteObjectPermanentlyObjectListener

        public com.vaadin.flow.shared.Registration addDeleteObjectPermanentlyObjectListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectPermanentlyEvent> listener)
      • AddExistingConnectionListener

        public com.vaadin.flow.shared.Registration AddExistingConnectionListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.AddExistingConnectionEvent> listener)
      • AddDetectConnectionsListener

        public com.vaadin.flow.shared.Registration AddDetectConnectionsListener​(com.vaadin.flow.component.ComponentEventListener<MplsTools.DetectConnectionsEvent> listener)
      • setGeneralToolsEnabled

        public void setGeneralToolsEnabled​(boolean enable)
        Function that enables/disables main functionality buttons
        Parameters:
        enable - true to enable the buttons, false otherwise
      • setSelectionToolsEnabled

        public void setSelectionToolsEnabled​(boolean enable)
        Function that enables/disables the buttons that depends of object selection events
        Parameters:
        enable - true to enable the buttons, false otherwise
      • setButtonTitle

        public static void setButtonTitle​(com.vaadin.flow.component.button.Button button,
                                          String title)
        Set the title/tool tip for the given button
        Parameters:
        button - the button to be set
        title - the title to be added