org.opensubsystems.patterns.listdata.www
Class ListDataBaseTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.opensubsystems.core.www.PageElementCacheTag
              extended by org.opensubsystems.patterns.listdata.www.ListDataBaseTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ListDataActionTag, ListDataFormContentTag

public abstract class ListDataBaseTag
extends org.opensubsystems.core.www.PageElementCacheTag

Custom tag to create and insert to the page all form variables required by the list data pattern. This tag needs to be in a HTML form which can be submitted to the server to an instance of ListBrowserServlet.

Version:
$Id: ListDataBaseTag.java,v 1.2 2007/03/24 08:34:08 bastafidli Exp $
Author:
Miro Halas
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Field Summary
protected  java.lang.String m_strOptions
          Name of the attribute in the request object, which identifies ListOptions object.
 
Fields inherited from class org.opensubsystems.core.www.PageElementCacheTag
CACHE_INDICATOR, CSS_ELEMENT, JS_ELEMENT, m_strCacheas, m_strId, PAGE_ELEMENTS_CACHE, SCRIPT_ELEMENT
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
ListDataBaseTag()
          Constructor for custom tag.
 
Method Summary
protected  java.lang.String getExtraConditionAttribute(DataCondition extracondition)
           
protected  DataCondition getExtraConditionObject(ListOptions listoptions)
          Get list option object for this tag.
protected  java.lang.String getExtraConditionOperation(DataCondition extracondition)
           
protected  java.lang.String getExtraConditionValue(DataCondition extracondition)
           
protected  java.lang.String getExtraConditionValueType(DataCondition extracondition)
           
 java.lang.String getOptions()
          Get the name of the attribute which identifies ListOptions object.
protected  ListOptions getOptionsObject()
          Get list option object for this tag.
 void setOptions(java.lang.String strName)
          Sets the name of the attribute which identifies ListOptions object.
 
Methods inherited from class org.opensubsystems.core.www.PageElementCacheTag
cache, doEndTag, doStartTag, getCacheas, getCachedContent, getCachedContent, getCachedContent, getCachedContentElements, getId, setCacheas, setId
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

m_strOptions

protected java.lang.String m_strOptions
Name of the attribute in the request object, which identifies ListOptions object. If none is specified, the default name used by ListBrowserServlet will be used.

Constructor Detail

ListDataBaseTag

public ListDataBaseTag()
Constructor for custom tag.

Method Detail

getOptions

public java.lang.String getOptions()
Get the name of the attribute which identifies ListOptions object. If none is specified, the default name used by ListBrowserServlet will be used.

Returns:
String - name of the attribute which identifies ListOptions object

setOptions

public void setOptions(java.lang.String strName)
Sets the name of the attribute which identifies ListOptions object.

Parameters:
strName - - name of the attribute which identifies ListOptions object

getOptionsObject

protected ListOptions getOptionsObject()
Get list option object for this tag.

Returns:
ListOptions - list option object to use in this tag.

getExtraConditionObject

protected DataCondition getExtraConditionObject(ListOptions listoptions)
Get list option object for this tag.

Parameters:
listoptions - - list options from which to retrieve the data condition
Returns:
DataCondition - extra condition object to use in this tag or null if there is none or multiple extra conditions

getExtraConditionAttribute

protected java.lang.String getExtraConditionAttribute(DataCondition extracondition)
Parameters:
extracondition - - extra condition applied to this list
Returns:
String

getExtraConditionOperation

protected java.lang.String getExtraConditionOperation(DataCondition extracondition)
Parameters:
extracondition - - extra condition applied to this list
Returns:
String

getExtraConditionValueType

protected java.lang.String getExtraConditionValueType(DataCondition extracondition)
Parameters:
extracondition - - extra condition applied to this list
Returns:
String

getExtraConditionValue

protected java.lang.String getExtraConditionValue(DataCondition extracondition)
Parameters:
extracondition - - extra condition applied to this list
Returns:
String


Copyright © 2003 - 2006 OpenSubsystems s.r.o.