updateactionsevent.java

来自「本系统是用 java 语言实现的一个 Email客户端」· Java 代码 · 共 46 行

JAVA
46
字号
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 + =
减小字号Ctrl + -
显示快捷键?