1 package net.suberic.util.event; 2 import java.util.Hashtable ; 3 import javax.swing.Action ; 4 5 9 public class UpdateActionsEvent { 10 11 Hashtable commands = null; 12 Action [] actions = null; 13 14 18 public UpdateActionsEvent(Hashtable newCommands) { 19 commands = newCommands; 20 } 21 22 25 26 public UpdateActionsEvent(Action [] newActions) { 27 actions=newActions; 28 } 29 30 public Hashtable getCommands() { 31 return commands; 32 } 33 34 public Action [] getActions() { 35 return actions; 36 } 37 38 public boolean hasCommands() { 39 return (commands != null); 40 } 41 42 public boolean hasActions() { 43 return (actions != null); 44 } 45 } 46 | Popular Tags |