com.ideo.sweetdevria.taglib.control
Class ControlTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.ideo.sweetdevria.taglib.AbstractTagDrawer
          extended by com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
              extended by com.ideo.sweetdevria.taglib.control.ControlTag
All Implemented Interfaces:
ActionInterface, ControlInterface, Hideable, IRiaTag, java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ControlTag
extends AbstractComponentTagSupport
implements IRiaTag, Hideable, ControlInterface, ActionInterface

See Also:
Serialized Form

Field Summary
protected  java.util.List actions
           
protected  java.util.List actionsElse
           
protected  java.lang.String allowChar
           
protected  java.lang.Boolean applyErrorClass
           
protected  java.lang.Boolean applyLabelErrorClass
           
protected  java.lang.Boolean canBeEmpty
           
protected  java.lang.String mask
           
protected  java.lang.String message
           
protected  java.lang.String messageType
           
protected  java.lang.String srcIds
           
protected  java.util.List tests
           
 
Fields inherited from class com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
bodyContent, rendered
 
Fields inherited from class com.ideo.sweetdevria.taglib.AbstractTagDrawer
builder, messageKeys, templateEnd, templateStart
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.ideo.sweetdevria.taglib.control.ControlInterface
ALPHA_CHAR, ALPHA_MASK, ALPHANUMBER_CHAR, ALPHANUMBER_MASK, EMAIL_CHAR, EMAIL_MASK, NOTNULL_MASK, NUMBER_CHAR, NUMBER_MASK
 
Fields inherited from interface com.ideo.sweetdevria.taglib.control.ActionInterface
DISABLE_ACTION, ENABLE_ACTION, HANDLER_ACTION, HIDE_ACTION, LOADDATA_ACTION, RESET_ACTION, SETVALUE_ACTION, SHOW_ACTION
 
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
ControlTag()
           
 
Method Summary
 void addAction(int type, java.lang.String targetIds, java.lang.String condition, java.lang.String param)
          Adds an action
 void addActionElse(int type, java.lang.String targetIds, java.lang.String condition, java.lang.String param)
          Adds an action
 void addClientTest(java.lang.String mask, java.util.List messages)
          Adds a client test corresponding to the specific mask.
 void addFunctionTest(java.lang.String functionTest, java.util.List messages)
          Adds a client side JavaScript function testing the value
 void addServerTest(java.lang.String testClass, java.util.List messages)
          Adds a server side test class
 java.util.List getActions()
           
 java.util.List getActionsElse()
           
 java.lang.String getAllowChar()
           
 java.lang.Boolean getApplyErrorClass()
           
 java.lang.Boolean getApplyLabelErrorClass()
           
 java.lang.String getBuilderId()
          Return the targeted builder id for this component as specified in the configuration file.
 java.lang.Boolean getCanBeEmpty()
           
 java.lang.String getMask()
           
 java.lang.String getMessage()
           
 java.lang.String getMessageType()
           
 java.lang.String getSrcIds()
           
 java.util.List getTests()
           
 void release()
          Release method which must call super.release !
 void setActions(java.util.List actions)
           
 void setActionsElse(java.util.List actionsElse)
           
 void setAllowChar(java.lang.String allowChar)
           
 void setApplyErrorClass(java.lang.Boolean applyErrorClass)
           
 void setApplyLabelErrorClass(java.lang.Boolean applyLabelErrorClass)
           
 void setCanBeEmpty(java.lang.Boolean canBeEmpty)
           
 void setMask(java.lang.String mask)
           
 void setMessage(java.lang.String message)
           
 void setMessageType(java.lang.String messageType)
           
 void setSrcIds(java.lang.String srcIds)
           
 void setTests(java.util.List tests)
           
 
Methods inherited from class com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
checkId, doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getId, isRendered, refractorContext, setBodyContent, setId, setRendered
 
Methods inherited from class com.ideo.sweetdevria.taglib.AbstractTagDrawer
generateHtmlContent, getBuilder, getMessageKeys, getPageContext, getTemplateEnd, getTemplateStart, setPageContext, setTemplateEnd, setTemplateStart
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ideo.sweetdevria.taglib.IRiaTag
doEndTag, doStartTag, getMessageKeys, getPageContext, getTemplateEnd, getTemplateStart, setPageContext, setTemplateEnd, setTemplateStart
 
Methods inherited from interface com.ideo.sweetdevria.taglib.Hideable
isRendered, setRendered
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

srcIds

protected java.lang.String srcIds

canBeEmpty

protected java.lang.Boolean canBeEmpty

tests

protected java.util.List tests

actions

protected java.util.List actions

actionsElse

protected java.util.List actionsElse

allowChar

protected java.lang.String allowChar

mask

protected java.lang.String mask

messageType

protected java.lang.String messageType

message

protected java.lang.String message

applyErrorClass

protected java.lang.Boolean applyErrorClass

applyLabelErrorClass

protected java.lang.Boolean applyLabelErrorClass
Constructor Detail

ControlTag

public ControlTag()
Method Detail

getBuilderId

public java.lang.String getBuilderId()
Description copied from interface: IRiaTag
Return the targeted builder id for this component as specified in the configuration file.

Specified by:
getBuilderId in interface IRiaTag
Specified by:
getBuilderId in class AbstractTagDrawer
Returns:
id targeted builder id
See Also:
IRiaTag.getBuilderId()

release

public void release()
Description copied from interface: IRiaTag
Release method which must call super.release !

Specified by:
release in interface IRiaTag
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class AbstractComponentTagSupport
See Also:
IRiaTag.release()

getSrcIds

public java.lang.String getSrcIds()

setSrcIds

public void setSrcIds(java.lang.String srcIds)

getAllowChar

public java.lang.String getAllowChar()

setAllowChar

public void setAllowChar(java.lang.String allowChar)

getMask

public java.lang.String getMask()

setMask

public void setMask(java.lang.String mask)

getMessageType

public java.lang.String getMessageType()

setMessageType

public void setMessageType(java.lang.String messageType)

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

getCanBeEmpty

public java.lang.Boolean getCanBeEmpty()

setCanBeEmpty

public void setCanBeEmpty(java.lang.Boolean canBeEmpty)

addClientTest

public void addClientTest(java.lang.String mask,
                          java.util.List messages)
Description copied from interface: ControlInterface
Adds a client test corresponding to the specific mask.

Specified by:
addClientTest in interface ControlInterface
Parameters:
mask - the mask to add for this test
messages - a list of messenger to notify

addServerTest

public void addServerTest(java.lang.String testClass,
                          java.util.List messages)
Description copied from interface: ControlInterface
Adds a server side test class

Specified by:
addServerTest in interface ControlInterface
Parameters:
testClass - the mask to add for this test
messages - a list of messenger to notify

getTests

public java.util.List getTests()

setTests

public void setTests(java.util.List tests)

addAction

public void addAction(int type,
                      java.lang.String targetIds,
                      java.lang.String condition,
                      java.lang.String param)
Description copied from interface: ActionInterface
Adds an action

Specified by:
addAction in interface ActionInterface
Parameters:
type - the type of the action
targetIds - the target id of the component this action acts on
condition - an optional condition having to be successfully validated before triggering this action
param - an optional parameter for this action

addActionElse

public void addActionElse(int type,
                          java.lang.String targetIds,
                          java.lang.String condition,
                          java.lang.String param)
Description copied from interface: ActionInterface
Adds an action

Specified by:
addActionElse in interface ActionInterface
Parameters:
type - the type of the action
targetIds - the target id of the component this action acts on
condition - an optional condition having to be successfully validated before triggering this action
param - an optional parameter for this action

getActions

public java.util.List getActions()

setActions

public void setActions(java.util.List actions)

getActionsElse

public java.util.List getActionsElse()

setActionsElse

public void setActionsElse(java.util.List actionsElse)

addFunctionTest

public void addFunctionTest(java.lang.String functionTest,
                            java.util.List messages)
Description copied from interface: ControlInterface
Adds a client side JavaScript function testing the value

Specified by:
addFunctionTest in interface ControlInterface
Parameters:
functionTest - the mask to add for this test
messages - a list of messenger to notify

getApplyErrorClass

public java.lang.Boolean getApplyErrorClass()

setApplyErrorClass

public void setApplyErrorClass(java.lang.Boolean applyErrorClass)

getApplyLabelErrorClass

public java.lang.Boolean getApplyLabelErrorClass()

setApplyLabelErrorClass

public void setApplyLabelErrorClass(java.lang.Boolean applyLabelErrorClass)


Copyright © 2010 Ideo Technologies. All Rights Reserved.