org.outerj.daisy.frontend.editor
Class DefaultFieldEditor
java.lang.Object
org.outerj.daisy.frontend.editor.DefaultFieldEditor
- All Implemented Interfaces:
- FieldEditor
public class DefaultFieldEditor
- extends java.lang.Object
- implements FieldEditor
|
Constructor Summary |
DefaultFieldEditor(org.outerj.daisy.repository.schema.FieldType fieldType)
|
|
Method Summary |
org.outerj.daisy.repository.schema.FieldType |
getFieldType()
|
XMLizable |
getFormDefinitionFragment()
|
java.lang.String |
getTemplateName()
Get the name of the XSL template responsible for rendering this type of field. |
boolean |
hasValue(Widget parentWidget)
Returns true if this field has a value (used for field-requiredness validation). |
void |
init(Widget parentWidget,
DocumentEditorForm documentEditorForm)
|
void |
load(Form form,
org.outerj.daisy.repository.Field field,
org.outerj.daisy.repository.Document document,
org.outerj.daisy.repository.Repository repository)
|
void |
save(Form form,
org.outerj.daisy.repository.Document document,
org.outerj.daisy.repository.Repository repository)
|
void |
setValidationError(ValidationError error,
Widget widget)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFieldEditor
public DefaultFieldEditor(org.outerj.daisy.repository.schema.FieldType fieldType)
getFormDefinitionFragment
public XMLizable getFormDefinitionFragment()
- Specified by:
getFormDefinitionFragment in interface FieldEditor
getTemplateName
public java.lang.String getTemplateName()
- Description copied from interface:
FieldEditor
- Get the name of the XSL template responsible for rendering this type of field.
- Specified by:
getTemplateName in interface FieldEditor
getFieldType
public org.outerj.daisy.repository.schema.FieldType getFieldType()
- Specified by:
getFieldType in interface FieldEditor
hasValue
public boolean hasValue(Widget parentWidget)
- Description copied from interface:
FieldEditor
- Returns true if this field has a value (used for field-requiredness validation).
- Specified by:
hasValue in interface FieldEditor
setValidationError
public void setValidationError(ValidationError error,
Widget widget)
- Specified by:
setValidationError in interface FieldEditor
init
public void init(Widget parentWidget,
DocumentEditorForm documentEditorForm)
- Specified by:
init in interface FieldEditor
load
public void load(Form form,
org.outerj.daisy.repository.Field field,
org.outerj.daisy.repository.Document document,
org.outerj.daisy.repository.Repository repository)
throws java.lang.Exception
- Specified by:
load in interface FieldEditor
- Throws:
java.lang.Exception
save
public void save(Form form,
org.outerj.daisy.repository.Document document,
org.outerj.daisy.repository.Repository repository)
throws java.lang.Exception
- Specified by:
save in interface FieldEditor
- Throws:
java.lang.Exception
Copyright © -2006 . All Rights Reserved.