📄 updateactionsevent.java
字号:
package net.suberic.util.event;import java.util.Hashtable;import javax.swing.Action;/** * This is an event which indicates that a ConifugrableUI element should * update its Action list. */public class UpdateActionsEvent { Hashtable commands = null; Action[] actions = null; /** * This creates a new UpdateActionsEvents with a Hashtable of new * Actions. */ public UpdateActionsEvent(Hashtable newCommands) { commands = newCommands; } /** * This creates a new UpdateActionsEvent from an array of Actions. */ public UpdateActionsEvent(Action[] newActions) { actions=newActions; } public Hashtable getCommands() { return commands; } public Action[] getActions() { return actions; } public boolean hasCommands() { return (commands != null); } public boolean hasActions() { return (actions != null); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -