public class TargetEditController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javafx.stage.Stage |
dialogStage |
private javafx.scene.control.TextField |
directionAngleField |
private javafx.scene.control.TextField |
eastingField |
private javafx.scene.control.TextField |
FOdistanceField |
private javafx.scene.control.TextField |
FOeastingField |
private javafx.scene.control.TextField |
FOnorthingField |
private javafx.scene.control.TextField |
northingField |
private boolean |
okClicked |
private Target |
Target |
private javafx.scene.control.TextField |
targetName |
| Constructor and Description |
|---|
TargetEditController() |
| Modifier and Type | Method and Description |
|---|---|
private void |
handleCancel()
Called when the user clicks cancel.
|
private void |
handleOk()
Called when the user clicks "Salvesta".
|
private void |
initialize()
Initializes the controller class.
|
private boolean |
isInputValid()
Validates the user input in the text fields.
|
boolean |
isNumeric(java.lang.String s) |
boolean |
isOkClicked()
Returns true if confirmation button is pressed, false if not.
|
void |
onEnter(javafx.event.ActionEvent ae)
Called when the user presses Enter key.
|
void |
setDialogStage(javafx.stage.Stage dialogStage)
Sets the stage of this dialog.
|
void |
setTarget(Target Target)
Sets the Target to be edited in the dialog.
|
private javafx.scene.control.TextField eastingField
private javafx.scene.control.TextField northingField
private javafx.scene.control.TextField FOeastingField
private javafx.scene.control.TextField FOnorthingField
private javafx.scene.control.TextField directionAngleField
private javafx.scene.control.TextField FOdistanceField
private javafx.scene.control.TextField targetName
private javafx.stage.Stage dialogStage
private Target Target
private boolean okClicked
public boolean isNumeric(java.lang.String s)
private void initialize()
public void setDialogStage(javafx.stage.Stage dialogStage)
dialogStage - Dialog stage.public void setTarget(Target Target)
Target - Targetpublic boolean isOkClicked()
private void handleOk()
public void onEnter(javafx.event.ActionEvent ae)
ae - Action Eventprivate void handleCancel()
private boolean isInputValid()