Class PoolsUI

  • 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, com.vaadin.flow.router.HasDynamicTitle, Serializable, AbstractUI, ActionCompletedListener, PropertySheet.IPropertyValueChangedListener

    @Route(value="pools",
           layout=PoolsLayout.class)
    public class PoolsUI
    extends com.vaadin.flow.component.orderedlayout.VerticalLayout
    implements ActionCompletedListener, com.vaadin.flow.router.HasDynamicTitle, AbstractUI, PropertySheet.IPropertyValueChangedListener
    Main for Pools. This class manages how the pages corresponding to different functionalities are presented in a single place.
    Author:
    Mauricio Ruiz Beltrán <mauricio.ruiz@kuwaiba.org>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent

        com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment, com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode
    • Constructor Summary

      Constructors 
      Constructor Description
      PoolsUI()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionCompleted​(ActionCompletedListener.ActionCompletedEvent ev)
      Handles the completion of an action.
      String getPageTitle()  
      void initContent()
      The code to initialize the content should be place here, not in the onAttach method, or worse, in the class constructor.
      void onAttach​(com.vaadin.flow.component.AttachEvent ev)  
      void onDetach​(com.vaadin.flow.component.DetachEvent ev)  
      void updatePropertyChanged​(AbstractProperty<?> property)
      Updates the property of the current pool based on the provided property information.
      • 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 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, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, 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
    • Field Detail

      • PARAM_BUSINESS_OBJECT

        public static String PARAM_BUSINESS_OBJECT
        Parameters.
      • PARAM_POOL

        public static String PARAM_POOL
    • Constructor Detail

      • PoolsUI

        public PoolsUI()
    • Method Detail

      • getPageTitle

        public String getPageTitle()
        Specified by:
        getPageTitle in interface com.vaadin.flow.router.HasDynamicTitle
      • initContent

        public void initContent()
        Description copied from interface: AbstractUI
        The code to initialize the content should be place here, not in the onAttach method, or worse, in the class constructor.
        Specified by:
        initContent in interface AbstractUI
      • actionCompleted

        public void actionCompleted​(ActionCompletedListener.ActionCompletedEvent ev)
        Handles the completion of an action. This method is invoked when an action is completed, and it updates UI components accordingly based on the status and response of the completed action.
        Specified by:
        actionCompleted in interface ActionCompletedListener
        Parameters:
        ev - The ActionCompletedEvent representing the completed action event.
      • onAttach

        public void onAttach​(com.vaadin.flow.component.AttachEvent ev)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component
      • onDetach

        public void onDetach​(com.vaadin.flow.component.DetachEvent ev)
        Overrides:
        onDetach in class com.vaadin.flow.component.Component
      • updatePropertyChanged

        public void updatePropertyChanged​(AbstractProperty<?> property)
        Updates the property of the current pool based on the provided property information. This method is invoked when a property of the current pool is modified, and it updates the corresponding property value in the backend, refreshes the UI to reflect the changes, and displays a success notification.
        Specified by:
        updatePropertyChanged in interface PropertySheet.IPropertyValueChangedListener
        Parameters:
        property - The AbstractProperty representing the property that has been modified.