/** * Artificially clicks the cancel button when this panel is escaped. * * @param isEscaped indicates if this dialog is closed by the Esc shortcut */ protected void close(boolean isEscaped) { if (isEscaped) cancelButton.doClick(); }
/** Clicks the call contact button in order to call the unknown contact. */ public void startCall() { callButton.doClick(); }
/** Clicks the add contact button in order to add the unknown contact to the contact list. */ public void addUnknownContact() { addButton.doClick(); }
/** * Automatically press the cancel button when this dialog has been escaped. * * @param escaped indicates if this dialog has been closed by pressing the ESC key */ @Override protected void close(boolean escaped) { if (escaped) cancelButton.doClick(); }