KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > riotfamily > riot > editor > ui > EditorReference


1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1
3  * The contents of this file are subject to the Mozilla Public License Version
4  * 1.1 (the "License"); you may not use this file except in compliance with
5  * the License. You may obtain a copy of the License at
6  * http://www.mozilla.org/MPL/
7  *
8  * Software distributed under the License is distributed on an "AS IS" basis,
9  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10  * for the specific language governing rights and limitations under the
11  * License.
12  *
13  * The Original Code is Riot.
14  *
15  * The Initial Developer of the Original Code is
16  * Neteye GmbH.
17  * Portions created by the Initial Developer are Copyright (C) 2006
18  * the Initial Developer. All Rights Reserved.
19  *
20  * Contributor(s):
21  * Felix Gnass [fgnass at neteye dot de]
22  *
23  * ***** END LICENSE BLOCK ***** */

24 package org.riotfamily.riot.editor.ui;
25
26 /**
27  *
28  */

29 public class EditorReference {
30
31     private EditorReference parent;
32
33     private Object JavaDoc bean;
34     
35     private String JavaDoc objectId;
36     
37     private String JavaDoc label;
38     
39     private String JavaDoc description;
40
41     private String JavaDoc icon;
42     
43     private String JavaDoc editorUrl;
44
45     private String JavaDoc editorType;
46     
47     private String JavaDoc targetWindow;
48
49     private boolean enabled = true;
50
51     public EditorReference getParent() {
52         return parent;
53     }
54
55     public void setParent(EditorReference parent) {
56         this.parent = parent;
57     }
58
59     public EditorReference getRoot() {
60         return parent != null ? parent.getRoot() : this;
61     }
62
63     public boolean isEnabled() {
64         return this.enabled;
65     }
66
67     public void setEnabled(boolean enabled) {
68         this.enabled = enabled;
69     }
70
71     public Object JavaDoc getBean() {
72         return bean;
73     }
74
75     public void setBean(Object JavaDoc bean) {
76         this.bean = bean;
77     }
78
79     public String JavaDoc getEditorUrl() {
80         return editorUrl;
81     }
82
83     public void setEditorUrl(String JavaDoc editorUrl) {
84         this.editorUrl = editorUrl;
85     }
86
87     public String JavaDoc getTargetWindow() {
88         return targetWindow;
89     }
90
91     public void setTargetWindow(String JavaDoc targetWindow) {
92         this.targetWindow = targetWindow;
93     }
94
95     public String JavaDoc getEditorType() {
96         return editorType;
97     }
98
99     public void setEditorType(String JavaDoc editorType) {
100         this.editorType = editorType;
101     }
102     
103     public String JavaDoc getLabel() {
104         return label;
105     }
106
107     public void setLabel(String JavaDoc label) {
108         this.label = label;
109     }
110
111     public String JavaDoc getDescription() {
112         return this.description;
113     }
114
115     public void setDescription(String JavaDoc description) {
116         this.description = description;
117     }
118     
119     public String JavaDoc getIcon() {
120         return this.icon;
121     }
122
123     public void setIcon(String JavaDoc icon) {
124         this.icon = icon;
125     }
126
127     public String JavaDoc getObjectId() {
128         return objectId;
129     }
130
131     public void setObjectId(String JavaDoc objectId) {
132         this.objectId = objectId;
133     }
134     
135 }
136
Popular Tags