public class TargetController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javafx.scene.control.Label |
directionAngleLabel
Label of direction angle.
|
private javafx.scene.control.Label |
eastingLabel
Label of target´s easting.
|
private MainApp |
mainApp
Main Application.
|
private javafx.scene.control.Label |
northingLabel
Label of target´s northing.
|
private javafx.scene.control.ComboBox<Target> |
targetBox
ComboBox containing all the targets.
|
private javafx.scene.control.Label |
targetNameLabel
Label of target´s name.
|
| Constructor and Description |
|---|
TargetController()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
changeActiveTarget()
Called when target is changed.
|
private void |
handleConfirmTarget()
Called when user wants to confirm target and presses "Kinnita SM" button.
|
private void |
handleDeleteTarget()
Called when user wants to delete target and presses "Kustuta SM" button.
|
private void |
handleEditTarget()
Called when user wants to edit target data and presses "Muuda" button.
|
private void |
handleLastTargetCorrectionDelete()
Called when user wants to delete last made correction and presses "Tühista korrektuur" button.
|
private void |
handleTargetCorrection()
Called when user wants to make correction to current target and presses
"Korrektuur" button.
|
private void |
handleTargetInformation()
Called when user wants to view current target´s information and user
presses "SM INFO" button.
|
private void |
initialize()
Initializes the controller class.
|
void |
setMainApp(MainApp mainApp)
Is called by the main application to give a reference back to itself.
|
private void |
showTargetDetails(Target target)
Sets new information to target labels.
|
private void |
update(Target newTarget)
Updates all labels if new target is added or previous one is updated.
|
private void |
updateBoxNames()
Updates all targets names.
|
private javafx.scene.control.ComboBox<Target> targetBox
private javafx.scene.control.Label targetNameLabel
private javafx.scene.control.Label eastingLabel
private javafx.scene.control.Label northingLabel
private javafx.scene.control.Label directionAngleLabel
private MainApp mainApp
public TargetController()
private void initialize()
private void update(Target newTarget)
newTarget - New targetpublic void setMainApp(MainApp mainApp)
mainApp - Main Applicationprivate void updateBoxNames()
private void changeActiveTarget()
showTargetDetails(Target) to update target information to be displayed.private void handleDeleteTarget()
private void showTargetDetails(Target target)
target - Targetprivate void handleEditTarget()
private void handleConfirmTarget()
private void handleTargetCorrection()
private void handleTargetInformation()
private void handleLastTargetCorrectionDelete()