1 24 package org.riotfamily.riot.editor; 25 26 import java.util.List ; 27 28 import org.riotfamily.common.i18n.MessageResolver; 29 import org.riotfamily.riot.editor.ui.EditorReference; 30 31 32 33 36 public interface EditorDefinition { 37 38 public String getId(); 39 40 public String getEditorType(); 41 42 public Class getBeanClass(); 43 44 public String getLabel(Object bean); 45 46 public void setParentEditorDefinition(EditorDefinition parent); 47 48 public EditorDefinition getParentEditorDefinition(); 49 50 57 public EditorReference createEditorPath( 58 String objectId, String parentId, MessageResolver messageResolver); 59 60 67 public EditorReference createEditorPath(Object bean, 68 MessageResolver messageResolver); 69 70 75 public EditorReference createReference(String parentId, 76 MessageResolver messageResolver); 77 78 79 public void addReference(List refs, EditorDefinition parentDef, 80 Object parent, MessageResolver messageResolver); 81 82 85 public String getEditorUrl(String objectId, String parentId); 86 87 93 public boolean isHidden(); 94 95 } 96 | Popular Tags |