本文整理了Java中org.protege.editor.core.ui.view.View.getActionMap()
方法的一些代码示例,展示了View.getActionMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。View.getActionMap()
方法的具体详情如下:
包路径:org.protege.editor.core.ui.view.View
类名称:View
方法名:getActionMap
暂无
代码示例来源:origin: protegeproject/protege
public void addViewMode(final ViewMode viewMode) {
viewBarComponent.addMode(viewMode);
char ch = Character.toLowerCase(viewMode.getName().charAt(0));
getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(ch), viewMode);
getActionMap().put(viewMode, new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
setViewMode(viewMode);
}
});
}
代码示例来源:origin: protegeproject/protege
String key = "Accelerator" + System.currentTimeMillis();
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(acceleratorKeyStroke, key);
getActionMap().put(key, action);
action.putValue(AbstractAction.SHORT_DESCRIPTION,
action.getValue(AbstractAction.SHORT_DESCRIPTION) + " (" + KeyEvent.getKeyModifiersText(
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
String key = "Accelerator" + System.currentTimeMillis();
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(acceleratorKeyStroke, key);
getActionMap().put(key, action);
action.putValue(AbstractAction.SHORT_DESCRIPTION,
action.getValue(AbstractAction.SHORT_DESCRIPTION) + " (" + KeyEvent.getKeyModifiersText(
代码示例来源:origin: org.protege/protege-editor-core-application
String key = "Accelerator" + System.currentTimeMillis();
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(acceleratorKeyStroke, key);
getActionMap().put(key, action);
action.putValue(AbstractAction.SHORT_DESCRIPTION,
action.getValue(AbstractAction.SHORT_DESCRIPTION) + " (" + KeyEvent.getKeyModifiersText(
内容来源于网络,如有侵权,请联系作者删除!