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
FieldsModifier and TypeFieldDescriptionprivate ObjectListDatabaseprivate DistributionTypeprivate ProblemTypeprivate com.vaadin.flow.component.tabs.TabSheet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ParamTabcreateParamTab(ParameterGroupType groupType) Creates a parameter tabprivate voiddistributionChangeEvent(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<DistributionType>, DistributionType> event) Defines the behavior when a distribution method is selectedprivate voidproblemChangeEvent(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 editorprivate voidsaveProblem(SaveEvent event) Defines the behavior when a problem needs to be savedMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
tabs
private com.vaadin.flow.component.tabs.TabSheet tabs -
tabsList
-
selectedProblem
-
selectedDistMethod
-
objectListDatabase
-
-
Constructor Details
-
ProblemEditorView
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
Defines the behavior when a problem needs to be saved- Parameters:
event- Source event
-
createParamTab
Creates a parameter tab- Parameters:
groupType- Type of the parameter tab- Returns:
- Parameter tab object
-