/** * Sets the short description for this action. * * @param shortDesc The short description for this action. */ public void setShortDescription(String shortDesc) { putValue(SHORT_DESCRIPTION, shortDesc); }
/** * Sets the accelerator for this action. * * @param accelerator The new accelerator. * @see #getAccelerator() */ public void setAccelerator(KeyStroke accelerator) { putValue(ACCELERATOR_KEY, accelerator); }
/** * Sets the mnemonic for this action. * * @param mnemonic The new mnemonic. * @see #setMnemonic(char) * @see #getMnemonic() */ public void setMnemonic(Integer mnemonic) { putValue(MNEMONIC_KEY, mnemonic); }
/** * Sets the name of this action. * * @param name The new name. * @see #getName() */ public void setName(String name) { putValue(NAME, name); }
/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }
cutAction.putValue(Action.SMALL_ICON, icon); icon = group.getIcon("copy"); copyAction.putValue(Action.SMALL_ICON, icon); icon = group.getIcon("paste"); pasteAction.putValue(Action.SMALL_ICON, icon); icon = group.getIcon("delete"); deleteAction.putValue(Action.SMALL_ICON, icon); icon = group.getIcon("undo"); undoAction.putValue(Action.SMALL_ICON, icon); icon = group.getIcon("redo"); redoAction.putValue(Action.SMALL_ICON, icon); icon = group.getIcon("selectall"); selectAllAction.putValue(Action.SMALL_ICON, icon); iconGroup = group;
/** * Sets the name of this action. * * @param name The new name. * @see #getName() */ public void setName(String name) { putValue(NAME, name); }
/** * Sets the mnemonic for this action. * * @param mnemonic The new mnemonic. * @see #getMnemonic() */ public void setMnemonic(Integer mnemonic) { putValue(MNEMONIC_KEY, mnemonic); }
/** * Sets the mnemonic for this action. * * @param mnemonic The new mnemonic. * @see #setMnemonic(char) * @see #getMnemonic() */ public void setMnemonic(Integer mnemonic) { putValue(MNEMONIC_KEY, mnemonic); }
/** * Sets the short description for this action. * * @param shortDesc The short description for this action. */ public void setShortDescription(String shortDesc) { putValue(SHORT_DESCRIPTION, shortDesc); }
/** * Sets the accelerator for this action. * * @param accelerator The new accelerator. * @see #getAccelerator() */ public void setAccelerator(KeyStroke accelerator) { putValue(ACCELERATOR_KEY, accelerator); }
/** * Sets the mnemonic for this action. * * @param mnemonic The new mnemonic. * @see #getMnemonic() */ public void setMnemonic(Integer mnemonic) { putValue(MNEMONIC_KEY, mnemonic); }
/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }
/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }
private void configurarAcaoCopiar() { Icon icone = IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "page_white_copy.png"); RTextArea.getAction(RSyntaxTextArea.COPY_ACTION).putValue(Action.SMALL_ICON, icone); }
private void configurarAcaoExcluir() { Icon icone = IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "trash_can.png"); RTextArea.getAction(RSyntaxTextArea.DELETE_ACTION).putValue(Action.SMALL_ICON, icone); }
private void configurarAcaoDesfazer() { Icon icone = IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "arrow_undo.png"); RTextArea.getAction(RSyntaxTextArea.UNDO_ACTION).putValue(Action.SMALL_ICON, icone); }
private void configurarAcaoRefazer() { Icon icone = IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "arrow_redo.png"); RTextArea.getAction(RSyntaxTextArea.REDO_ACTION).putValue(Action.SMALL_ICON, icone); }
private void configurarAcaoRecortar() { Icon icone = IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "cut_red.png"); RTextArea.getAction(RSyntaxTextArea.CUT_ACTION).putValue(Action.SMALL_ICON, icone); }
private void configurarAcaoColar() { Icon icone = IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "page_white_paste.png"); RTextArea.getAction(RSyntaxTextArea.PASTE_ACTION).putValue(Action.SMALL_ICON, icone); }