net.thauvin.google.taglibs
Class SearchResultSupport

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bynet.thauvin.google.taglibs.StyleSupport
              extended bynet.thauvin.google.taglibs.SearchResultSupport
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
EndIndex, EstimatedTotal, Next, Previous, SearchComments, SearchQuery, SearchTime, SearchTips, StartIndex

public abstract class SearchResultSupport
extends StyleSupport

Implements methods used to retrieve Google Search Result properties.

Since:
1.0
Version:
$Revision: 1.1.1.1 $
Author:
Erik C. Thauvin
See Also:
Serialized Form

Field Summary
protected  GoogleSearchBean bean
          The Google search bean.
 
Fields inherited from class net.thauvin.google.taglibs.StyleSupport
css, style, target
 
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_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
SearchResultSupport()
           
 
Method Summary
 int doEndTag()
          doEndTag method.
 int doStartTag()
          doStartTag method.
protected abstract  java.lang.String getPropertyName()
          Returns the result of the build action and must be implemented by classes which extend SearchResultSupport.
protected  java.lang.String getResultProperty()
          Returns the value of specified search result property.
protected abstract  java.lang.String getTagName()
          Returns the name of the tag extending SearchResultSupport.
 void release()
          Release method.
protected  void reset()
          Reset the values.
 
Methods inherited from class net.thauvin.google.taglibs.StyleSupport
setCss, setStyle, setTarget
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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

bean

protected GoogleSearchBean bean
The Google search bean.

Constructor Detail

SearchResultSupport

public SearchResultSupport()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
doEndTag method.

Returns:
EVAL_PAGE
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
doStartTag method.

Returns:
EVAL_BODY_TAG or SKIP_BODY.
Throws:
javax.servlet.jsp.JspException

release

public void release()
Release method.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class StyleSupport

getPropertyName

protected abstract java.lang.String getPropertyName()
Returns the result of the build action and must be implemented by classes which extend SearchResultSupport.

For example:

return "Some Value";

Returns:
The property name.

getResultProperty

protected java.lang.String getResultProperty()
Returns the value of specified search result property.

Returns:
The property value.

getTagName

protected abstract java.lang.String getTagName()
Returns the name of the tag extending SearchResultSupport.

For example:

void getErrorString() { return "MyTag"; }

Returns:
The tag name.

reset

protected void reset()
Reset the values.

Overrides:
reset in class StyleSupport