public class CCTagEditor extends AjaxDynamicElement
Name | Description |
---|---|
value, | the string representing the list of tags |
deletion | optional, default is true , whether each tag should carry an icon for easy deletion |
delimiter | optional, default is space, the separator between tags |
render | optional, a method that's called whenever a tag should be rendered |
readTag | optional, a method that retrieves the tag from the DOM element |
parse | optional, a method that transforms user input into a tag |
validate | optional, a method that validates the parsed tag value |
convertOnFocus | optional, default is true, whether the tags are being converted when the focus event fires on elements other than the tag input |
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
CCTagEditor(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Build span, input, and JavaScript into response.
|
String |
availableTags(WOContext context) |
protected NSMutableDictionary<String,String> |
createOptions(WOContext context)
Produce dictionary for options object
|
protected String |
formValueName(WOContext context) |
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Handles server action.
|
String |
id(WOContext context)
Return the value of the id binding if it exists or a safe identifier
otherwise.
|
protected void |
setValueFromFormValue(WORequest request,
WOContext context)
Sets the value binding based on the form value.
|
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, invokeAction, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public CCTagEditor(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
protected void addRequiredWebResources(WOResponse response, WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionpublic void appendToResponse(WOResponse response, WOContext context)
appendToResponse
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionAjaxDynamicElement.appendToResponse(com.webobjects.appserver.WOResponse, com.webobjects.appserver.WOContext)
protected NSMutableDictionary<String,String> createOptions(WOContext context)
context
- WOContext providing component to resolve bindings inpublic WOActionResults handleRequest(WORequest request, WOContext context)
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionAjaxDynamicElement.handleRequest(com.webobjects.appserver.WORequest, com.webobjects.appserver.WOContext)
,
WODynamicGroup.takeValuesFromRequest(WORequest, WOContext)
protected void setValueFromFormValue(WORequest request, WOContext context)
request
- the WORequest to get the form values fromcontext
- WOContext used to determine component used inWODynamicGroup.takeValuesFromRequest(WORequest, WOContext)
,
handleRequest(WORequest, WOContext)
protected String formValueName(WOContext context)
context
- WOContext used to determine component used inpublic String id(WOContext context)
ERXDynamicElement
id
in class ERXDynamicElement
context
- WOContext used to determine component used inCopyright © 2002 – 2024 Project Wonder.