net.sourceforge.jstags.tags.effects
Class Grow

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.sourceforge.jstags.tags.JSTagsTagSupport
          extended by net.sourceforge.jstags.tags.effects.Effect
              extended by net.sourceforge.jstags.tags.effects.Grow
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Grow
extends Effect

It performs an element size change making it bigger This effect depends on the javascript library Mochikit

Since:
1.0
Author:
sschz@users.sourceforge.net
See Also:
Serialized Form

Field Summary
private  java.lang.String direction
           
private static long serialVersionUID
           
 
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
Grow()
           
 
Method Summary
 java.lang.String getDirection()
           
protected  net.sf.json.JSONObject getOptions()
          It selects those effect properties used to configure it and returns them together with their values (that excludes: shootersSelector, targetId, event)
protected  java.lang.String getTemplateName()
           
protected  java.util.Map<java.lang.String,java.lang.String> getTemplateNameValuePairs()
           
 void setDirection(java.lang.String direction)
           
 
Methods inherited from class net.sourceforge.jstags.tags.effects.Effect
getAfterFinish, getAfterUpdate, getBeforeFinish, getBeforeSetup, getBeforeStart, getBeforeUpdate, getDelay, getDuration, getEvent, getFps, getFrom, getQueue, getShootersSelector, getTargetId, getTo, getTransition, setAfterFinish, setAfterUpdate, setBeforeFinish, setBeforeSetup, setBeforeStart, setBeforeUpdate, setDelay, setDuration, setEvent, setFps, setFrom, setQueue, setShootersSelector, setTargetId, setTo, setTransition
 
Methods inherited from class net.sourceforge.jstags.tags.JSTagsTagSupport
doStartTag, getOutput
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

direction

private java.lang.String direction
Constructor Detail

Grow

public Grow()
Method Detail

getDirection

public java.lang.String getDirection()
Returns:
The direction in which the element will grow. Valid values are:
  • top-left
  • top-right
  • bottom-left
  • bottom-right
  • center

setDirection

public void setDirection(java.lang.String direction)
Parameters:
direction - The direction in which the element will grow. Valid values are:
  • top-left
  • top-right
  • bottom-left
  • bottom-right
  • center

getTemplateName

protected java.lang.String getTemplateName()
                                    throws javax.servlet.jsp.JspException
Specified by:
getTemplateName in class JSTagsTagSupport
Returns:
name of the .js template used to create the JavaScript code used by this tag
Throws:
javax.servlet.jsp.JspException

getTemplateNameValuePairs

protected java.util.Map<java.lang.String,java.lang.String> getTemplateNameValuePairs()
Overrides:
getTemplateNameValuePairs in class Effect
Returns:
Map of [name, value] pairs representing all the name-value pair used to create the JavaScript code. Such pairs will be used to replace data inside the .js template in order to get the code of a certain effect.

getOptions

protected net.sf.json.JSONObject getOptions()
Description copied from class: Effect
It selects those effect properties used to configure it and returns them together with their values (that excludes: shootersSelector, targetId, event)

Overrides:
getOptions in class Effect
Returns:
a JSONObject containing all the available properties for the effect and their values in the form {propertyName1: propertyValue1, propertyName2: propertyValue2, ...} pairs


Copyright © 2007. All Rights Reserved.