1 17 package swingwtx.swing; 18 19 import java.beans.PropertyChangeListener ; 20 21 import swingwt.awt.event.ActionListener; 22 23 27 public interface Action extends ActionListener { 28 29 public static final String DEFAULT = "Default"; 30 31 public static final String NAME = "Name"; 32 33 public static final String SHORT_DESCRIPTION = "ShortDescription"; 34 35 public static final String LONG_DESCRIPTION = "LongDescription"; 36 37 public static final String SMALL_ICON = "SmallIcon"; 38 39 public static final String ACTION_COMMAND_KEY = "ActionCommandKey"; 40 41 public static final String ACCELERATOR_KEY = "AcceleratorKey"; 42 43 public static final String MNEMONIC_KEY = "MnemonicKey"; 44 45 public static final String SWT_MAPPED_TOOLITEM = "SWTToolItem"; 46 47 50 public static final String DISABLED_ICON = "DisabledIcon"; 51 52 55 public static final String DROP_MENU = "DropMenu"; 56 57 public Object getValue(String key); 58 59 public void putValue(String key, Object value); 60 61 public void setEnabled(boolean b); 62 63 public boolean isEnabled(); 64 65 public void addPropertyChangeListener(PropertyChangeListener listener); 66 67 public void removePropertyChangeListener(PropertyChangeListener listener); 68 } 69 70 | Popular Tags |