Class ProblemEditorView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
com.decs.application.views.ProblemEditor.ProblemEditorView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

@Route(value="problem-editor", layout=MainLayout.class) @PermitAll @Uses(com.vaadin.flow.component.icon.Icon.class) public class ProblemEditorView extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
Problem Editor View Class

This class implements the web application problem editor page.

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

    Fields
    Modifier and Type
    Field
    Description
     
     
    private ProblemType
     
    private com.vaadin.flow.component.tabs.TabSheet
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Class Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    private ParamTab
    Creates a parameter tab
    private void
    distributionChangeEvent(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<DistributionType>,DistributionType> event)
    Defines the behavior when a distribution method is selected
    private void
    problemChangeEvent(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<ProblemType>,ProblemType> event)
    Defines the behavior when a problem is selected in the problem editor
    private void
    Defines the behavior when a problem needs to be saved

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

    getChildren, getContent, getElement, initContent

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

    addListener, findAncestor, fireEvent, from, get, 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, toString, 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.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

  • Constructor Details

    • ProblemEditorView

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

    • problemChangeEvent

      private void problemChangeEvent(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<ProblemType>,ProblemType> event)
      Defines the behavior when a problem is selected in the problem editor
      Parameters:
      event - Source event
    • distributionChangeEvent

      private void distributionChangeEvent(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<DistributionType>,DistributionType> event)
      Defines the behavior when a distribution method is selected
      Parameters:
      event - Source event
    • saveProblem

      private void saveProblem(SaveEvent event)
      Defines the behavior when a problem needs to be saved
      Parameters:
      event - Source event
    • createParamTab

      private ParamTab createParamTab(ParameterGroupType groupType)
      Creates a parameter tab
      Parameters:
      groupType - Type of the parameter tab
      Returns:
      Parameter tab object