| 1 package com.sshtools.ui.awt; 2 3 import java.awt.event.ActionListener ; 4 import java.beans.PropertyChangeListener ; 5 6 11 public interface Action extends ActionListener { 12 13 15 18 public static final String NAME = "Name"; 22 public static final String SHORT_DESCRIPTION = "ShortDescription"; 24 27 public static final String LONG_DESCRIPTION = "LongDescription"; 29 32 public static final String ACTION_COMMAND_KEY = "ActionCommandKey"; 34 38 public static final String ACCELERATOR_KEY = "AcceleratorKey"; 40 44 public static final String MNEMONIC_KEY = "MnemonicKey"; 46 50 public final static String SMALL_IMAGE_PATH = "SmallImagePath"; 52 56 public final static String IMAGE_PATH = "ImagePath"; 58 62 public final static String HIDE_TOOLBAR_TEXT = "HideToolBarText"; 64 72 public Object getValue(String key); 73 74 83 public void putValue(String key, Object value); 84 85 91 public String getName(); 92 93 99 public boolean isEnabled(); 100 101 107 public void setEnabled(boolean enabled); 108 109 115 public void addPropertyChangeListener(PropertyChangeListener l); 116 117 123 public void removePropertyChangeListener(PropertyChangeListener l); 124 125 } | Popular Tags |