public class AjaxSelectionList extends AjaxComponent
Name | Description |
---|---|
elementName | (optional) the type of the list element inside the selection list (ul, ol, table) |
elementName | (optional) the type of element for the wrapper (default to "a" to support tabbing, but presents some styling complexities in IE) |
list | (required) the list to render |
item | (required) bound for each item of the list |
selection | (optional) the current selection |
mandatory | (optional) if false, a null value will be prepended to the list. It is up to your component content to handle the null value to show a "No Selection" value. mandatory defaults to true. Mandatory does not imply any validation, it is the semantic equivalent of noSelectionString when compared to WOPopUpButton. |
id | (optional) the id of the list |
class | (optional) the css class of the list |
style | (optional) the css style of the list |
name | (optional) the form field name |
onchange | (optional) the javascript to execute when the selection changes |
onselect | (optional) the javascript to execute when the user presses enter or double-clicks |
ondelete | (optional) the javascript to execute when backspace or delete is pressed |
focus | (optional) if true, the selection list will be focused |
containerElementName | the container element for this component, which is "a" |
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
AjaxSelectionList(WOContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRequiredWebResources(WOResponse res)
Override this method to append the needed scripts for this component.
|
String |
containerElementName() |
String |
containerID() |
String |
elementName() |
String |
fieldID() |
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
String |
id() |
Object |
item() |
NSArray |
list() |
int |
selectedIndex() |
Object |
selection() |
void |
setItem(Object item) |
void |
setSelection(Object selection) |
void |
setValue(String value) |
void |
sleep() |
boolean |
synchronizesVariablesWithBindings() |
void |
takeValuesFromRequest(WORequest request,
WOContext context) |
String |
value() |
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, appendToResponse, booleanValueForBinding, invokeAction, safeElementID, shouldHandleRequest, valueForBinding, valueForBinding, valueForBinding
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public AjaxSelectionList(WOContext context)
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class WOComponent
public String containerElementName()
public void setItem(Object item)
public Object item()
public void sleep()
sleep
in class WOComponent
public NSArray list()
public String elementName()
public String containerID()
public String fieldID()
public String id()
public Object selection()
public void setSelection(Object selection)
public void setValue(String value)
public String value()
public int selectedIndex()
public void takeValuesFromRequest(WORequest request, WOContext context)
takeValuesFromRequest
in class WOComponent
protected void addRequiredWebResources(WOResponse res)
AjaxComponent
addRequiredWebResources
in class AjaxComponent
res
- the response to write topublic WOActionResults handleRequest(WORequest request, WOContext context)
AjaxComponent
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxComponent
request
- the requestcontext
- the contextCopyright © 2002 – 2024 Project Wonder.