net.sf.springlayout.web.layout
Interface PanelFormGroup

All Known Implementing Classes:
LayoutPanelFormGroup

public interface PanelFormGroup

Holds multiple PanelForm objects for a multi-panel page.

Author:
Rob Monie

Method Summary
 java.util.Map getErrors(org.springframework.validation.Errors errors)
          Gets all errors for the panelForm group, returned as a map based on the field key
 java.util.Map getErrorsForPanelForm(org.springframework.validation.Errors errors, int panelFormIndex)
          Returns the errors for the panelForm by it's index
 PanelForm getPanelFormByLabel(java.lang.String panelFormName)
          Gets a panelFormForm from the panelFormFormGroup by name
 java.util.List getPanelForms()
           
 boolean hasErrors(org.springframework.validation.Errors errors)
          Checks all panelForms for errors
 void setPanelForms(java.util.List panelFormForms)
           
 void validate(javax.servlet.http.HttpServletRequest request, java.lang.Object obj, org.springframework.validation.Errors errors)
          Calls validate on all validation rules associated with the fieldDefinitions for all panelForms in this panelForm group.
 

Method Detail

getPanelForms

java.util.List getPanelForms()
Returns:
Returns the panelFormForms.

setPanelForms

void setPanelForms(java.util.List panelFormForms)
Parameters:
panelFormForms - The panelFormForms to set.

getPanelFormByLabel

PanelForm getPanelFormByLabel(java.lang.String panelFormName)
Gets a panelFormForm from the panelFormFormGroup by name

Parameters:
formName -
Returns:
a panelForm

validate

void validate(javax.servlet.http.HttpServletRequest request,
              java.lang.Object obj,
              org.springframework.validation.Errors errors)
Calls validate on all validation rules associated with the fieldDefinitions for all panelForms in this panelForm group.

Parameters:
request - the current HttpServletRequest
obj - the current command object to be validated
errors - the current errors for this request

hasErrors

boolean hasErrors(org.springframework.validation.Errors errors)
Checks all panelForms for errors

Parameters:
errors - the current page errors
Returns:
true if errors present for this panelForm group

getErrors

java.util.Map getErrors(org.springframework.validation.Errors errors)
Gets all errors for the panelForm group, returned as a map based on the field key

Parameters:
errors - the current page errorst
Returns:
map of all errors for the panelForm group

getErrorsForPanelForm

java.util.Map getErrorsForPanelForm(org.springframework.validation.Errors errors,
                                    int panelFormIndex)
Returns the errors for the panelForm by it's index

Parameters:
errors - the current page errors
panelFormIndex - the index of the panelForm to get errors for
Returns:
errors for the requested panelForm


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.