org.riotfamily.riot.editor
Class TreeDefinition

java.lang.Object
  extended by org.riotfamily.riot.editor.AbstractEditorDefinition
      extended by org.riotfamily.riot.editor.ListDefinition
          extended by org.riotfamily.riot.editor.TreeDefinition
All Implemented Interfaces:
EditorDefinition

public class TreeDefinition
extends ListDefinition


Field Summary
protected static String TYPE_TREE
           
 
Fields inherited from class org.riotfamily.riot.editor.ListDefinition
TYPE_LIST
 
Constructor Summary
TreeDefinition(EditorRepository editorRepository)
           
 
Method Summary
 EditorReference createEditorPath(Object bean, MessageResolver messageResolver)
          Returns a PathComponent for the given bean that represents the complete path to the editor.
 EditorReference createEditorPath(String objectId, String parentId, String parentEditorId, MessageResolver messageResolver)
          Returns a PathComponent for the given objectId and parentId that represents the complete path to the editor.
 boolean isNode(Object bean)
           
 
Methods inherited from class org.riotfamily.riot.editor.ListDefinition
createReference, createReference, getBeanClass, getDao, getDefaultName, getDisplayDefinition, getEditorType, getEditorUrl, getLabel, getListConfig, getListId, setDisplayDefinition, setListId
 
Methods inherited from class org.riotfamily.riot.editor.AbstractEditorDefinition
addReference, equals, 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
 

Field Detail

TYPE_TREE

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

TreeDefinition

public TreeDefinition(EditorRepository editorRepository)
Method Detail

isNode

public boolean isNode(Object bean)

createEditorPath

public EditorReference createEditorPath(String objectId,
                                        String parentId,
                                        String parentEditorId,
                                        MessageResolver messageResolver)
Description copied from interface: EditorDefinition
Returns a PathComponent for the given objectId and parentId that represents the complete path to the editor. This method is invoked by the PathController for the current (active) editor in order to build a breadcrumb navigation.

Specified by:
createEditorPath in interface EditorDefinition
Overrides:
createEditorPath in class ListDefinition

createEditorPath

public EditorReference createEditorPath(Object bean,
                                        MessageResolver messageResolver)
Description copied from interface: EditorDefinition
Returns a PathComponent for the given bean that represents the complete path to the editor. This method is usually invoked by descendant editors to create a complete path recursively.

Specified by:
createEditorPath in interface EditorDefinition
Overrides:
createEditorPath in class ListDefinition