1 24 package org.riotfamily.riot.editor; 25 26 import org.riotfamily.riot.editor.ui.ViewController; 27 28 29 public class ViewDefinition extends AbstractObjectEditorDefinition 30 implements ViewReference { 31 32 protected static final String TYPE_VIEW = "view"; 33 34 private String template; 35 36 37 public ViewDefinition(EditorRepository editorRepository) { 38 setEditorRepository(editorRepository); 39 } 40 41 public String getEditorType() { 42 return TYPE_VIEW; 43 } 44 45 public String getTemplate() { 46 return this.template; 47 } 48 49 public void setTemplate(String template) { 50 this.template = template; 51 } 52 53 public String getEditorUrlWithinServlet(String objectId, String parentId) { 54 return ViewController.getUrl(getId(), objectId); 55 } 56 57 } 58 | Popular Tags |