it.eng.spagobi.commons.presentation.tags
Class CheckListTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by it.eng.spagobi.commons.presentation.tags.CheckListTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class CheckListTag
extends javax.servlet.jsp.tagext.TagSupport

Author:
Andrea Gioia
See Also:
Serialized Form

Field Summary
protected  java.lang.String _actionName
           
protected  java.util.Vector _columns
           
protected  it.eng.spago.base.SourceBean _content
           
protected  java.lang.String _filter
           
protected  java.lang.StringBuffer _htmlStream
           
protected  it.eng.spago.base.SourceBean _layout
           
protected  java.lang.String _moduleName
           
protected  java.util.HashMap _paramsMap
           
protected  java.lang.String _providerURL
           
protected  it.eng.spago.base.RequestContainer _requestContainer
           
protected  it.eng.spago.base.ResponseContainer _responseContainer
           
protected  java.lang.String _serviceName
           
protected  it.eng.spago.base.SourceBean _serviceRequest
           
protected  it.eng.spago.base.SourceBean _serviceResponse
           
protected  java.lang.String labelLinkSaltoPagina
           
protected  javax.portlet.RenderRequest renderRequest
           
protected  javax.portlet.RenderResponse renderResponse
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CheckListTag()
          Consructor.
 
Method Summary
protected  javax.portlet.PortletURL createUrl(java.util.HashMap paramsMap)
          From the parameter HashMap at input, creates the reference navigation url.
 int doEndTag()
          Do end tag.
 int doStartTag()
          Do start tag.
protected  java.util.HashMap getParametersMap(java.util.List parameters, it.eng.spago.base.SourceBean row)
          Gets all parameter information from a module, putting them into a HashMap.
protected  java.lang.StringBuffer makeButton(java.util.List buttons)
          Starting from the module buttonsSB object, creates all buttons for the jsp list.
protected  void makeColumns()
          Builds Table list columns, reading all request information.
protected  void makeForm()
          Creates a form into the jsp page.
protected  void makeNavigationButton()
          Builds list navigation buttons inside the list tag.
protected  void makeRows()
          Builds Table list rows, reading all query information.
 void setActionName(java.lang.String actionName)
          Traces the setting of an action name.
 void setFilter(java.lang.String filter)
          Sets the filter.
 void setModuleName(java.lang.String moduleName)
          Traces the setting of a module name.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_actionName

protected java.lang.String _actionName

_moduleName

protected java.lang.String _moduleName

_serviceName

protected java.lang.String _serviceName

_content

protected it.eng.spago.base.SourceBean _content

_layout

protected it.eng.spago.base.SourceBean _layout

_providerURL

protected java.lang.String _providerURL

_requestContainer

protected it.eng.spago.base.RequestContainer _requestContainer

_serviceRequest

protected it.eng.spago.base.SourceBean _serviceRequest

_responseContainer

protected it.eng.spago.base.ResponseContainer _responseContainer

_serviceResponse

protected it.eng.spago.base.SourceBean _serviceResponse

_htmlStream

protected java.lang.StringBuffer _htmlStream

_columns

protected java.util.Vector _columns

labelLinkSaltoPagina

protected java.lang.String labelLinkSaltoPagina

_filter

protected java.lang.String _filter

_paramsMap

protected java.util.HashMap _paramsMap

renderResponse

protected javax.portlet.RenderResponse renderResponse

renderRequest

protected javax.portlet.RenderRequest renderRequest
Constructor Detail

CheckListTag

public CheckListTag()
Consructor.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Do start tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
the int
Throws:
javax.servlet.jsp.JspException - the jsp exception
See Also:
doStartTag()

makeForm

protected void makeForm()
                 throws javax.servlet.jsp.JspException
Creates a form into the jsp page.

Throws:
javax.servlet.jsp.JspException - If any exception occurs.

makeColumns

protected void makeColumns()
                    throws javax.servlet.jsp.JspException
Builds Table list columns, reading all request information.

Throws:
javax.servlet.jsp.JspException - If any Exception occurs.

makeRows

protected void makeRows()
                 throws javax.servlet.jsp.JspException
Builds Table list rows, reading all query information.

Throws:
javax.servlet.jsp.JspException - If any Exception occurs.

makeNavigationButton

protected void makeNavigationButton()
                             throws javax.servlet.jsp.JspException
Builds list navigation buttons inside the list tag. If the number of elements is higher than 10, they are divided into pages; this methods creates forward and backward arrows and page number information for navigation.

Throws:
javax.servlet.jsp.JspException - If any Exception occurs

makeButton

protected java.lang.StringBuffer makeButton(java.util.List buttons)
                                     throws javax.servlet.jsp.JspException
Starting from the module buttonsSB object, creates all buttons for the jsp list.

Parameters:
buttons - The list of the buttons
Throws:
javax.servlet.jsp.JspException - If any exception occurs.

getParametersMap

protected java.util.HashMap getParametersMap(java.util.List parameters,
                                             it.eng.spago.base.SourceBean row)
                                      throws javax.servlet.jsp.JspException
Gets all parameter information from a module, putting them into a HashMap.

Parameters:
parameters - The parameters list
row - The value objects Source Bean
Returns:
The parameters Hash Map
Throws:
javax.servlet.jsp.JspException - If any Exception occurred

createUrl

protected javax.portlet.PortletURL createUrl(java.util.HashMap paramsMap)
From the parameter HashMap at input, creates the reference navigation url.

Parameters:
paramsMap - The parameter HashMap
Returns:
A portletURL object representing the navigation URL

setActionName

public void setActionName(java.lang.String actionName)
Traces the setting of an action name.

Parameters:
actionName - The action name string at input.

setModuleName

public void setModuleName(java.lang.String moduleName)
Traces the setting of a module name.

Parameters:
moduleName - The module name string at input.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Do end tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
the int
Throws:
javax.servlet.jsp.JspException - the jsp exception
See Also:
Tag.doEndTag()

setFilter

public void setFilter(java.lang.String filter)
Sets the filter.

Parameters:
filter - the new filter