List of usage examples for javax.swing Action LONG_DESCRIPTION
String LONG_DESCRIPTION
To view the source code for javax.swing Action LONG_DESCRIPTION.
Click Source Link
String
description for the action, could be used for context-sensitive help. From source file:org.geopublishing.atlasStyler.swing.AtlasStylerGUI.java
/** * This method initializes jToolBar//from www .ja v a2s . co m * * @return javax.swing.JToolBar */ private JToolBar getJToolBar() { JToolBar jToolBar = new JToolBar(); jToolBar.setFloatable(false); AbstractAction importWiazrdAction = new AbstractAction( AtlasStylerVector.R("MenuBar.FileMenu.ImportWizard")) { @Override public void actionPerformed(ActionEvent e) { ImportWizard.showWizard(AtlasStylerGUI.this, AtlasStylerGUI.this); } }; importWiazrdAction.putValue(Action.LONG_DESCRIPTION, KeyStroke.getKeyStroke(KeyEvent.VK_I, Event.CTRL_MASK, true)); jToolBar.add(importWiazrdAction); jToolBar.add(getJTButtonShowXML()); jToolBar.add(getJTButtonExportAsSLD()); return jToolBar; }
From source file:pl.otros.logview.gui.actions.ConnectToSocketHubAppenderAction.java
public ConnectToSocketHubAppenderAction(OtrosApplication otrosApplication) { super(otrosApplication); putValue(Action.NAME, "Connect to Log4j socket hub"); putValue(Action.SHORT_DESCRIPTION, "Connect to Log4j SocketHubAppender"); putValue(Action.LONG_DESCRIPTION, "Connect to Log4j SocketHubAppender"); putValue(SMALL_ICON, Icons.PLUGIN_CONNECT); }
From source file:pl.otros.logview.gui.actions.StartSocketListener.java
public StartSocketListener(OtrosApplication otrosApplication, Collection<SocketLogReader> logReaders) { super(otrosApplication); this.logReaders = logReaders; putValue(Action.NAME, "Start socket listener"); putValue(Action.SHORT_DESCRIPTION, "Start socket listener on port."); putValue(Action.LONG_DESCRIPTION, "Start socket listener on port."); putValue(SMALL_ICON, Icons.PLUGIN_PLUS); }
From source file:ro.nextreports.designer.action.chart.OpenChartAction.java
public OpenChartAction(boolean fullName) { if (fullName) { putValue(Action.NAME, I18NSupport.getString("open.chart")); } else {//w w w .ja va2 s . co m putValue(Action.NAME, I18NSupport.getString("open.chart.small")); } Icon icon = ImageUtil.getImageIcon("chart_open"); putValue(Action.SMALL_ICON, icon); putValue(Action.MNEMONIC_KEY, ShortcutsUtil.getMnemonic("chart.open.mnemonic", new Integer('A'))); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(ShortcutsUtil.getShortcut("chart.open.accelerator", "control A"))); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("open.chart")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("open.chart")); }
From source file:ro.nextreports.designer.action.chart.PreviewChartAction.java
public PreviewChartAction(String chartRunnerType, byte chartGraphicType) { String image = "chart_preview_flash"; if (ChartRunner.IMAGE_FORMAT.equals(chartRunnerType)) { image = "chart_preview_image"; } else if (ChartRunner.HTML5_TYPE == chartGraphicType) { image = "chart_preview_html5"; }/*from ww w.jav a2 s . c o m*/ Icon icon = ImageUtil.getImageIcon(image); putValue(Action.SMALL_ICON, icon); String descKey = "preview.chart.flash"; if (ChartRunner.IMAGE_FORMAT.equals(chartRunnerType)) { descKey = "preview.chart.image"; } else if (ChartRunner.HTML5_TYPE == chartGraphicType) { descKey = "preview.chart.html5"; } putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString(descKey)); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString(descKey)); this.chartRunnerType = chartRunnerType; this.chartGraphicType = chartGraphicType; loaded = true; }
From source file:ro.nextreports.designer.action.datasource.DataSourceConnectAction.java
public DataSourceConnectAction(DBBrowserTree tree, TreePath selPath) { putValue(Action.NAME, I18NSupport.getString("connect")); putValue(Action.SMALL_ICON, ImageUtil.getImageIcon("database_connect")); putValue(Action.MNEMONIC_KEY, new Integer('C')); // putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, // KeyEvent.CTRL_DOWN_MASK)); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("connect.short.desc")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("connect.long.desc")); this.tree = tree; this.selPath = selPath; }
From source file:ro.nextreports.designer.action.query.ValidateSqlsAction.java
public ValidateSqlsAction(DBObject sqlObject) { String text;// ww w. j a v a 2s . co m multiple = (sqlObject.getType() == DBObject.REPORTS_GROUP) || (sqlObject.getType() == DBObject.QUERIES_GROUP) || (sqlObject.getType() == DBObject.CHARTS_GROUP) || (sqlObject.getType() == DBObject.FOLDER_QUERY) || (sqlObject.getType() == DBObject.FOLDER_REPORT) || (sqlObject.getType() == DBObject.FOLDER_CHART); if (multiple) { text = I18NSupport.getString("sql.validation"); } else { text = I18NSupport.getString("sql.validation.single"); } putValue(Action.NAME, text); putValue(Action.SMALL_ICON, ImageUtil.getImageIcon("sql_validation")); putValue(Action.SHORT_DESCRIPTION, text); putValue(Action.LONG_DESCRIPTION, text); this.sqlObject = sqlObject; }
From source file:ro.nextreports.designer.action.report.ViewReportSqlAction.java
public ViewReportSqlAction() { putValue(Action.NAME, I18NSupport.getString("view.sql")); putValue(Action.SMALL_ICON, ImageUtil.getImageIcon("report_view")); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("view.sql")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("view.sql")); }
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")); }