org.riotfamily.riot.editor
Class AbstractEditorDefinition

java.lang.Object
  extended by org.riotfamily.riot.editor.AbstractEditorDefinition
All Implemented Interfaces:
EditorDefinition
Direct Known Subclasses:
AbstractObjectEditorDefinition, ListDefinition

public abstract class AbstractEditorDefinition
extends Object
implements EditorDefinition

Abstract base class for EditorDefinitions.

Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
AbstractEditorDefinition()
           
 
Method Summary
 void addReference(List<EditorReference> refs, EditorDefinition parentDef, Object parent, MessageResolver messageResolver)
           
 boolean equals(Object obj)
           
 Class<?> getBeanClass()
           
protected  String getDefaultName()
           
protected  EditorRepository getEditorRepository()
           
 String getIcon()
           
 String getId()
           
 String getLabel(Object object, MessageResolver messageResolver)
           
protected  String getLabel(Object object, String labelProperty)
           
protected  StringBuffer getMessageKey()
           
 String getName()
           
 EditorDefinition getParentEditorDefinition()
           
 int hashCode()
           
 boolean isHidden()
          Editors that are only used in choosers may return true in order to be excluded from group views.
 void setEditorRepository(EditorRepository editorRepository)
           
 void setHidden(boolean hidden)
           
 void setIcon(String icon)
           
 void setId(String id)
           
 void setName(String name)
           
 void setParentEditorDefinition(EditorDefinition parentEditorDefinition)
           
 boolean show(Object parent)
           
 
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
createEditorPath, createEditorPath, createReference, getEditorType, getEditorUrl
 

Constructor Detail

AbstractEditorDefinition

public AbstractEditorDefinition()
Method Detail

setEditorRepository

public void setEditorRepository(EditorRepository editorRepository)

getId

public String getId()
Specified by:
getId in interface EditorDefinition

setId

public void setId(String id)

setName

public final void setName(String name)

getName

public final String getName()

getDefaultName

protected String getDefaultName()

getBeanClass

public Class<?> getBeanClass()
Specified by:
getBeanClass in interface EditorDefinition

getParentEditorDefinition

public EditorDefinition getParentEditorDefinition()
Specified by:
getParentEditorDefinition in interface EditorDefinition

setParentEditorDefinition

public void setParentEditorDefinition(EditorDefinition parentEditorDefinition)
Specified by:
setParentEditorDefinition in interface EditorDefinition

addReference

public void addReference(List<EditorReference> refs,
                         EditorDefinition parentDef,
                         Object parent,
                         MessageResolver messageResolver)
Specified by:
addReference in interface EditorDefinition

show

public boolean show(Object parent)
Specified by:
show in interface EditorDefinition

getEditorRepository

protected EditorRepository getEditorRepository()

getIcon

public String getIcon()

setIcon

public void setIcon(String icon)

isHidden

public boolean isHidden()
Description copied from interface: EditorDefinition
Editors that are only used in choosers may return true in order to be excluded from group views.

Specified by:
isHidden in interface EditorDefinition
See Also:
EditorGroupController

setHidden

public void setHidden(boolean hidden)

getMessageKey

protected StringBuffer getMessageKey()

getLabel

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

getLabel

protected String getLabel(Object object,
                          String labelProperty)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object