public class PatientView extends java.lang.Object implements IView, javafx.fxml.Initializable
| Constructor and Description |
|---|
PatientView(PatientController patientController)
Constructor of the class
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillCombobox(javafx.collections.ObservableList<Code> codes) |
javafx.scene.control.TextField |
getAddress() |
javafx.scene.control.TextField |
getAhv() |
javafx.scene.control.DatePicker |
getBirthday() |
javafx.scene.control.ComboBox<Code> |
getCboGender() |
javafx.scene.layout.Pane |
getContent()
Returns the Container which inherits all GUI Elements loaded from the FXML file
|
javafx.scene.control.TextField |
getFirstname() |
javafx.scene.control.TextField |
getLastname() |
javafx.scene.control.TextField |
getPlace() |
javafx.scene.control.TextField |
getPlz() |
javafx.scene.control.Label |
getState() |
void |
initialize(java.net.URL location,
java.util.ResourceBundle resources) |
void |
setData(Patient patient)
Fills the Data from the model into the form
|
void |
setError(java.util.List<java.lang.String> errors)
sets the Error message and display it to the message box
|
public PatientView(PatientController patientController)
patientController - the Controllerpublic void setError(java.util.List<java.lang.String> errors)
errors - public void setData(Patient patient)
model - public javafx.scene.layout.Pane getContent()
IViewgetContent in interface IViewpublic void fillCombobox(javafx.collections.ObservableList<Code> codes)
public void initialize(java.net.URL location,
java.util.ResourceBundle resources)
initialize in interface javafx.fxml.Initializablepublic javafx.scene.control.Label getState()
public javafx.scene.control.ComboBox<Code> getCboGender()
public javafx.scene.control.TextField getFirstname()
public javafx.scene.control.TextField getLastname()
public javafx.scene.control.DatePicker getBirthday()
public javafx.scene.control.TextField getAhv()
public javafx.scene.control.TextField getPlz()
public javafx.scene.control.TextField getPlace()
public javafx.scene.control.TextField getAddress()