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.pdfsam.guiclient.business.actions.AutoLoadEnvironmentAction.java
public AutoLoadEnvironmentAction(Environment environment, File recentEnvironment) { super(recentEnvironment.getName()); this.putValue(Action.SHORT_DESCRIPTION, GettextResource .gettext(Configuration.getInstance().getI18nResourceBundle(), recentEnvironment.getAbsolutePath())); this.setEnabled(true); this.environment = environment; this.recentEnvironment = recentEnvironment; }
From source file:org.pmedv.blackboard.commands.DeletePartCommand.java
public DeletePartCommand() { putValue(Action.NAME, resources.getResourceByKey("DeletePartCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.delete")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("DeletePartCommand.description")); }
From source file:ca.sfu.federation.action.CreateComponentAction.java
public CreateComponentAction() { super("Create Componnet", null); Icon icon = ImageIconUtils.loadIconById("model-create-component"); this.putValue(Action.LONG_DESCRIPTION, "Create Component"); this.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_C); this.putValue(Action.SHORT_DESCRIPTION, "Create Component"); this.putValue(Action.SMALL_ICON, icon); }
From source file:ro.nextreports.designer.action.tools.RestoreDockingAction.java
public RestoreDockingAction() { putValue(Action.NAME, I18NSupport.getString("restore.docking.action.name")); putValue(Action.SMALL_ICON, ImageUtil.getImageIcon("docking_restore")); putValue(Action.MNEMONIC_KEY, ShortcutsUtil.getMnemonic("layout.reset.mnemonic", new Integer('L'))); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(ShortcutsUtil.getShortcut("layout.reset.accelerator", "control L"))); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("restore.docking.action.name")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("restore.docking.action.name")); }
From source file:org.pmedv.core.commands.OpenPerspectiveCommand.java
public OpenPerspectiveCommand(String id) { this.id = id; putValue(Action.NAME, id);/*from w ww .ja v a 2 s . c o m*/ putValue(Action.SHORT_DESCRIPTION, "Opens the " + id + " perspective."); }
From source file:org.pmedv.blackboard.commands.RedoCommand.java
public RedoCommand() { putValue(Action.NAME, resources.getResourceByKey("RedoCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.redo")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("RedoCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Y, InputEvent.CTRL_DOWN_MASK)); setEnabled(false);/*from ww w .ja v a 2 s . c o m*/ }
From source file:net.sf.jabref.gui.help.HelpAction.java
private HelpAction(String title, String tooltip, HelpFile helpPage, Icon icon) { super(icon);//from www .ja v a2 s .c o m this.helpPage = helpPage; putValue(Action.NAME, title); putValue(Action.SHORT_DESCRIPTION, tooltip); }
From source file:org.pmedv.blackboard.commands.UndoCommand.java
public UndoCommand() { putValue(Action.NAME, resources.getResourceByKey("UndoCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.undo")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("UndoCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Z, InputEvent.CTRL_DOWN_MASK)); setEnabled(false);/*from www.java 2 s . c o m*/ }
From source file:org.pmedv.blackboard.commands.ExportImageCommand.java
public ExportImageCommand() { putValue(Action.NAME, resources.getResourceByKey("ExportImageCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.export")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("ExportImageCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK)); setEnabled(false);/*from ww w. jav a 2 s . c o m*/ }
From source file:org.pmedv.blackboard.commands.RotateCCWCommand.java
public RotateCCWCommand() { putValue(Action.NAME, resources.getResourceByKey("RotateCCWCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.rotateccw")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("RotateCCWCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, 0)); setEnabled(false);//from w ww.j a va 2 s. c o m }