Esempio n. 1
0
 private boolean onOK() {
   boolean ok = true;
   if (listener != null) {
     ok = listener.onOk(this.getMigrate(), this.getSave());
   }
   return ok;
 }
Esempio n. 2
0
 /**
  * Invoked when an action occurs.
  *
  * @param e ActionEvent
  * @todo Implement this java.awt.event.ActionListener method
  */
 public void actionPerformed(ActionEvent e) {
   Object source = e.getSource();
   if (source == ok) {
     if (onOK()) {
       setVisible(false);
     }
   }
   if (source == cancel) {
     if (listener != null) {
       listener.cancel();
     }
     setVisible(false);
   }
   if (source == verify) {
     this.onVerify();
   }
 }
Esempio n. 3
0
 private void onVerify() {
   if (listener != null) {
     listener.verifyModel();
   }
 }