java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.tabs.Tab
com.decs.application.views.ProblemEditor.tabs.SimpleTab
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 SimpleTab extends com.vaadin.flow.component.tabs.Tab implements ParamTab
Simple Tab Class

This class implements the problem editor Simple parameter tab.

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

    Fields
    Modifier and Type
    Field
    Description
    private com.vaadin.flow.component.textfield.IntegerField
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.select.Select<EnhancedBoolean>
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.select.Select<EnhancedBoolean>
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.html.Span
     
    private static final String
    Name of the parameter file this tab will generate
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.select.Select<StatisticsType>
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.html.Span
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.html.Span
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.select.Select<String>
     
    private com.vaadin.flow.component.textfield.IntegerField
     
    private com.vaadin.flow.component.textfield.IntegerField
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.textfield.IntegerField
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.html.Span
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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
    private void
    Builds the breeder components group
    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 statistics components group
    private void
    Builds the stopping condition components group
    private void
    Builds the subpopulation 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 static final String PARAMS_FILENAME
      Name of the parameter file this tab will generate
      See Also:
    • simpleTabLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout simpleTabLayout
    • stoppingCondLayoutGroup

      private com.vaadin.flow.component.orderedlayout.VerticalLayout stoppingCondLayoutGroup
    • stoppingCondTitle

      private com.vaadin.flow.component.html.Span stoppingCondTitle
    • stoppingCondLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout stoppingCondLayout
    • stoppingTypeSelectorLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout stoppingTypeSelectorLayout
    • stoppingVariableTypeSelector

      private com.vaadin.flow.component.select.Select<String> stoppingVariableTypeSelector
    • stoppingTooltip

      private com.vaadin.flow.component.shared.Tooltip stoppingTooltip
    • stoppingCondHelpBtn

      private com.vaadin.flow.component.button.Button stoppingCondHelpBtn
    • stoppingVariableValue

      private com.vaadin.flow.component.textfield.IntegerField stoppingVariableValue
    • subpopulationLayoutGroup

      private com.vaadin.flow.component.orderedlayout.VerticalLayout subpopulationLayoutGroup
    • subpopulationTitle

      private com.vaadin.flow.component.html.Span subpopulationTitle
    • subpopulationLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout subpopulationLayout
    • subpopulationSizeLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout subpopulationSizeLayout
    • subpopulationSize

      private com.vaadin.flow.component.textfield.IntegerField subpopulationSize
    • subpopulationSizeTooltip

      private com.vaadin.flow.component.shared.Tooltip subpopulationSizeTooltip
    • subpopulationHelpBtn

      private com.vaadin.flow.component.button.Button subpopulationHelpBtn
    • subpopulationDupRetriesLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout subpopulationDupRetriesLayout
    • subpopulationDupRetries

      private com.vaadin.flow.component.textfield.IntegerField subpopulationDupRetries
    • subpopulationDupRetriesTooltip

      private com.vaadin.flow.component.shared.Tooltip subpopulationDupRetriesTooltip
    • subpopulationDupRetriesHelpBtn

      private com.vaadin.flow.component.button.Button subpopulationDupRetriesHelpBtn
    • breederLayoutGroup

      private com.vaadin.flow.component.orderedlayout.VerticalLayout breederLayoutGroup
    • breederTitle

      private com.vaadin.flow.component.html.Span breederTitle
    • breederLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout breederLayout
    • breederEliteLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout breederEliteLayout
    • breederElite

      private com.vaadin.flow.component.textfield.IntegerField breederElite
    • breederEliteTooltip

      private com.vaadin.flow.component.shared.Tooltip breederEliteTooltip
    • breederEliteHelpBtn

      private com.vaadin.flow.component.button.Button breederEliteHelpBtn
    • breederEliteReevalLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout breederEliteReevalLayout
    • breederEliteReeval

      private com.vaadin.flow.component.select.Select<EnhancedBoolean> breederEliteReeval
    • breederEliteReevalTooltip

      private com.vaadin.flow.component.shared.Tooltip breederEliteReevalTooltip
    • breederEliteReevalHelpBtn

      private com.vaadin.flow.component.button.Button breederEliteReevalHelpBtn
    • breederSequentialLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout breederSequentialLayout
    • breederSequential

      private com.vaadin.flow.component.select.Select<EnhancedBoolean> breederSequential
    • breederSequentialTooltip

      private com.vaadin.flow.component.shared.Tooltip breederSequentialTooltip
    • breederSequentialHelpBtn

      private com.vaadin.flow.component.button.Button breederSequentialHelpBtn
    • statisticsLayoutGroup

      private com.vaadin.flow.component.orderedlayout.VerticalLayout statisticsLayoutGroup
    • statisticsTitle

      private com.vaadin.flow.component.html.Span statisticsTitle
    • statisticsMainLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout statisticsMainLayout
    • statisticsClassLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout statisticsClassLayout
    • statisticsClass

      private com.vaadin.flow.component.select.Select<StatisticsType> statisticsClass
    • statisticsClassTooltip

      private com.vaadin.flow.component.shared.Tooltip statisticsClassTooltip
    • statisticsClassHelpBtn

      private com.vaadin.flow.component.button.Button statisticsClassHelpBtn
    • statisticsFileLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout statisticsFileLayout
    • statisticsFile

      private com.vaadin.flow.component.textfield.TextField statisticsFile
    • statisticsFileTooltip

      private com.vaadin.flow.component.shared.Tooltip statisticsFileTooltip
    • statisticsFileHelpBtn

      private com.vaadin.flow.component.button.Button statisticsFileHelpBtn
    • statisticsVariableLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout statisticsVariableLayout
  • Constructor Details

    • SimpleTab

      public SimpleTab()
      Class Constructor
  • Method Details

    • 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
    • createStoppingConditionGroup

      private void createStoppingConditionGroup()
      Builds the stopping condition components group
    • createSubpopulationGroup

      private void createSubpopulationGroup()
      Builds the subpopulation components group
    • createBreederGroup

      private void createBreederGroup()
      Builds the breeder components group
    • createStatisticsGroup

      private void createStatisticsGroup()
      Builds the statistics components group