/** * Returns the accelerator for this action. * * @return The accelerator. * @see #setAccelerator(KeyStroke) */ public KeyStroke getAccelerator() { return (KeyStroke)getValue(ACCELERATOR_KEY); }
/** * Returns the description for this action. * * @return The description. */ public String getDescription() { return (String)getValue(SHORT_DESCRIPTION); }
/** * Returns the icon for this action. * * @return The icon. */ public Icon getIcon() { return (Icon)getValue(SMALL_ICON); }
/** * Returns the name of this action. * * @return The name of this action. * @see #setName(String) */ public String getName() { return (String)getValue(NAME); }
/** * Returns the mnemonic for this action. * * @return The mnemonic, or <code>-1</code> if not defined. * @see #setMnemonic(char) * @see #setMnemonic(Integer) */ public int getMnemonic() { Integer i = (Integer)getValue(MNEMONIC_KEY); return i!=null ? i.intValue() : -1; }
/** * Returns the icon for this action. * * @return The icon. */ public Icon getIcon() { return (Icon)getValue(SMALL_ICON); }
/** * Returns the name of this action. * * @return The name of this action. */ public String getName() { return (String)getValue(NAME); }
/** * Returns the description for this action. * * @return The description. */ public String getDescription() { return (String)getValue(SHORT_DESCRIPTION); }
/** * Returns the icon for this action. * * @return The icon. */ public Icon getIcon() { return (Icon)getValue(SMALL_ICON); }
/** * Returns the icon for this action. * * @return The icon. */ public Icon getIcon() { return (Icon)getValue(SMALL_ICON); }
/** * Returns the name of this action. * * @return The name of this action. * @see #setName(String) */ public String getName() { return (String)getValue(NAME); }
/** * Returns the description for this action. * * @return The description. */ public String getDescription() { return (String)getValue(SHORT_DESCRIPTION); }
/** * Returns the name of this action. * * @return The name of this action. */ public String getName() { return (String)getValue(NAME); }
/** * Returns the accelerator for this action. * * @return The accelerator. * @see #setAccelerator(KeyStroke) */ public KeyStroke getAccelerator() { return (KeyStroke)getValue(ACCELERATOR_KEY); }
/** * Returns the accelerator for this action. * * @return The accelerator. */ public KeyStroke getAccelerator() { return (KeyStroke)getValue(ACCELERATOR_KEY); }
/** * Returns the accelerator for this action. * * @return The accelerator. */ public KeyStroke getAccelerator() { return (KeyStroke)getValue(ACCELERATOR_KEY); }
/** * Returns the description for this action. * * @return The description. */ public String getDescription() { return (String)getValue(SHORT_DESCRIPTION); }
/** * Returns the mnemonic for this action. * * @return The mnemonic, or <code>-1</code> if not defined. * @see #setMnemonic(Integer) */ public int getMnemonic() { Integer i = (Integer)getValue(MNEMONIC_KEY); return i!=null ? i.intValue() : -1; }
/** * Returns the mnemonic for this action. * * @return The mnemonic, or <code>-1</code> if not defined. * @see #setMnemonic(char) * @see #setMnemonic(Integer) */ public int getMnemonic() { Integer i = (Integer)getValue(MNEMONIC_KEY); return i!=null ? i.intValue() : -1; }
/** * Returns the mnemonic for this action. * * @return The mnemonic, or <code>-1</code> if not defined. * @see #setMnemonic(Integer) */ public int getMnemonic() { Integer i = (Integer)getValue(MNEMONIC_KEY); return i!=null ? i.intValue() : -1; }