net.sourceforge.ajaxtags.tags
Class AjaxToggleTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by net.sourceforge.ajaxtags.tags.BaseAjaxBodyTag
              extended by net.sourceforge.ajaxtags.tags.BaseAjaxTag
                  extended by net.sourceforge.ajaxtags.tags.AjaxToggleTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class AjaxToggleTag
extends BaseAjaxTag

Tag handler for the toggle (on/off, true/false) AJAX tag.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.ajaxtags.tags.BaseAjaxBodyTag
AJAX_VOID_URL, HEADER_FLAG, HEADER_FLAG_VALUE, JSCLASS_BASE
 
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
AjaxToggleTag()
           
 
Method Summary
 int doEndTag()
           
 String getContainerClass()
           
 String getDefaultRating()
           
protected  String getJsClass()
          Return JavaScript class for JavaScript class corresponding to this tag (e.g.
 String getMessageClass()
           
 String getOnOff()
           
protected  OptionsBuilder getOptions()
          Options for JavaScript generation.
 String getOverClass()
           
 String getRatings()
           
 String getSelectedClass()
           
 String getSelectedLessClass()
           
 String getSelectedOverClass()
           
 String getState()
           
 String getUpdateFunction()
           
 void releaseTag()
          Never call release() from releaseTag() -> ends in loop.
 void setContainerClass(String containerClass)
           
 void setDefaultRating(String defaultRating)
           
 void setMessageClass(String messageClass)
           
 void setOnOff(String onOff)
           
 void setOverClass(String overClass)
           
 void setRatings(String ratings)
           
 void setSelectedClass(String selectedClass)
           
 void setSelectedLessClass(String selectedLessClass)
           
 void setSelectedOverClass(String selectedOverClass)
           
 void setState(String state)
           
 void setUpdateFunction(String updateFunction)
           
 
Methods inherited from class net.sourceforge.ajaxtags.tags.BaseAjaxTag
initParameters
 
Methods inherited from class net.sourceforge.ajaxtags.tags.BaseAjaxBodyTag
buildScript, doStartTag, getAttachTo, getBaseUrl, getBody, getErrorFunction, getEventType, getHttpRequestHeader, getHttpServletRequest, getHttpServletResponse, getJSVariable, getOnclickAjax, getOptionsBuilder, getOptionsBuilder, getParameters, getParser, getPostFunction, getPreFunction, getSource, getSourceClass, getStyleClass, getTarget, getVar, isAjaxRequest, isHttpRequestHeader, out, release, setAttachTo, setBaseUrl, setErrorFunction, setEventType, setParameters, setParser, setPostFunction, setPreFunction, setSource, setSourceClass, setStyleClass, setTarget, setVar, skipBody
 
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
 

Constructor Detail

AjaxToggleTag

public AjaxToggleTag()
Method Detail

getUpdateFunction

public String getUpdateFunction()

setUpdateFunction

public void setUpdateFunction(String updateFunction)

getContainerClass

public String getContainerClass()

setContainerClass

public void setContainerClass(String containerClass)

getDefaultRating

public String getDefaultRating()

setDefaultRating

public void setDefaultRating(String defaultRating)

getMessageClass

public String getMessageClass()

setMessageClass

public void setMessageClass(String messageClass)

getOnOff

public String getOnOff()

setOnOff

public void setOnOff(String onOff)

getOverClass

public String getOverClass()

setOverClass

public void setOverClass(String overClass)

getRatings

public String getRatings()

setRatings

public void setRatings(String ratings)

getSelectedClass

public String getSelectedClass()

setSelectedClass

public void setSelectedClass(String selectedClass)

getSelectedLessClass

public String getSelectedLessClass()

setSelectedLessClass

public void setSelectedLessClass(String selectedLessClass)

getSelectedOverClass

public String getSelectedOverClass()

setSelectedOverClass

public void setSelectedOverClass(String selectedOverClass)

getState

public String getState()

setState

public void setState(String state)

getJsClass

protected String getJsClass()
Description copied from class: BaseAjaxBodyTag
Return JavaScript class for JavaScript class corresponding to this tag (e.g. "AjaxJspTag.Submit" for AjaxSubmitTag Java tag).

Overrides:
getJsClass in class BaseAjaxBodyTag
Returns:
String with JavaScript class suffix

getOptions

protected OptionsBuilder getOptions()
Description copied from class: BaseAjaxBodyTag
Options for JavaScript generation.

Overrides:
getOptions in class BaseAjaxBodyTag
Returns:
default options

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

releaseTag

public void releaseTag()
Description copied from class: BaseAjaxBodyTag
Never call release() from releaseTag() -> ends in loop.

Overrides:
releaseTag in class BaseAjaxBodyTag


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.