List of usage examples for javax.swing Action SHORT_DESCRIPTION
String SHORT_DESCRIPTION
To view the source code for javax.swing Action SHORT_DESCRIPTION.
Click Source Link
String
description for the action, used for tooltip text. From source file:org.pmedv.blackboard.commands.ConvertToSymbolCommand.java
public ConvertToSymbolCommand() { putValue(Action.NAME, resources.getResourceByKey("ConvertToSymbolCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.converttosymbol")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("ConvertToSymbolCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK)); setEnabled(false);/* w ww . ja v a 2s . c om*/ }
From source file:org.pmedv.blackboard.commands.AddTextCommand.java
public AddTextCommand() { putValue(Action.NAME, resources.getResourceByKey("AddTextCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.addtext")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("AddTextCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.CTRL_DOWN_MASK)); setEnabled(false);//w w w . j a v a 2 s.c o m }
From source file:org.pmedv.blackboard.commands.CreatePartListCommand.java
public CreatePartListCommand() { putValue(Action.NAME, resources.getResourceByKey("CreatePartListCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.partlist")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("CreatePartListCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.ALT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK)); setEnabled(false);/*from w w w . j a v a 2s . c o m*/ }
From source file:net.sf.jabref.gui.help.HelpAction.java
public JButton getHelpButton() { JButton button = new JButton(this); button.setText(null);// ww w . j a va 2 s. c o m button.setPreferredSize(new Dimension(24, 24)); button.setToolTipText(getValue(Action.SHORT_DESCRIPTION).toString()); return button; }
From source file:org.colombbus.tangara.commons.resinject.ActionInjecter.java
private void injectShortDescription() { String shortDescKey = actionKey + SHORT_DESCRIPTION_SUFFIX; if (classResource.containsKey(shortDescKey)) { String shortDescValue = classResource.getString(shortDescKey); action.putValue(Action.SHORT_DESCRIPTION, shortDescValue); }/*from ww w. jav a 2 s. c om*/ }
From source file:org.pentaho.reporting.designer.core.actions.global.ScreenCaptureAction.java
public ScreenCaptureAction() { putValue(Action.NAME, ActionMessages.getString("ScreenCaptureAction.Text")); putValue(Action.SHORT_DESCRIPTION, ActionMessages.getString("ScreenCaptureAction.Description")); putValue(Action.MNEMONIC_KEY, ActionMessages.getOptionalMnemonic("ScreenCaptureAction.Mnemonic")); //putValue(Action.ACCELERATOR_KEY, ActionMessages.getOptionalKeyStroke("ScreenCaptureAction.Accelerator")); installGlobally();/*from w w w. ja v a 2s . c o m*/ }
From source file:ca.sfu.federation.action.CreateProjectAction.java
/** * CreateProjectAction constructor.//from w w w .j a v a 2 s .com * @param Name Action name that will appear in menus. * @param MyIcon Action icon. * @param ToolTip Action description that will appear in Tool Tip. * @param MnemonicId Key mnemonic. */ public CreateProjectAction(String Name, Icon MyIcon, String ToolTip, Integer MnemonicId) { super(Name, MyIcon); this.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control N")); this.putValue(Action.LONG_DESCRIPTION, ToolTip); this.putValue(Action.MNEMONIC_KEY, MnemonicId); this.putValue(Action.SHORT_DESCRIPTION, ToolTip); this.putValue(Action.SMALL_ICON, MyIcon); }
From source file:org.kineticsystem.commons.data.view.actions.MoveForwardAction.java
/** * Constructor.//from w w w. j ava2 s . c o m * @param controller The navigator controller instance. */ public MoveForwardAction(Navigator navigator) { this.navigator = navigator; putValue(Action.SMALL_ICON, ResourceLoader.getIcon(NAVIGATOR_RESOURCE + "Next16.png")); putValue(Action.NAME, Localizer.localizeString(NAVIGATOR_BUNDLE, "MoveForwardAction")); putValue(Action.SHORT_DESCRIPTION, Localizer.localizeString(NAVIGATOR_BUNDLE, "MoveForwardAction_Description")); setEnabled(false); }
From source file:org.kineticsystem.commons.data.view.actions.MoveBackAction.java
/** * Default constructor.//w w w . j a va2 s. co m * @param controller The navigation controller associate to the action. */ public MoveBackAction(Navigator navigator) { this.navigator = navigator; putValue(Action.SMALL_ICON, ResourceLoader.getIcon(NAVIGATOR_RESOURCE + "Previous16.png")); putValue(Action.NAME, Localizer.localizeString(NAVIGATOR_BUNDLE, "MoveBackAction")); putValue(Action.SHORT_DESCRIPTION, Localizer.localizeString(NAVIGATOR_BUNDLE, "MoveBackAction_Description")); setEnabled(false); }
From source file:org.kineticsystem.commons.data.view.actions.MoveBackMouseAction.java
/** * Constructor.//from w w w .j a v a2s .c o m * @param navigator The navigator instance. */ public MoveBackMouseAction(Navigator navigator) { this.navigator = navigator; putValue(Action.SMALL_ICON, ResourceLoader.getIcon(NAVIGATOR_RESOURCE + "Previous16.png")); putValue(Action.NAME, Localizer.localizeString(NAVIGATOR_BUNDLE, "MoveBackAction")); putValue(Action.SHORT_DESCRIPTION, Localizer.localizeString(NAVIGATOR_BUNDLE, "MoveBackAction_Description")); setEnabled(false); }