org.riotfamily.riot.editor
Class CustomEditorDefinition

java.lang.Object
  extended by org.riotfamily.riot.editor.AbstractEditorDefinition
      extended by org.riotfamily.riot.editor.AbstractObjectEditorDefinition
          extended by org.riotfamily.riot.editor.CustomEditorDefinition
All Implemented Interfaces:
EditorDefinition, ObjectEditorDefinition

public class CustomEditorDefinition
extends AbstractObjectEditorDefinition


Field Summary
protected static String TYPE_CUSTOM
           
 
Constructor Summary
CustomEditorDefinition()
           
 
Method Summary
 EditorReference createReference(String objectId, MessageResolver messageResolver)
          Creates a reference to an editor.
 String getEditorType()
           
 String getEditorUrl(String objectId, String parentId, String parentEditorId)
           
protected  String getEditorUrlWithinServlet(String objectId, String parentId, String parentEditorId)
           
 String getTargetUrl(String objectId, String parentId, String parentEditorId)
           
 void setHandler(String handler)
           
 void setTarget(String target)
           
 void setUrl(String url)
           
 
Methods inherited from class org.riotfamily.riot.editor.AbstractObjectEditorDefinition
addChildEditorDefinition, createEditorPath, createEditorPath, createPathComponent, getBeanClass, getChildEditorDefinitions, getChildEditorReferences, getEditorUrlWithinServlet, getLabel, getLabelProperty, loadBean, setBeanClass, setLabelProperty
 
Methods inherited from class org.riotfamily.riot.editor.AbstractEditorDefinition
addReference, equals, getDefaultName, getEditorRepository, getIcon, getId, getLabel, getMessageKey, getName, getParentEditorDefinition, hashCode, isHidden, setEditorRepository, setHidden, setIcon, setId, setName, setParentEditorDefinition, show
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.riotfamily.riot.editor.EditorDefinition
addReference, getId, getParentEditorDefinition, isHidden, setParentEditorDefinition, show
 

Field Detail

TYPE_CUSTOM

protected static final String TYPE_CUSTOM
See Also:
Constant Field Values
Constructor Detail

CustomEditorDefinition

public CustomEditorDefinition()
Method Detail

getEditorType

public String getEditorType()

setTarget

public void setTarget(String target)

setUrl

public void setUrl(String url)

setHandler

public void setHandler(String handler)

createReference

public EditorReference createReference(String objectId,
                                       MessageResolver messageResolver)
Description copied from interface: EditorDefinition
Creates a reference to an editor. The method is used by the EditorGroupController.

Specified by:
createReference in interface EditorDefinition
Overrides:
createReference in class AbstractObjectEditorDefinition

getTargetUrl

public String getTargetUrl(String objectId,
                           String parentId,
                           String parentEditorId)

getEditorUrl

public String getEditorUrl(String objectId,
                           String parentId,
                           String parentEditorId)
Specified by:
getEditorUrl in interface EditorDefinition
Overrides:
getEditorUrl in class AbstractObjectEditorDefinition

getEditorUrlWithinServlet

protected String getEditorUrlWithinServlet(String objectId,
                                           String parentId,
                                           String parentEditorId)
Specified by:
getEditorUrlWithinServlet in class AbstractObjectEditorDefinition