use of javafx.fxml.FXML in project Entitas-Java by Rubentxu.
the class VisualDebbuger method handleGeneratedFolder.
@FXML
public void handleGeneratedFolder(ActionEvent event) {
final DirectoryChooser directoryChooser = new DirectoryChooser();
final File selectedDirectory = directoryChooser.showDialog(stage);
if (selectedDirectory != null) {
fieldGeneratedFolder.setText(selectedDirectory.getAbsolutePath());
if (props != null)
props.setProperty("fieldGeneratedFolder", selectedDirectory.getAbsolutePath());
}
}
use of javafx.fxml.FXML in project SmartCity-Market by TechnionYP5777.
the class ManagePackagesTab method searchCodeButtonPressed.
@FXML
private void searchCodeButtonPressed(MouseEvent __) {
try {
LocalDate expirationDate = this.expirationDate != null ? this.expirationDate : datePickerForSmartCode.getValue();
if (expirationDate == null)
barcodeEntered(barcodeTextField.getText());
else
smartcodeEntered(new SmartCode(Long.parseLong(barcodeTextField.getText()), expirationDate));
this.expirationDate = expirationDate;
} catch (SMException e) {
log.fatal(e);
log.debug(StackTraceUtil.getStackTrace(e));
e.showInfoToUser();
return;
}
enableRunTheOperationButton();
}
use of javafx.fxml.FXML in project SmartCity-Market by TechnionYP5777.
the class EmployeeLoginScreen method loginButtonPressed.
@FXML
private void loginButtonPressed(ActionEvent __) {
if (loginButton.isDisable())
return;
IManager employee = InjectionFactory.getInstance(Manager.class);
CLIENT_TYPE employeeType = null;
try {
employeeType = employee.login(userNameTextField.getText(), passwordField.getText(), true);
} catch (SMException e) {
log.fatal(e);
log.debug(StackTraceUtil.getStackTrace(e));
e.showInfoToUser();
return;
}
InjectionFactory.getInstance(EmployeeScreensParameterService.class).setClientType(employeeType);
AbstractApplicationScreen.setScene("/EmployeeMenuScreen/EmployeeMenuScreen.fxml");
}
use of javafx.fxml.FXML in project SmartCity-Market by TechnionYP5777.
the class EmployeeLoginScreen method forgetPassPressed.
@FXML
void forgetPassPressed(MouseEvent __) {
try {
IForgotPasswordHandler forgot = InjectionFactory.getInstance(Worker.class);
ForgetPasswordWizard.start(forgot);
} catch (Exception e) {
log.fatal(e);
log.debug(StackTraceUtil.getStackTrace(e));
//TODO
}
}
use of javafx.fxml.FXML in project SmartCity-Market by TechnionYP5777.
the class CustomerRegistration_FinalStepScreen method registerButtonPressed.
@FXML
void registerButtonPressed(ActionEvent __) {
ICustomer customer = InjectionFactory.getInstance(Customer.class);
ICustomerProfile iProfile = TempCustomerProfilePassingData.customerProfile;
CustomerProfile profile = new CustomerProfile(iProfile.getUserName(), TempCustomerProfilePassingData.password, iProfile.getFirstName(), iProfile.getLastName(), iProfile.getPhoneNumber(), iProfile.getEmailAddress(), iProfile.getCity(), iProfile.getStreet(), iProfile.getBirthdate(), iProfile.getAllergens(), new ForgotPasswordData(TempCustomerProfilePassingData.sequrityQuestion, TempCustomerProfilePassingData.sequrityAnswer));
try {
customer.registerNewCustomer(profile);
AbstractApplicationScreen.setScene("/CustomerLoginScreen/CustomerLoginScreen.fxml");
TempCustomerProfilePassingData.clear();
} catch (SMException e) {
log.fatal(e);
log.debug(StackTraceUtil.getStackTrace(e));
e.showInfoToUser();
}
}
Aggregations