Class CustomEventAttribute
java.lang.Object
com.webfirmframework.wffweb.tag.core.AbstractTagBase
com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
com.webfirmframework.wffweb.tag.html.attribute.event.AbstractEventAttribute
com.webfirmframework.wffweb.tag.html.attribute.event.CustomEventAttribute
- All Implemented Interfaces:
TagBase
,EventAttribute
,Serializable
,Cloneable
- See Also:
-
Constructor Summary
ConstructorDescriptionCustomEventAttribute
(String attributeName, boolean preventDefault, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody) CustomEventAttribute
(String attributeName, boolean preventDefault, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody, Object serverSideData) CustomEventAttribute
(String attributeName, ServerAsyncMethod serverAsyncMethod) CustomEventAttribute
(String attributeName, ServerAsyncMethod serverAsyncMethod, Object serverSideData) CustomEventAttribute
(String attributeName, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody) CustomEventAttribute
(String attributeName, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody, Object serverSideData) -
Method Summary
Modifier and TypeMethodDescriptionboolean
This is applicable for some special attributes like OnSubmit.void
setPreventDefault
(boolean preventDefault) true to call event.preventDefault(); on event.Methods inherited from class com.webfirmframework.wffweb.tag.html.attribute.event.AbstractEventAttribute
getJsFilterFunctionBody, getJsPostFunctionBody, getJsPreFunctionBody, getServerAsyncMethod, getServerSideData, getValue, init, setAttributeName, setJsFilterFunctionBody, setJsPostFunctionBody, setJsPreFunctionBody, setPreIndexedAttribute, setServerAsyncMethod, setServerAsyncMethod, setServerAsyncMethod, setServerAsyncMethod, setServerSideData, setValue
Methods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
addAllToAttributeValueMap, addAllToAttributeValueSet, addAllToAttributeValueSet, addToAttributeValueMap, addToAttributeValueSet, addValueChangeListener, beforePrintStructure, beforePrintStructureCompressedByIndex, beforeWffPrintStructure, getAttributeName, getAttributeValue, getAttributeValueMap, getAttributeValueSet, getBinaryStructureCompressedByIndex, getBinaryStructureCompressedByIndex, getCharset, getOwnerTag, getOwnerTags, getPrintStructure, getPrintStructure, getReadLocks, getValueChangeListeners, getWffPrintStructure, getWriteLocks, lockAndGetReadLocks, lockAndGetReadLocksWithAttrLock, lockAndGetWriteLocks, lockAndGetWriteLocksWithAttrLock, removeAllFromAttributeValueMap, removeAllFromAttributeValueSet, removeAllFromAttributeValueSet, removeFromAttributeValueMap, removeFromAttributeValueMap, removeFromAttributeValueMapByKeys, removeFromAttributeValueSet, removeValueChangeListener, replaceAllInAttributeValueSet, replaceAllInAttributeValueSet, setAttributeValue, setAttributeValue, setAttributeValueMap, setAttributeValueSet, setCharset, setModified, setModifiedLockless, setOwnerTag, toCompressedBytesByIndex, toCompressedBytesByIndex, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString, toWffString, unsetOwnerTag
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractTagBase
equals, getData, hashCode, isModified, isRebuild, setData, setRebuild
-
Constructor Details
-
CustomEventAttribute
-
CustomEventAttribute
public CustomEventAttribute(String attributeName, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody) -
CustomEventAttribute
public CustomEventAttribute(String attributeName, ServerAsyncMethod serverAsyncMethod, Object serverSideData) - Parameters:
attributeName
-serverAsyncMethod
-serverSideData
-- Since:
- 3.0.2
-
CustomEventAttribute
public CustomEventAttribute(String attributeName, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody, Object serverSideData) - Parameters:
attributeName
-jsPreFunctionBody
-serverAsyncMethod
-jsFilterFunctionBody
-jsPostFunctionBody
-serverSideData
-- Since:
- 3.0.2
-
CustomEventAttribute
public CustomEventAttribute(String attributeName, boolean preventDefault, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody, Object serverSideData) - Parameters:
attributeName
-preventDefault
- true to call event.preventDefault(); on event otherwise false. In almost all cases this may not be required.jsPreFunctionBody
-serverAsyncMethod
-jsFilterFunctionBody
-jsPostFunctionBody
-serverSideData
-- Since:
- 3.0.15
-
CustomEventAttribute
public CustomEventAttribute(String attributeName, boolean preventDefault, String jsPreFunctionBody, ServerAsyncMethod serverAsyncMethod, String jsFilterFunctionBody, String jsPostFunctionBody) - Parameters:
attributeName
-preventDefault
- true to call event.preventDefault(); on event otherwise false. In almost all cases this may not be required.jsPreFunctionBody
-serverAsyncMethod
-jsFilterFunctionBody
-jsPostFunctionBody
-- Since:
- 3.0.15
-
-
Method Details
-
isPreventDefault
public boolean isPreventDefault()Description copied from class:AbstractEventAttribute
This is applicable for some special attributes like OnSubmit.- Overrides:
isPreventDefault
in classAbstractEventAttribute
- Returns:
- true or false. true means to call event.preventDefault() on event otherwise false.
-
setPreventDefault
public void setPreventDefault(boolean preventDefault) Description copied from class:AbstractEventAttribute
true to call event.preventDefault(); on event. It will set only if there isServerAsyncMethod
. This is applicable for some special attributes like OnSubmit.- Overrides:
setPreventDefault
in classAbstractEventAttribute
- Parameters:
preventDefault
- true to call event.preventDefault(); on event otherwise false.
-