Example #1
0
  public void initialize() {
    ui.setupUi(this);
    ui.btnAdd.clicked.connect(this, "addClicked()");

    ProjectController.getInstance().update.connect(this, "updateData()");
    ProjectController.getInstance().add.connect(this, "addData(Project)");

    LanguageController.getInstance().languageChanged.connect(this, "translate()");

    setFields();
  }
Example #2
0
 @SuppressWarnings("unused")
 private void translate() {
   ui.retranslateUi(this);
   changeText();
 }