private boolean onOK() { boolean ok = true; if (listener != null) { ok = listener.onOk(this.getMigrate(), this.getSave()); } return ok; }
/** * 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(); } }
private void onVerify() { if (listener != null) { listener.verifyModel(); } }