Example #1
0
  private void saveRemrak() {
    Remark remark = new Remark();
    Timestamp currentTime = DateUtil.getCurrentTimeStamp();
    String text = txtTextField.getText();
    if (text != null && !text.isEmpty()) {
      remark.setText(text);
      remark.setDateTime(currentTime);
      remark.setCreatedBy(Application.getLoggedOnUser());
      remark.setPnr(this.pnr);

      task = new RemarkTask(remark, pnr.getId(), busyLabel);
      task.addPropertyChangeListener(this);
      task.execute();
    }
  }
Example #2
0
 public void load() {
   task = new RemarkTask(null, pnr.getId(), busyLabel);
   task.addPropertyChangeListener(this);
   task.execute();
 }