01: /**
02: * Miroslav Popov, Dec 1, 2005
03: * miroslav.popov@gmail.com
04: */package org.enhydra.jawe;
05:
06: import javax.swing.ImageIcon;
07:
08: /**
09: * @author Miroslav Popov
10: *
11: */
12: public class JaWEAction {
13:
14: private ActionBase action;
15: private String langDepName = null;
16: private ImageIcon icon = null;
17:
18: public JaWEAction() {
19: }
20:
21: public JaWEAction(ActionBase action) {
22: init(action, null, null);
23: }
24:
25: public JaWEAction(ActionBase action, ImageIcon icon) {
26: init(action, icon, null);
27: }
28:
29: public JaWEAction(ActionBase action, String langName) {
30: init(action, null, langName);
31: }
32:
33: public JaWEAction(ActionBase action, ImageIcon icon, String langName) {
34: init(action, icon, langName);
35: }
36:
37: private void init(ActionBase pAction, ImageIcon pIcon,
38: String pLangName) {
39: this .action = pAction;
40: this .icon = pIcon;
41: this .langDepName = pLangName;
42: }
43:
44: public ActionBase getAction() {
45: return action;
46: }
47:
48: public ImageIcon getIcon() {
49: return icon;
50: }
51:
52: public String getLangDepName() {
53: return langDepName;
54: }
55:
56: public void setAction(ActionBase action) {
57: this .action = action;
58: }
59:
60: public void setIcon(ImageIcon icon) {
61: this .icon = icon;
62: }
63:
64: public void setLangDepName(String langDepName) {
65: this.langDepName = langDepName;
66: }
67:
68: }
|