org.riotfamily.riot.editor
Class GroupDefinition

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

public class GroupDefinition
extends AbstractObjectEditorDefinition


Field Summary
protected static String TYPE_GROUP
           
 
Constructor Summary
GroupDefinition(EditorRepository editorRepository)
           
 
Method Summary
 EditorReference createReference(String objectId, MessageResolver messageResolver)
          Creates a reference to an editor.
 String getEditorType()
           
protected  String getEditorUrlWithinServlet(String objectId, String parentId, String parentEditorId)
           
 String getLabel(Object object, MessageResolver messageResolver)
           
 String getLabel(String objectId, MessageResolver messageResolver)
           
 
Methods inherited from class org.riotfamily.riot.editor.AbstractObjectEditorDefinition
addChildEditorDefinition, createEditorPath, createEditorPath, createPathComponent, getBeanClass, getChildEditorDefinitions, getChildEditorReferences, getEditorUrl, getEditorUrlWithinServlet, 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_GROUP

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

GroupDefinition

public GroupDefinition(EditorRepository editorRepository)
Method Detail

getLabel

public String getLabel(String objectId,
                       MessageResolver messageResolver)

getLabel

public String getLabel(Object object,
                       MessageResolver messageResolver)
Specified by:
getLabel in interface EditorDefinition
Overrides:
getLabel in class AbstractObjectEditorDefinition

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

getEditorUrlWithinServlet

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

getEditorType

public String getEditorType()