本文整理了Java中javax.swing.JMenuItem.setName()
方法的一些代码示例,展示了JMenuItem.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.setName()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:setName
暂无
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiExport() {
$objectMap.put("miExport", miExport = new JMenuItem());
miExport.setName("miExport");
miExport.setText(t("isisfish.script.menu.txtExport"));
miExport.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miExport"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiImport() {
$objectMap.put("miImport", miImport = new JMenuItem());
miImport.setName("miImport");
miImport.setEnabled(false);
miImport.setText(t("isisfish.script.menu.txtImport"));
miImport.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miImport"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiCheckSyntax() {
$objectMap.put("miCheckSyntax", miCheckSyntax = new JMenuItem());
miCheckSyntax.setName("miCheckSyntax");
miCheckSyntax.setText(t("isisfish.script.menu.checkSyntax"));
miCheckSyntax.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miCheckSyntax"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiCopy() {
$objectMap.put("miCopy", miCopy = new JMenuItem());
miCopy.setName("miCopy");
miCopy.setText(t("isisfish.script.menu.copy"));
miCopy.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miCopy"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiDelete() {
$objectMap.put("miDelete", miDelete = new JMenuItem());
miDelete.setName("miDelete");
miDelete.setText(t("isisfish.script.menu.deleteLocaly"));
miDelete.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miDelete"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiDeleteVCS() {
$objectMap.put("miDeleteVCS", miDeleteVCS = new JMenuItem());
miDeleteVCS.setName("miDeleteVCS");
miDeleteVCS.setText(t("isisfish.script.menu.deleteLocalyServer"));
miDeleteVCS.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miDeleteVCS"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiShowJavadoc() {
$objectMap.put("miShowJavadoc", miShowJavadoc = new JMenuItem());
miShowJavadoc.setName("miShowJavadoc");
miShowJavadoc.setText(t("isisfish.script.menu.javadocshow"));
miShowJavadoc.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miShowJavadoc"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiCommitVCS() {
$objectMap.put("miCommitVCS", miCommitVCS = new JMenuItem());
miCommitVCS.setName("miCommitVCS");
miCommitVCS.setText(t("isisfish.script.menu.commit"));
miCommitVCS.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miCommitVCS"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiEvaluate() {
$objectMap.put("miEvaluate", miEvaluate = new JMenuItem());
miEvaluate.setName("miEvaluate");
miEvaluate.setText(t("isisfish.script.menu.evaluate"));
miEvaluate.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miEvaluate"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiNewEquationModel() {
$objectMap.put("miNewEquationModel", miNewEquationModel = new JMenuItem());
miNewEquationModel.setName("miNewEquationModel");
miNewEquationModel.setText(t("isisfish.script.menu.txtNewEquationModel"));
miNewEquationModel.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miNewEquationModel"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiNewSensitivityExport() {
$objectMap.put("miNewSensitivityExport", miNewSensitivityExport = new JMenuItem());
miNewSensitivityExport.setName("miNewSensitivityExport");
miNewSensitivityExport.setText(t("isisfish.script.menu.txtNewSensitivityExport"));
miNewSensitivityExport.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miNewSensitivityExport"));
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createMiUpdateVCS() {
$objectMap.put("miUpdateVCS", miUpdateVCS = new JMenuItem());
miUpdateVCS.setName("miUpdateVCS");
miUpdateVCS.setText(t("isisfish.script.menu.update"));
miUpdateVCS.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__miUpdateVCS"));
}
代码示例来源:origin: net.java.abeille/abeille
public JMenuItem i18n_createMenuItem(String itemText, String actionCmd, KeyStroke keyAccelerator) {
JMenuItem item = new JMenuItem(I18N.getLocalizedMessage(itemText));
item.setName(actionCmd);
item.setActionCommand(actionCmd);
if (keyAccelerator != null)
item.setAccelerator(keyAccelerator);
return item;
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
protected void createResetOptionValue() {
$objectMap.put("resetOptionValue", resetOptionValue = new JMenuItem());
resetOptionValue.setName("resetOptionValue");
resetOptionValue.setText(t("config.action.resetOptionValue"));
resetOptionValue.setToolTipText(t("config.action.resetOptionValue.tip"));
resetOptionValue.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__resetOptionValue"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
protected void createResetOptionValue() {
$objectMap.put("resetOptionValue", resetOptionValue = new JMenuItem());
resetOptionValue.setName("resetOptionValue");
resetOptionValue.setText(t("config.action.resetOptionValue"));
resetOptionValue.setToolTipText(t("config.action.resetOptionValue.tip"));
resetOptionValue.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__resetOptionValue"));
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
protected void createResetOptionValue() {
$objectMap.put("resetOptionValue", resetOptionValue = new JMenuItem());
resetOptionValue.setName("resetOptionValue");
resetOptionValue.setText(t("config.action.resetOptionValue"));
resetOptionValue.setToolTipText(t("config.action.resetOptionValue.tip"));
resetOptionValue.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__resetOptionValue"));
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
private JMenuItem createMenuItem(String name, String actionCommand) {
JMenuItem addThinkTimesToChildren = new JMenuItem(JMeterUtils.getResString(name));
addThinkTimesToChildren.setName(name);
addThinkTimesToChildren.addActionListener(ActionRouter.getInstance());
addThinkTimesToChildren.setActionCommand(actionCommand);
return addThinkTimesToChildren;
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
protected void createCopyCellValue() {
$objectMap.put("copyCellValue", copyCellValue = new JMenuItem());
copyCellValue.setName("copyCellValue");
copyCellValue.setText(t("config.action.copyCellValue"));
copyCellValue.setToolTipText(t("config.action.copyCellValue.tip"));
copyCellValue.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__copyCellValue"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
protected void createCopyCellValue() {
$objectMap.put("copyCellValue", copyCellValue = new JMenuItem());
copyCellValue.setName("copyCellValue");
copyCellValue.setText(t("config.action.copyCellValue"));
copyCellValue.setToolTipText(t("config.action.copyCellValue.tip"));
copyCellValue.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__copyCellValue"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
protected void createSelectedListMoveDownAction() {
$objectMap.put("selectedListMoveDownAction", selectedListMoveDownAction = new JMenuItem());
selectedListMoveDownAction.setName("selectedListMoveDownAction");
selectedListMoveDownAction.setText(t("bean.action.selected.move.down"));
selectedListMoveDownAction.setToolTipText(t("bean.action.selected.move.down.tip"));
selectedListMoveDownAction.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__selectedListMoveDownAction"));
}
内容来源于网络,如有侵权,请联系作者删除!