public class PositionController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javafx.scene.control.Label |
ammoLabel
Ammunition caliber label.
|
private javafx.scene.control.Label |
firstBackUpDirectionLabel
Backup direction label of first position.
|
private javafx.scene.control.Label |
firstEastingLabel
Easting label of first position.
|
private javafx.scene.control.Label |
firstMainDirectionLabel
Main direction label of first position.
|
private javafx.scene.control.Label |
firstNorthingLabel
Northing label of first position.
|
private MainApp |
mainApp
Main application
|
private javafx.scene.control.Label |
positionNameLabel
Position name.
|
private javafx.scene.control.Label |
secondBackUpDirectionLabel
Backup direction label of second position.
|
private javafx.scene.control.Label |
secondEastingLabel
Easting label of second position.
|
private javafx.scene.control.Label |
secondMainDirectionLabel
Main direction label of second position.
|
private javafx.scene.control.Label |
secondNorthingLabel
Northing label of second position.
|
private javafx.scene.control.TableView<Target> |
targetTable
Drop-down list containing all targets.
|
private javafx.scene.control.Label |
tempLabel
Temperature label.
|
private javafx.scene.control.Label |
thirdBackUpDirectionLabel
Backup direction label of third position.
|
private javafx.scene.control.Label |
thirdEastingLabel
Easting label of third position.
|
private javafx.scene.control.Label |
thirdMainDirectionLabel
Main direction label of third position.
|
private javafx.scene.control.Label |
thirdNorthingLabel
Northing label of third position.
|
| Constructor and Description |
|---|
PositionController()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
handleAmmoEdit()
Called when user clicks on ammo editing button "MOON".
|
private void |
handleExitProgram()
Called when user wants to exit program.
|
private void |
handleLimitersEdit()
Called when user wants to add or edit limitation polygon.
|
private void |
handleLoadData()
Called when user clicks on "LAE LAUD" button.
|
private void |
handleNewPolarTarget()
Called when user clicks on new polar target button "POL".
|
private void |
handleNewTarget()
Called when user clicks on new square target button "RUUT".
|
private void |
handleNewTukTarget()
Called when user clicks on new target button "TÜK".
|
private void |
handlePositionEdit()
Called when user clicks position button "POSITSIOON"
Position editing dialog will be shown.
|
private void |
handleSaveData()
Called when user clicks on "SALVESTA" button.
|
private void |
handleTempEdit()
Called when user clicks on temperature button "TEMP".
|
private void |
initialize()
Initializes the controller class.
|
private void |
SaveFile(java.lang.String content,
java.io.File file)
Writes content string into file.
|
private void |
setAmmoLabel(int ammo)
Sets ammo label text.
|
void |
setMainApp(MainApp mainApp)
Set´s class main application and temperature.
|
private java.lang.String |
toDirection(java.lang.String s)
Changes input direction from type 0000 to 00-00.
|
void |
updateFields()
Updates all positions fields.
|
private javafx.scene.control.TableView<Target> targetTable
private javafx.scene.control.Label positionNameLabel
private javafx.scene.control.Label firstEastingLabel
private javafx.scene.control.Label firstNorthingLabel
private javafx.scene.control.Label firstMainDirectionLabel
private javafx.scene.control.Label firstBackUpDirectionLabel
private javafx.scene.control.Label secondEastingLabel
private javafx.scene.control.Label secondNorthingLabel
private javafx.scene.control.Label secondMainDirectionLabel
private javafx.scene.control.Label secondBackUpDirectionLabel
private javafx.scene.control.Label thirdEastingLabel
private javafx.scene.control.Label thirdNorthingLabel
private javafx.scene.control.Label thirdMainDirectionLabel
private javafx.scene.control.Label thirdBackUpDirectionLabel
private javafx.scene.control.Label tempLabel
private javafx.scene.control.Label ammoLabel
private MainApp mainApp
public void setMainApp(MainApp mainApp)
mainApp - MainApp .private void initialize()
public void updateFields()
private java.lang.String toDirection(java.lang.String s)
s - Input stringprivate void setAmmoLabel(int ammo)
ammo - Ammo typeprivate void handleNewTarget()
private void handleTempEdit()
private void handleAmmoEdit()
private void handleSaveData()
private void SaveFile(java.lang.String content,
java.io.File file)
content - Content of the filefile - File to be written.private void handleLoadData()
private void handleNewTukTarget()
private void handlePositionEdit()
private void handleNewPolarTarget()
private void handleExitProgram()
private void handleLimitersEdit()