net.sf.springlayout.web.layout
Class LayoutPanelFormGroup

java.lang.Object
  extended by net.sf.springlayout.web.layout.LayoutPanelFormGroup
All Implemented Interfaces:
PanelFormGroup

public class LayoutPanelFormGroup
extends java.lang.Object
implements PanelFormGroup

Default implementation of a PanelFormGroup

Author:
Rob Monie

Constructor Summary
LayoutPanelFormGroup()
           
 
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 panelFormLabel)
          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 panelForms)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutPanelFormGroup

public LayoutPanelFormGroup()
Method Detail

getPanelForms

public java.util.List getPanelForms()
Specified by:
getPanelForms in interface PanelFormGroup
Returns:
Returns the panelFormForms.

setPanelForms

public void setPanelForms(java.util.List panelForms)
Specified by:
setPanelForms in interface PanelFormGroup
Parameters:
panelForms - The panelFormForms to set.

getPanelFormByLabel

public PanelForm getPanelFormByLabel(java.lang.String panelFormLabel)
Description copied from interface: PanelFormGroup
Gets a panelFormForm from the panelFormFormGroup by name

Specified by:
getPanelFormByLabel in interface PanelFormGroup
Returns:
a panelForm

validate

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

Specified by:
validate in interface PanelFormGroup
Parameters:
request - the current HttpServletRequest
obj - the current command object to be validated
errors - the current errors for this request

hasErrors

public boolean hasErrors(org.springframework.validation.Errors errors)
Description copied from interface: PanelFormGroup
Checks all panelForms for errors

Specified by:
hasErrors in interface PanelFormGroup
Parameters:
errors - the current page errors
Returns:
true if errors present for this panelForm group

getErrors

public java.util.Map getErrors(org.springframework.validation.Errors errors)
Description copied from interface: PanelFormGroup
Gets all errors for the panelForm group, returned as a map based on the field key

Specified by:
getErrors in interface PanelFormGroup
Parameters:
errors - the current page errorst
Returns:
map of all errors for the panelForm group

getErrorsForPanelForm

public java.util.Map getErrorsForPanelForm(org.springframework.validation.Errors errors,
                                           int panelFormIndex)
Description copied from interface: PanelFormGroup
Returns the errors for the panelForm by it's index

Specified by:
getErrorsForPanelForm in interface PanelFormGroup
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.