org.riotfamily.riot.editor
Class FormChooserDefinition
java.lang.Object
org.riotfamily.riot.editor.AbstractEditorDefinition
org.riotfamily.riot.editor.AbstractObjectEditorDefinition
org.riotfamily.riot.editor.FormDefinition
org.riotfamily.riot.editor.FormChooserDefinition
- All Implemented Interfaces:
- Cloneable, EditorDefinition, FormReference, ObjectEditorDefinition
public class FormChooserDefinition
- extends FormDefinition
| Methods inherited from class org.riotfamily.riot.editor.AbstractObjectEditorDefinition |
createEditorPath, createEditorPath, createPathComponent, createReference, getChildEditorDefinitions, getChildEditorReferences, getEditorUrlWithinServlet, getLabel, getLabelProperty, loadBean, setBeanClass, setLabelProperty |
| Methods inherited from class org.riotfamily.riot.editor.AbstractEditorDefinition |
addReference, equals, getEditorRepository, getIcon, getId, getLabel, getMessageKey, getName, getParentEditorDefinition, hashCode, isHidden, setEditorRepository, setHidden, setIcon, setName, show |
FormChooserDefinition
public FormChooserDefinition(EditorRepository editorRepository)
setDiscriminatorProperty
public void setDiscriminatorProperty(String discriminatorProperty)
addFormDefinition
public void addFormDefinition(FormDefinition formDef)
getFormId
public String getFormId()
- Specified by:
getFormId in interface FormReference- Overrides:
getFormId in class FormDefinition
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClass in interface EditorDefinition- Overrides:
getBeanClass in class FormDefinition
getDefaultName
protected String getDefaultName()
- Overrides:
getDefaultName in class FormDefinition
getFormDefinition
protected FormDefinition getFormDefinition(String objectId)
setParentEditorDefinition
public void setParentEditorDefinition(EditorDefinition editorDef)
- Specified by:
setParentEditorDefinition in interface EditorDefinition- Overrides:
setParentEditorDefinition in class AbstractEditorDefinition
addChildEditorDefinition
public void addChildEditorDefinition(EditorDefinition editorDef)
- Specified by:
addChildEditorDefinition in interface ObjectEditorDefinition- Overrides:
addChildEditorDefinition in class AbstractObjectEditorDefinition
getFormDefinitionByDiscriminator
protected FormDefinition getFormDefinitionByDiscriminator(Object bean)
getNearestFormDefintionByClass
protected FormDefinition getNearestFormDefintionByClass(Object bean)
getEditorUrl
public String getEditorUrl(String objectId,
String parentId,
String parentEditorId)
- Specified by:
getEditorUrl in interface EditorDefinition- Overrides:
getEditorUrl in class AbstractObjectEditorDefinition
createOptions
public Collection<FormOption> createOptions(String parentId,
MessageResolver messageResolver)