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

This class implements the problem editor General parameter 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 com.vaadin.flow.component.button.Button
     
    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.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.html.Span
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.select.Select<EnhancedBoolean>
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.select.Select<DistributionType>
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.button.Button
     
    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.orderedlayout.VerticalLayout
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.textfield.IntegerField
     
    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.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.textfield.IntegerField
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    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.html.Span
     
     
    private static final String
    Name of the parameter file this tab will generate
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.textfield.TextField
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
    private com.vaadin.flow.component.select.Select<ProblemType>
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.combobox.ComboBox<String>
     
    private com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    private com.vaadin.flow.component.shared.Tooltip
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeneralTab(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
    private void
    Builds the checkpoint components group
    private void
    Builds the jobs and seed components group
    private void
    Builds the multithreading 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 problem selector components group
    com.vaadin.flow.component.select.Select<DistributionType>
     
    This method is responsible for retrieving the output parameter file name
    com.vaadin.flow.component.select.Select<ProblemType>
     

    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:
    • objectListDatabase

      private ObjectListDatabase objectListDatabase
    • generalTabLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout generalTabLayout
    • problemSelectorLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout problemSelectorLayout
    • problemSelector

      private com.vaadin.flow.component.select.Select<ProblemType> problemSelector
    • distributionSelector

      private com.vaadin.flow.component.select.Select<DistributionType> distributionSelector
    • jobSeedGroupLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout jobSeedGroupLayout
    • jobSeedLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout jobSeedLayout
    • jobSeedGroupTitle

      private com.vaadin.flow.component.html.Span jobSeedGroupTitle
    • jobInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout jobInputLayout
    • jobInput

      private com.vaadin.flow.component.textfield.IntegerField jobInput
    • jobTooltip

      private com.vaadin.flow.component.shared.Tooltip jobTooltip
    • jobHelpBtn

      private com.vaadin.flow.component.button.Button jobHelpBtn
    • seedInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout seedInputLayout
    • seedInput

      private com.vaadin.flow.component.combobox.ComboBox<String> seedInput
    • seedTooltip

      private com.vaadin.flow.component.shared.Tooltip seedTooltip
    • seedHelpBtn

      private com.vaadin.flow.component.button.Button seedHelpBtn
    • multithreadingGroupLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout multithreadingGroupLayout
    • multithreadingGroupTitle

      private com.vaadin.flow.component.html.Span multithreadingGroupTitle
    • evalBreedLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout evalBreedLayout
    • evalInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout evalInputLayout
    • evalInput

      private com.vaadin.flow.component.textfield.IntegerField evalInput
    • evalTooltip

      private com.vaadin.flow.component.shared.Tooltip evalTooltip
    • evalHelpBtn

      private com.vaadin.flow.component.button.Button evalHelpBtn
    • breedInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout breedInputLayout
    • breedInput

      private com.vaadin.flow.component.textfield.IntegerField breedInput
    • breedTooltip

      private com.vaadin.flow.component.shared.Tooltip breedTooltip
    • breedHelpBtn

      private com.vaadin.flow.component.button.Button breedHelpBtn
    • checkpointGroupLayout

      private com.vaadin.flow.component.orderedlayout.VerticalLayout checkpointGroupLayout
    • checkpointGroupTitle

      private com.vaadin.flow.component.html.Span checkpointGroupTitle
    • moduloPrefixLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout moduloPrefixLayout
    • checkpointInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout checkpointInputLayout
    • checkpointInput

      private com.vaadin.flow.component.select.Select<EnhancedBoolean> checkpointInput
    • checkpointTooltip

      private com.vaadin.flow.component.shared.Tooltip checkpointTooltip
    • checkpointHelpBtn

      private com.vaadin.flow.component.button.Button checkpointHelpBtn
    • moduloInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout moduloInputLayout
    • moduloInput

      private com.vaadin.flow.component.textfield.IntegerField moduloInput
    • moduloTooltip

      private com.vaadin.flow.component.shared.Tooltip moduloTooltip
    • moduloHelpBtn

      private com.vaadin.flow.component.button.Button moduloHelpBtn
    • prefixInputLayout

      private com.vaadin.flow.component.orderedlayout.HorizontalLayout prefixInputLayout
    • prefixInput

      private com.vaadin.flow.component.textfield.TextField prefixInput
    • prefixTooltip

      private com.vaadin.flow.component.shared.Tooltip prefixTooltip
    • prefixHelpBtn

      private com.vaadin.flow.component.button.Button prefixHelpBtn
  • Constructor Details

    • GeneralTab

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

    • getProblemSelector

      public com.vaadin.flow.component.select.Select<ProblemType> getProblemSelector()
    • getDistSelector

      public com.vaadin.flow.component.select.Select<DistributionType> getDistSelector()
    • 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
    • createProblemSelector

      private void createProblemSelector()
      Builds the problem selector components group
    • createJobsSeedGroup

      private void createJobsSeedGroup()
      Builds the jobs and seed components group
    • createMultithreadingGroup

      private void createMultithreadingGroup()
      Builds the multithreading components group
    • createCheckpointGroup

      private void createCheckpointGroup()
      Builds the checkpoint components group