net.sf.springlayout.web.layout
Class LayoutPanelForm

java.lang.Object
  extended by net.sf.springlayout.web.layout.LayoutForm
      extended by net.sf.springlayout.web.layout.LayoutPanelForm
All Implemented Interfaces:
java.lang.Comparable, Form, PanelForm, org.springframework.beans.factory.InitializingBean

public class LayoutPanelForm
extends LayoutForm
implements PanelForm, java.lang.Comparable

Default implementation of a PanelForm

Author:
Rob Monie

Field Summary
 
Fields inherited from class net.sf.springlayout.web.layout.LayoutForm
controllerBeanName, fieldDefinitions, formAction, formName
 
Constructor Summary
LayoutPanelForm()
           
 
Method Summary
 int compareTo(java.lang.Object arg0)
          Compares panels by their index
 boolean equals(java.lang.Object obj)
          Over-ridden to depend soley on the panelName
 int getIndex()
          Gets the index of the panel to be used for ordering in the panel group list
 java.lang.String getPanelLabel()
          Retrieves the panelLabel for this LayoutPanelForm.
 java.lang.String getRedirectFormViewName()
          Retrieves the redirectFormViewName for this LayoutPanelForm.
 int hashCode()
          Over-ridden to conform to equals and depend soley on the panelName
 boolean isDisabled(javax.servlet.http.HttpServletRequest request)
          Check if panel is disabled.
 void setIndex(int index)
          Sets the index of the panel to be used for ordering in the panel group list
 void setPanelFormTabStateManager(PanelFormTabStateManager panelFormTabStateManager)
          Sets the panelTabStateManager for the LayoutPanelForm
 void setPanelLabel(java.lang.String panelLabel)
          Sets the panelLabel for this LayoutPanelForm.
 void setRedirectFormViewName(java.lang.String redirectFormViewName)
          Sets the redirectFormViewName for this LayoutPanelForm.
 
Methods inherited from class net.sf.springlayout.web.layout.LayoutForm
afterPropertiesSet, getControllerBeanName, getErrors, getFieldDefinition, getFieldDefinitions, getFormAction, getFormName, hasErrors, setControllerBeanName, setFieldDefinitions, setFormAction, setFormName, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.springlayout.web.layout.Form
getControllerBeanName, getErrors, getFieldDefinition, getFieldDefinitions, getFormAction, getFormName, hasErrors, setControllerBeanName, setFieldDefinitions, setFormAction, setFormName, validate
 

Constructor Detail

LayoutPanelForm

public LayoutPanelForm()
Method Detail

setIndex

public void setIndex(int index)
Description copied from interface: PanelForm
Sets the index of the panel to be used for ordering in the panel group list

Specified by:
setIndex in interface PanelForm

isDisabled

public boolean isDisabled(javax.servlet.http.HttpServletRequest request)
Description copied from interface: PanelForm
Check if panel is disabled. If no panelTabStateManager is set then return true

Specified by:
isDisabled in interface PanelForm
Parameters:
request - the current HttpServletRequest
Returns:
true/false boolean based on panel being enabled

getIndex

public int getIndex()
Description copied from interface: PanelForm
Gets the index of the panel to be used for ordering in the panel group list

Specified by:
getIndex in interface PanelForm
Returns:
the index of the panel

setPanelFormTabStateManager

public void setPanelFormTabStateManager(PanelFormTabStateManager panelFormTabStateManager)
Description copied from interface: PanelForm
Sets the panelTabStateManager for the LayoutPanelForm

Specified by:
setPanelFormTabStateManager in interface PanelForm

compareTo

public int compareTo(java.lang.Object arg0)
Compares panels by their index

Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(java.lang.Object obj)
Over-ridden to depend soley on the panelName

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Over-ridden to conform to equals and depend soley on the panelName

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getRedirectFormViewName

public java.lang.String getRedirectFormViewName()
Description copied from interface: PanelForm
Retrieves the redirectFormViewName for this LayoutPanelForm.

Specified by:
getRedirectFormViewName in interface PanelForm
Returns:
Returns the redirectFormViewName for this LayoutPanelForm.

setRedirectFormViewName

public void setRedirectFormViewName(java.lang.String redirectFormViewName)
Description copied from interface: PanelForm
Sets the redirectFormViewName for this LayoutPanelForm.

Specified by:
setRedirectFormViewName in interface PanelForm
Parameters:
redirectFormViewName - Sets the redirectFormViewName for this LayoutPanelForm.

getPanelLabel

public java.lang.String getPanelLabel()
Description copied from interface: PanelForm
Retrieves the panelLabel for this LayoutPanelForm.

Specified by:
getPanelLabel in interface PanelForm
Returns:
Returns the panelLabel for this LayoutPanelForm.

setPanelLabel

public void setPanelLabel(java.lang.String panelLabel)
Description copied from interface: PanelForm
Sets the panelLabel for this LayoutPanelForm.

Specified by:
setPanelLabel in interface PanelForm
Parameters:
panelLabel - Sets the panelLabel for this LayoutPanelForm.


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