java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.tabs.Tab
com.decs.application.views.ProblemEditor.tabs.SaveTab
All Implemented Interfaces:
ParamTab, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasAriaLabel, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasLabel, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.tabs.TabVariant>, com.vaadin.flow.component.shared.HasTooltip, Serializable

public class SaveTab extends com.vaadin.flow.component.tabs.Tab implements ParamTab
Save Tab Class

This class implements the problem editor save tab. It is responsible for all visual components and their behavior.

Version:
1.0
Author:
Bruno Guiomar
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private String
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.html.Span
     
    private com.vaadin.flow.component.textfield.TextField
     
    private SaveButton
     
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    (package private) com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SaveTab(ObjectListDatabase objectListDatabase)
    Class Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.orderedlayout.VerticalLayout
    This method is responsible for building the respective tab global layout
    ec.util.ParameterDatabase[]
    This method is responsible for creating a parameter database with the compilation of all parameters and values in the respective tab
    private void
    Builds the problem save components group
    This method is responsible for retrieving the output parameter file name
     
     
     
     
     
     

    Methods inherited from class com.vaadin.flow.component.tabs.Tab

    getFlexGrow, getLabel, isSelected, setFlexGrow, setLabel, setSelected, toString

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, 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, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasAriaLabel

    getAriaLabel, getAriaLabelledBy, setAriaLabel, setAriaLabelledBy

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, 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.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants

    Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip

    getTooltip, setTooltipText
  • Field Details

    • PARAMS_FILENAME

      private String PARAMS_FILENAME
    • objectListDatabase

      private ObjectListDatabase objectListDatabase
    • saveTabLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout saveTabLayout
    • problemSaveGroupLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout problemSaveGroupLayout
    • problemSaveGroupTitle

      private com.vaadin.flow.component.html.Span problemSaveGroupTitle
    • upperInfoGroup

      com.vaadin.flow.component.orderedlayout.HorizontalLayout upperInfoGroup
    • problemCode

      private com.vaadin.flow.component.textfield.TextField problemCode
    • problemName

      private com.vaadin.flow.component.textfield.TextField problemName
    • problemType

      private com.vaadin.flow.component.textfield.TextField problemType
    • saveProblemBtn

      private SaveButton saveProblemBtn
  • Constructor Details

    • SaveTab

      public SaveTab(ObjectListDatabase objectListDatabase)
      Class Constructor
      Parameters:
      objectListDatabase - Object list database object
  • Method Details

    • getSaveButton

      public SaveButton getSaveButton()
    • getProblemCode

      public String getProblemCode()
    • getProblemFullName

      public String getProblemFullName()
    • getProblemType

      public String getProblemType()
    • getProblemOrigin

      public String getProblemOrigin()
    • getProblemDistribution

      public String getProblemDistribution()
    • buildLayout

      public com.vaadin.flow.component.orderedlayout.VerticalLayout buildLayout()
      Description copied from interface: ParamTab
      This method is responsible for building the respective tab global layout
      Specified by:
      buildLayout in interface ParamTab
      Returns:
      Output layout object
    • getFileName

      public String[] getFileName()
      Description copied from interface: ParamTab
      This method is responsible for retrieving the output parameter file name
      Specified by:
      getFileName in interface ParamTab
      Returns:
      Output parameter file name
    • createParamDatabase

      public ec.util.ParameterDatabase[] createParamDatabase(ProblemType selectedProblem)
      Description copied from interface: ParamTab
      This method is responsible for creating a parameter database with the compilation of all parameters and values in the respective tab
      Specified by:
      createParamDatabase in interface ParamTab
      Parameters:
      selectedProblem - Type of the problem
      Returns:
      Parameter database object
    • createProblemSaveGroup

      private void createProblemSaveGroup()
      Builds the problem save components group