Class ApplicationForm
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- com.vaadin.flow.component.HtmlContainer
-
- com.vaadin.flow.component.html.Div
-
- com.group21.jobTracker.ui.application.ApplicationForm
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,Serializable
public class ApplicationForm extends com.vaadin.flow.component.html.DivAn Application for performing create-read-update-delete operations on Jobs. See alsoApplicationViewLogicfor fetching the data, the actual CRUD operations and controlling the view based on events from outside.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description com.vaadin.flow.component.textfield.TextFieldjobCompanyprivate final TextField parameter representing jobCompanycom.vaadin.flow.component.datepicker.DatePickerjobDateAppliedprivate final TextField parameter representing jobDateAppliedcom.vaadin.flow.component.textfield.TextFieldjobDescriptionprivate final TextField parameter representing jobDescriptioncom.vaadin.flow.component.datepicker.DatePickerjobDueDateprivate final TextField parameter representing jobDueDatecom.vaadin.flow.component.textfield.TextFieldjobIdprivate final TextField parameter representing jobIdcom.vaadin.flow.component.textfield.TextFieldjobNextActionprivate final TextField parameter representing jobNextActioncom.vaadin.flow.component.textfield.NumberFieldjobPriorityprivate final TextField parameter representing jobPrioritycom.vaadin.flow.component.textfield.TextFieldjobSalaryprivate final TextField parameter representing jobSalarycom.vaadin.flow.component.textfield.TextFieldjobStatusprivate final TextField parameter representing jobStatuscom.vaadin.flow.component.textfield.TextFieldjobTitleprivate final TextField parameter representing jobTitle
-
Constructor Summary
Constructors Constructor Description ApplicationForm(ApplicationViewLogic sampleCrudLogic)ApplicationForm for constructor is using to define the job form by defining labels of each textfields and values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideditJob(Jobs job)This function use a job object as parameter and utilize the view object to call the edit method for the job instance.voidsetJob(Jobs job)This function use a job object as parameter to set it as current job and bind it to the application form.-
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, 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.ClickNotifier
addClickListener, addClickShortcut
-
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.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replace
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
-
-
-
Field Detail
-
jobId
public final com.vaadin.flow.component.textfield.TextField jobId
private final TextField parameter representing jobId
-
jobTitle
public final com.vaadin.flow.component.textfield.TextField jobTitle
private final TextField parameter representing jobTitle
-
jobCompany
public final com.vaadin.flow.component.textfield.TextField jobCompany
private final TextField parameter representing jobCompany
-
jobDateApplied
public final com.vaadin.flow.component.datepicker.DatePicker jobDateApplied
private final TextField parameter representing jobDateApplied
-
jobDueDate
public final com.vaadin.flow.component.datepicker.DatePicker jobDueDate
private final TextField parameter representing jobDueDate
-
jobSalary
public final com.vaadin.flow.component.textfield.TextField jobSalary
private final TextField parameter representing jobSalary
-
jobDescription
public final com.vaadin.flow.component.textfield.TextField jobDescription
private final TextField parameter representing jobDescription
-
jobNextAction
public final com.vaadin.flow.component.textfield.TextField jobNextAction
private final TextField parameter representing jobNextAction
-
jobStatus
public final com.vaadin.flow.component.textfield.TextField jobStatus
private final TextField parameter representing jobStatus
-
jobPriority
public final com.vaadin.flow.component.textfield.NumberField jobPriority
private final TextField parameter representing jobPriority
-
-
Constructor Detail
-
ApplicationForm
public ApplicationForm(ApplicationViewLogic sampleCrudLogic)
ApplicationForm for constructor is using to define the job form by defining labels of each textfields and values. Binder then binding them into the form to work with the values we are getting from the form textfields. There are action listeners for save, update, delete buttons which is using the binding information to do crud operations Evry change happening on the form is adding intot he content variable to show the changes n the form.- Parameters:
sampleCrudLogic- to initialize the view instance for CRUD operations
-
-
Method Detail
-
editJob
public void editJob(Jobs job)
This function use a job object as parameter and utilize the view object to call the edit method for the job instance. After it will pop up the information from the desired job of grids to the application form.- Parameters:
job- that needs to be edited
-
setJob
public void setJob(Jobs job)
This function use a job object as parameter to set it as current job and bind it to the application form.- Parameters:
job- to set
-
-