001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: * The contents of this file are subject to the Mozilla Public License Version
004: * 1.1 (the "License"); you may not use this file except in compliance with
005: * the License. You may obtain a copy of the License at
006: * http://www.mozilla.org/MPL/
007: *
008: * Software distributed under the License is distributed on an "AS IS" basis,
009: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
010: * for the specific language governing rights and limitations under the
011: * License.
012: *
013: * The Original Code is Riot.
014: *
015: * The Initial Developer of the Original Code is
016: * Neteye GmbH.
017: * Portions created by the Initial Developer are Copyright (C) 2006
018: * the Initial Developer. All Rights Reserved.
019: *
020: * Contributor(s):
021: * Felix Gnass [fgnass at neteye dot de]
022: *
023: * ***** END LICENSE BLOCK ***** */
024: package org.riotfamily.riot.editor.ui;
025:
026: /**
027: *
028: */
029: public class EditorReference {
030:
031: private EditorReference parent;
032:
033: private Object bean;
034:
035: private String objectId;
036:
037: private String label;
038:
039: private String description;
040:
041: private String icon;
042:
043: private String editorUrl;
044:
045: private String editorType;
046:
047: private String targetWindow;
048:
049: private boolean enabled = true;
050:
051: public EditorReference getParent() {
052: return parent;
053: }
054:
055: public void setParent(EditorReference parent) {
056: this .parent = parent;
057: }
058:
059: public EditorReference getRoot() {
060: return parent != null ? parent.getRoot() : this ;
061: }
062:
063: public boolean isEnabled() {
064: return this .enabled;
065: }
066:
067: public void setEnabled(boolean enabled) {
068: this .enabled = enabled;
069: }
070:
071: public Object getBean() {
072: return bean;
073: }
074:
075: public void setBean(Object bean) {
076: this .bean = bean;
077: }
078:
079: public String getEditorUrl() {
080: return editorUrl;
081: }
082:
083: public void setEditorUrl(String editorUrl) {
084: this .editorUrl = editorUrl;
085: }
086:
087: public String getTargetWindow() {
088: return targetWindow;
089: }
090:
091: public void setTargetWindow(String targetWindow) {
092: this .targetWindow = targetWindow;
093: }
094:
095: public String getEditorType() {
096: return editorType;
097: }
098:
099: public void setEditorType(String editorType) {
100: this .editorType = editorType;
101: }
102:
103: public String getLabel() {
104: return label;
105: }
106:
107: public void setLabel(String label) {
108: this .label = label;
109: }
110:
111: public String getDescription() {
112: return this .description;
113: }
114:
115: public void setDescription(String description) {
116: this .description = description;
117: }
118:
119: public String getIcon() {
120: return this .icon;
121: }
122:
123: public void setIcon(String icon) {
124: this .icon = icon;
125: }
126:
127: public String getObjectId() {
128: return objectId;
129: }
130:
131: public void setObjectId(String objectId) {
132: this.objectId = objectId;
133: }
134:
135: }
|