1 24 package org.riotfamily.riot.editor.ui; 25 26 29 public class EditorReference { 30 31 private EditorReference parent; 32 33 private Object bean; 34 35 private String objectId; 36 37 private String label; 38 39 private String description; 40 41 private String icon; 42 43 private String editorUrl; 44 45 private String editorType; 46 47 private String 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 getBean() { 72 return bean; 73 } 74 75 public void setBean(Object bean) { 76 this.bean = bean; 77 } 78 79 public String getEditorUrl() { 80 return editorUrl; 81 } 82 83 public void setEditorUrl(String editorUrl) { 84 this.editorUrl = editorUrl; 85 } 86 87 public String getTargetWindow() { 88 return targetWindow; 89 } 90 91 public void setTargetWindow(String targetWindow) { 92 this.targetWindow = targetWindow; 93 } 94 95 public String getEditorType() { 96 return editorType; 97 } 98 99 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 } 136 | Popular Tags |