KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > Action


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4  
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7  
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9  
10    $Log: Action.java,v $
11    Revision 1.3 2004/03/31 08:16:40 bobintetley
12    Code clean up and separating out of JButtonMappedAction class
13
14
15  
16  */

17 package swingwtx.swing;
18
19 import java.beans.PropertyChangeListener JavaDoc;
20
21 import swingwt.awt.event.ActionListener;
22
23 /**
24  *
25  * @author Daniel Spiewak
26  */

27 public interface Action extends ActionListener {
28     
29     public static final String JavaDoc DEFAULT = "Default";
30     
31     public static final String JavaDoc NAME = "Name";
32     
33     public static final String JavaDoc SHORT_DESCRIPTION = "ShortDescription";
34     
35     public static final String JavaDoc LONG_DESCRIPTION = "LongDescription";
36     
37     public static final String JavaDoc SMALL_ICON = "SmallIcon";
38
39     public static final String JavaDoc ACTION_COMMAND_KEY = "ActionCommandKey";
40
41     public static final String JavaDoc ACCELERATOR_KEY = "AcceleratorKey";
42
43     public static final String JavaDoc MNEMONIC_KEY = "MnemonicKey";
44         
45         public static final String JavaDoc SWT_MAPPED_TOOLITEM = "SWTToolItem";
46     
47     /*
48      * Added for better capibility and compatibility with SWT
49      */

50     public static final String JavaDoc DISABLED_ICON = "DisabledIcon";
51     
52     /*
53      * Please note that if the value of this property is not null, then it will be assumed that it is a drop menu toolbar item
54      */

55     public static final String JavaDoc DROP_MENU = "DropMenu";
56
57     public Object JavaDoc getValue(String JavaDoc key);
58
59     public void putValue(String JavaDoc key, Object JavaDoc value);
60
61     public void setEnabled(boolean b);
62
63     public boolean isEnabled();
64
65     public void addPropertyChangeListener(PropertyChangeListener JavaDoc listener);
66
67     public void removePropertyChangeListener(PropertyChangeListener JavaDoc listener);
68 }
69
70 /*
71  *****************************************************
72  * Copyright 2003 Completely Random Solutions *
73  * *
74  * DISCLAMER: *
75  * We are not responsible for any damage *
76  * directly or indirectly caused by the usage *
77  * of this or any other class in assosiation *
78  * with this class. Use at your own risk. *
79  * This or any other class by CRS is not *
80  * certified for use in life support systems, *
81  * the Space Shuttle, in use or developement *
82  * of nuclear reactors, weapons of mass *
83  * destruction, or in interplanitary conflict. *
84  * (Unless otherwise specified) *
85  *****************************************************
86  */
Popular Tags