public class TargetInfoController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javafx.scene.control.Label |
deltaK
Correction for fragment mine.
|
private java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
deltas
Array containing coordinate deltas.
|
private javafx.scene.control.Label |
deltaS
Correction for smoke mine.
|
private javafx.scene.control.Label |
deltaV
Correction for lightning mine.
|
private javafx.stage.Stage |
dialogStage
Dialog stage.
|
private javafx.scene.control.Label |
header
Header label for target name.
|
private javafx.scene.image.ImageView |
imageView
Image of mortar battery.
|
private javafx.scene.control.Label |
lastCorrection
Information about the last correction made.
|
private java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
lastCorrectionData
Array containing last correction information.
|
private javafx.scene.control.Label |
loc
Location label.
|
private MainApp |
mainApp
Main application.
|
private boolean |
okClicked
Boolean for confirmation button.
|
private Target |
target
Current target.
|
| Constructor and Description |
|---|
TargetInfoController() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleOk()
Called when confirmation button is clicked.
|
private void |
initialize()
Initializes the controller class.
|
boolean |
isOkClicked()
Returns true if confirmation button is pressed, false if not.
|
void |
setDialogStage(javafx.stage.Stage dialogStage)
Sets the stage of this dialog.
|
void |
setLabels()
Sets all labels text.
|
void |
setMainApp(MainApp mainApp)
Set´s class main application.
|
void |
setTarget(Target Target)
Sets target.
|
private javafx.scene.image.ImageView imageView
private javafx.scene.control.Label header
private javafx.scene.control.Label loc
private javafx.scene.control.Label deltaK
private javafx.scene.control.Label deltaS
private javafx.scene.control.Label deltaV
private javafx.scene.control.Label lastCorrection
private MainApp mainApp
private Target target
private javafx.stage.Stage dialogStage
private java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> deltas
private java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> lastCorrectionData
private boolean okClicked
private void initialize()
public void setMainApp(MainApp mainApp)
mainApp - MainApp objectpublic void setDialogStage(javafx.stage.Stage dialogStage)
dialogStage - Dialog Stagepublic boolean isOkClicked()
public void handleOk()
okClicked to true and closes dialog.public void setTarget(Target Target)
setLabels() method.
Sets okClicked to true and closes dialog.Target - Targetpublic void setLabels()