|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormBuilderService
| Method Summary | |
|---|---|
EntityForm |
buildAdornedListForm(AdornedTargetCollectionMetadata adornedMd,
AdornedTargetList adornedList,
String parentId)
Builds the EntityForm used in modal dialogs when adding items to adorned target collections. |
ListGrid |
buildCollectionListGrid(String containingEntityId,
Entity[] entities,
Property field,
String sectionKey)
Builds a list grid that is used to render a collection inline in an entity form. |
EntityForm |
buildEntityForm(ClassMetadata cmd)
Builds an EntityForm that has all of the appropriate fields set up without any values. |
EntityForm |
buildEntityForm(ClassMetadata cmd,
Entity entity)
Builds an EntityForm that has all of the appropriate fields set up along with the values for those fields from the given Entity. |
EntityForm |
buildEntityForm(ClassMetadata cmd,
Entity entity,
Map<String,Entity[]> collectionRecords)
Builds an EntityForm that has all of the appropriate fields set up along with the values for thsoe fields from the given Entity as well as all sub-collections of the given Entity that appear in the collectionRecords map. |
ListGrid |
buildMainListGrid(Entity[] entities,
ClassMetadata cmd,
String sectionKey)
Builds a list grid that is typically used at the top entity level to select an entity for modification. |
EntityForm |
buildMapForm(MapMetadata mapMd,
MapStructure mapStructure,
ClassMetadata cmd,
String parentId)
Builds the EntityForm used in modal dialogs when adding items to map collections. |
void |
copyEntityFormValues(EntityForm destinationForm,
EntityForm sourceForm)
Copies all values for fields from the destinationForm into the sourceForm. |
void |
populateAdornedEntityFormFields(EntityForm ef,
Entity entity,
AdornedTargetList adornedList)
Sets values for the necessary adorned fields on the EntityForm from the specified entity. |
void |
populateEntityFormFields(EntityForm ef,
Entity entity)
Sets values for all fields found on the EntityForm from the specified entity. |
void |
populateMapEntityFormFields(EntityForm ef,
Entity entity)
Sets values for the necessary map fields on the EntityForm from the specified entity. |
void |
removeNonApplicableFields(ClassMetadata cmd,
EntityForm entityForm,
String entityType)
Loops through all of the fields that are specified in given class metadata and removes fields that are not applicable for the given polymorphic entity type from the entity form. |
| Method Detail |
|---|
ListGrid buildMainListGrid(Entity[] entities,
ClassMetadata cmd,
String sectionKey)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
entities - cmd - sectionKey -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
ListGrid buildCollectionListGrid(String containingEntityId,
Entity[] entities,
Property field,
String sectionKey)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
containingEntityId - entities - field - sectionKey -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
void removeNonApplicableFields(ClassMetadata cmd,
EntityForm entityForm,
String entityType)
cmd - entityForm - entityType - EntityForm buildEntityForm(ClassMetadata cmd)
cmd -
EntityForm buildEntityForm(ClassMetadata cmd,
Entity entity)
cmd - entity -
EntityForm buildEntityForm(ClassMetadata cmd,
Entity entity,
Map<String,Entity[]> collectionRecords)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
cmd - entity - collectionRecords -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
void populateEntityFormFields(EntityForm ef,
Entity entity)
ef - entity -
void populateAdornedEntityFormFields(EntityForm ef,
Entity entity,
AdornedTargetList adornedList)
ef - entity - adornedList -
void populateMapEntityFormFields(EntityForm ef,
Entity entity)
ef - entity -
void copyEntityFormValues(EntityForm destinationForm,
EntityForm sourceForm)
destinationForm - sourceForm -
EntityForm buildAdornedListForm(AdornedTargetCollectionMetadata adornedMd,
AdornedTargetList adornedList,
String parentId)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
adornedMd - adornedList - parentId -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
EntityForm buildMapForm(MapMetadata mapMd,
MapStructure mapStructure,
ClassMetadata cmd,
String parentId)
throws ServiceException,
com.gwtincubator.security.exception.ApplicationSecurityException
mapMd - mapStructure - cmd - parentId -
ServiceException
com.gwtincubator.security.exception.ApplicationSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||