org.springframework.binding.form
Interface HierarchicalFormModel

All Superinterfaces:
FormModel, PropertyChangePublisher
All Known Subinterfaces:
ValidatingFormModel
All Known Implementing Classes:
AbstractFormModel, DefaultFormModel

public interface HierarchicalFormModel
extends FormModel

Sub-interface implemented by form models that can be part of a form model hierarchy.

In a HierarchicalFormModel:

Author:
Oliver Hutchison

Field Summary
 
Fields inherited from interface org.springframework.binding.form.FormModel
COMMITTABLE_PROPERTY, DIRTY_PROPERTY, ENABLED_PROPERTY, READONLY_PROPERTY
 
Method Summary
 void addChild(HierarchicalFormModel child)
          Adds a new child to the form model.
 FormModel[] getChildren()
          Returns an array of child form models.
 HierarchicalFormModel getParent()
          Returns the parent form model or null of there is none.
 void removeChild(HierarchicalFormModel child)
          Removes a child from this form model.
 void removeParent()
          Remove the parent form model
 void setParent(HierarchicalFormModel parent)
          Sets the parent form model.
 
Methods inherited from interface org.springframework.binding.form.FormModel
addCommitListener, commit, getFieldFace, getFieldMetadata, getFieldNames, getFormObject, getFormObjectHolder, getId, getValueModel, getValueModel, hasValueModel, isBuffered, isCommittable, isDirty, isEnabled, isReadOnly, registerPropertyConverter, removeCommitListener, reset, revert, setFormObject
 
Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Method Detail

getParent

HierarchicalFormModel getParent()
Returns the parent form model or null of there is none.


getChildren

FormModel[] getChildren()
Returns an array of child form models.


setParent

void setParent(HierarchicalFormModel parent)
Sets the parent form model.


removeParent

void removeParent()
Remove the parent form model


addChild

void addChild(HierarchicalFormModel child)
Adds a new child to the form model. The child form model will have it's parent set to this.


removeChild

void removeChild(HierarchicalFormModel child)
Removes a child from this form model.



Copyright © 2004-2008 The Spring Framework. All Rights Reserved.