public class UserView extends java.lang.Object implements IView, javafx.fxml.Initializable
Constructor and Description |
---|
UserView(UserController controller)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
displayData(User model)
Fills the Data from the model into the form
|
void |
fillCombobox(javafx.collections.ObservableList<Code> codes)
Fill the Comboboxes with the given list of Code model
|
javafx.scene.control.Button |
getBtnCancel() |
javafx.scene.control.Button |
getBtnSave() |
javafx.scene.control.ComboBox<Code> |
getCboCodes() |
javafx.scene.layout.Pane |
getContent()
Returns the Container which inherits all GUI Elements loaded from the FXML file
|
javafx.scene.control.TextField |
getTxtFirstname() |
javafx.scene.control.TextField |
getTxtHourlyWage() |
javafx.scene.control.TextField |
getTxtlastname() |
javafx.scene.control.TextField |
getTxtPassword() |
javafx.scene.control.TextField |
getTxtUsername() |
void |
initialize(java.net.URL location,
java.util.ResourceBundle resources)
Called when the FXML file is loaded
Set the necessary options and cellfactories
|
public UserView(UserController controller)
controller
- public void initialize(java.net.URL location, java.util.ResourceBundle resources)
initialize
in interface javafx.fxml.Initializable
public void fillCombobox(javafx.collections.ObservableList<Code> codes)
codes
- the list of could which should be choosablepublic void displayData(User model)
model
- public javafx.scene.layout.Pane getContent()
IView
getContent
in interface IView
public javafx.scene.control.TextField getTxtFirstname()
public javafx.scene.control.TextField getTxtlastname()
public javafx.scene.control.TextField getTxtUsername()
public javafx.scene.control.TextField getTxtPassword()
public javafx.scene.control.TextField getTxtHourlyWage()
public javafx.scene.control.ComboBox<Code> getCboCodes()
public javafx.scene.control.Button getBtnSave()
public javafx.scene.control.Button getBtnCancel()