public interface ActionApplicationListener<E extends ApplicationEvent> extends ApplicationListener<E>
| 限定符和类型 | 方法和说明 |
|---|---|
default KeyStroke |
getAccelerator(String actionCommand)
快捷键
例如:ctrl alt shift 1 - > KeyStroke.getKeyStroke(KeyEvent.VK_1, KeyEvent.CTRL_MASK|KeyEvent.ALT_MASK|KeyEvent.SHIFT_MASK)
|
default String |
getSupportActionCommands()
提供支持的ActionCommand,逗号分隔
|
default boolean |
isSupport(ActionEvent event)
是否支持
|
default boolean |
isSupport(String actionCommand)
是否支持
|
onApplicationEventdefault boolean isSupport(ActionEvent event)
event - default boolean isSupport(String actionCommand)
actionCommand - default String getSupportActionCommands()
Copyright © 2025. All rights reserved.