Class ModifyTemplateForm

  • All Implemented Interfaces:
    java.io.Serializable

    public class ModifyTemplateForm
    extends org.apache.struts.action.ActionForm
    Form bean used on the saved template form.
    Author:
    Thomas Riley
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String pageName  
      protected java.lang.String[] selected  
      protected java.lang.String templateButton  
      • Fields inherited from class org.apache.struts.action.ActionForm

        multipartRequestHandler, servlet
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPageName()  
      java.lang.String[] getSelected()
      Gets the selected templates
      java.lang.String getTemplateButton()  
      void initialise()
      Initialiser
      void reset​(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Reset the form to the initial state
      void setPageName​(java.lang.String pageName)  
      void setSelected​(java.lang.String[] selected)
      Sets the selected templates
      void setTemplateButton​(java.lang.String templateButton)  
      org.apache.struts.action.ActionErrors validate​(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      • Methods inherited from class org.apache.struts.action.ActionForm

        getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • selected

        protected java.lang.String[] selected
      • pageName

        protected java.lang.String pageName
      • templateButton

        protected java.lang.String templateButton
    • Constructor Detail

      • ModifyTemplateForm

        public ModifyTemplateForm()
        Constructor
    • Method Detail

      • initialise

        public void initialise()
        Initialiser
      • setSelected

        public void setSelected​(java.lang.String[] selected)
        Sets the selected templates
        Parameters:
        selected - the selected templates
      • getSelected

        public java.lang.String[] getSelected()
        Gets the selected templates
        Returns:
        the selected templates
      • getPageName

        public java.lang.String getPageName()
        Returns:
        the pageName
      • setPageName

        public void setPageName​(java.lang.String pageName)
        Parameters:
        pageName - the pageName to set
      • setTemplateButton

        public void setTemplateButton​(java.lang.String templateButton)
        Parameters:
        templateButton - the template button pressed
      • getTemplateButton

        public java.lang.String getTemplateButton()
        Returns:
        the template button
      • validate

        public org.apache.struts.action.ActionErrors validate​(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
        Overrides:
        validate in class org.apache.struts.action.ActionForm
      • reset

        public void reset​(org.apache.struts.action.ActionMapping mapping,
                          javax.servlet.http.HttpServletRequest request)
        Reset the form to the initial state
        Overrides:
        reset in class org.apache.struts.action.ActionForm
        Parameters:
        mapping - the mapping
        request - the request