/** * Returns the mnemonic of the approve button. * * @return the current mnemonic, e.g., KeyEvent.VK_O */ public int getApproveMnemonic() { return m_ButtonApprove.getMnemonic(); }
/** * Returns the mnemonic of the discard button. * * @return the current mnemonic, e.g., KeyEvent.VK_D */ public int getDiscardMnemonic() { return m_ButtonDiscard.getMnemonic(); }
/** * Returns the mnemonic of the Cancel button. * * @return the current mnemonic, e.g., KeyEvent.VK_C */ public int getCancelMnemonic() { return m_ButtonCancel.getMnemonic(); }
/** * Returns the mnemonic of the Cancel button. * * @return the current mnemonic, e.g., KeyEvent.VK_C */ public int getCancelMnemonic() { return m_ButtonCancel.getMnemonic(); }
/** * Returns the mnemonic of the approve button. * * @return the current mnemonic, e.g., KeyEvent.VK_O */ public int getApproveMnemonic() { return m_ButtonApprove.getMnemonic(); }
/** * Returns the mnemonic of the Cancel button. * * @return the current mnemonic, e.g., KeyEvent.VK_C */ public int getCancelMnemonic() { return m_ButtonCancel.getMnemonic(); }
/** * Returns the mnemonic of the approve button. * * @return the current mnemonic, e.g., KeyEvent.VK_O */ public int getApproveMnemonic() { return m_ButtonApprove.getMnemonic(); }
/** * Returns the mnemonic of the discard button. * * @return the current mnemonic, e.g., KeyEvent.VK_D */ public int getDiscardMnemonic() { return m_ButtonDiscard.getMnemonic(); }
/** * @see AbstractComponentProperty#getPropertyValueFromComponent() */ @Override protected Integer getPropertyValueFromComponent() { return component.getMnemonic(); }
/** * Returns the mnemonic of the discard button. * * @return the current mnemonic, e.g., KeyEvent.VK_D */ public int getDiscardMnemonic() { return m_ButtonDiscard.getMnemonic(); }
/** * Information extraction for all other buttons * TODO: This needs to be tested. I couldn't find a button that wasn't inspected with this fallback. * * @param source source of the action */ private void analyzeJButton(JButton source) { mySource = ActionSource.OTHER; myMnemonic = source.getMnemonic(); myDescription = source.getText(); }
if (keyCode==button.getMnemonic()) { button.doClick(); return;
char mnemonic = ((char) ((JButton) source).getMnemonic()); if (mnemonic > 0) { shortcutText = "\'" + metaKey + mnemonic + "\'";