public class MTStyledPopUpButton extends ERXStatelessComponent
Name | Description |
---|---|
id | - the identifier for the select button and the JavaScript variable. |
useDefaultCss | - If TRUE (default) it will load the default stylesheet. |
showText | - If TRUE (default) keeps text in the dropdown menu. |
Unsupported | operation showImages - If TRUE (default) show images in the dropdown menu. TODO figure out how to use the data images drop down. |
className: | A class name for CSS styling, default 'fancy-select'. |
autoHide: | If TRUE auto-hide the dropdown menu when user clicks outside. |
autoScrollWindow: | If TRUE auto-scroll browser window when FancySelect is out of viewport. |
animateFade: | If TRUE (default) animate the dropdown menu appearance. |
fx: | An object for additional Fx options (default {'duration': 'short'}). |
onShow: | The dropdown menu appears. |
onHide: | The dropdown menu disappears. |
onAttach: | FancySelect just replaced the {@code |
onDetach: | The {@code |
list: | Array of objects from which the WOPopUpButton derives its values. |
item: | Identifier for the elements of the list. For example, aCollege could represent an object in a colleges array. |
displayString: | Value to display in the selection list; for example, aCollege.name for each college object in the list. |
value: | For each OPTION tag within the selection, this is the "value" attribute (that is, {@code |
selection: | Object that the user chose from the selection list. For the college example, selection would be a college object. |
selectedValue: | Value that is used with direct actions to specify which option in the list is selected. |
name: | Name that uniquely identifies this element within the form. You can specify a name or let WebObjects automatically assign one at runtime. |
disabled: | If disabled evaluates to true, this element appears in the page but is not active. That is, selection does not contain the user's selection when the page is submitted. |
escapeHTML: | If escapeHTML evaluates to true, the string rendered by displayString is converted so that characters which would be interpreted as HTML control characters become their escaped equivalent (this is the default). Thus, if your displayString is "{@code a bold idea}", the string passed to the client browser would be "{@code a <B>bold</B> idea}", but it would display in the browser as "{@code a bold idea}". If escapeHTML evaluates to false , WebObjects simply passes your data to the client browser "as is". In this case, the above example would display in the client browser as "a bold idea". If you are certain that your strings have no characters in them which might be interpreted as HTML control characters, you get better performance if you set escapeHTML to false. |
noSelectionString: | Enables the first item to be "empty". Bind this attribute to a string (such as an empty string) that, if chosen, represents an empty selection. When this item is selected, the selection attribute is set to null. |
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
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
MTStyledPopUpButton(WOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
appendToResponse(WOResponse response,
WOContext context)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.appendToResponse. |
NSDictionary |
createAjaxOptions() |
String |
id() |
NSArray<Object> |
list() |
void |
reset()
このメソッドは、指定されているコンテクストのオブジェクトに対する、
ステートレス・コンポーネントの一時的リファレンスをリセットもしくは削除します。
あるコンポーネントの共有化されたインスタンスが、他のセッションによって再利用されるとき、
このメソッドを利用し、各コンポーネントのインスタンス変数を解放します。
|
boolean |
selectedValueIsDefined() |
boolean |
selectionIsDefined() |
void |
setId(String id) |
boolean |
synchronizesVariablesWithBindings()
Component does not synchronize variables.
|
boolean |
useDefaultCss() |
isStateless
invokeAction, resetCachedBindingsInStatefulComponent, takeValuesFromRequest
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript
__valueForBinding, _associationWithName, _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, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public MTStyledPopUpButton(WOContext context)
public void reset()
ERXComponent
reset
in class ERXStatelessComponent
public void appendToResponse(WOResponse response, WOContext context)
ERXNonSynchronizingComponent
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent()
prior to super.appendToResponse.appendToResponse
in class ERXNonSynchronizingComponent
response
- to which we are appendingcontext
- context of the responsepublic NSDictionary createAjaxOptions()
public boolean useDefaultCss()
public boolean selectionIsDefined()
public boolean selectedValueIsDefined()
public String id()
public void setId(String id)
id
- the id to setpublic boolean synchronizesVariablesWithBindings()
ERXNonSynchronizingComponent
synchronizesVariablesWithBindings
in class ERXNonSynchronizingComponent
false
Copyright © 2002 – 2024 Project Wonder.