com.ideo.sweetdevria.taglib.control
Class ControlTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.ideo.sweetdevria.taglib.AbstractTagDrawer
com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
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
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 |
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 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 javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
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
ControlTag
public ControlTag()
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 testmessages
- 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 testmessages
- 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 actiontargetIds
- the target id of the component this action acts oncondition
- an optional condition having to be successfully validated before triggering this actionparam
- 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 actiontargetIds
- the target id of the component this action acts oncondition
- an optional condition having to be successfully validated before triggering this actionparam
- 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 testmessages
- 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.