1 36 37 import javax.swing.Action ; 38 39 42 public class PublishAction extends JLFAbstractAction { 43 44 private static final String ACTION_COMMAND_KEY_ABOUT = "publish-command"; 45 private static final String NAME_ABOUT = "Publish"; 46 private static final String SMALL_ICON_ABOUT = null; 47 private static final String LARGE_ICON_ABOUT = null; 48 private static final String SHORT_DESCRIPTION_ABOUT = "Publish note"; 49 private static final String LONG_DESCRIPTION_ABOUT = "Publish note on Web Server"; 50 private static final int MNEMONIC_KEY_ABOUT = 'U'; 51 52 55 public PublishAction() { 56 putValue(Action.NAME, NAME_ABOUT); 57 putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_ABOUT)); 58 putValue(LARGE_ICON, getIcon(LARGE_ICON_ABOUT)); 59 putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_ABOUT); 60 putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_ABOUT); 61 putValue(Action.MNEMONIC_KEY, new Integer (MNEMONIC_KEY_ABOUT)); 62 putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_ABOUT); 63 } 64 65 } 66 | Popular Tags |