|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
com.webobjects.appserver._private.WOHTMLDynamicElement
com.webobjects.appserver._private.WOInput
com.webobjects.appserver._private.WOInputList
com.webobjects.appserver._private.WOPopUpButton
er.extensions.foundation.ERXPatcher.DynamicElementsPatches.PopUpButton
com.webobjects.appserver._private.ERXOptGroupPopupButton
public class ERXOptGroupPopupButton
Quick hack at extending WOPopUpButton to use HTML 4 optgroups. It adds two bindings: group and label. group is required. When this value changes, a new optgroup is created. label is optional. This is used as the label for an option group. If label is not bound, an empty string is used as the option group label. Also adds bindings to style or disable individual items.
| Bindings | |
group | Object, required - keyPath to value that changes when the group of options changes |
label | String, optional - String used as label for an option group |
itemClass, | optional - String CSS class name for this item, browser support is inconsistent |
itemStyle, | optional - String CSS style for this item, browser support is inconsistent |
itemDisabled, | optional - boolean indicating if the current item should be disabled or not.
Browser support is inconsistent. Be prepared to handle the case where the user selects
a disabled option! |
| Field Summary | |
|---|---|
protected WOAssociation |
group
|
protected WOAssociation |
itemClass
|
protected WOAssociation |
itemDisabled
|
protected WOAssociation |
itemStyle
|
protected WOAssociation |
label
|
| Fields inherited from class com.webobjects.appserver._private.WOPopUpButton |
|---|
_noSelectionString, _selectedValue, _selection, WONoSelectionString |
| Fields inherited from class com.webobjects.appserver._private.WOInputList |
|---|
_displayString, _index, _item, _list, _loggedSlow, _optionDisabled, _selectedValues, _selections |
| Fields inherited from class com.webobjects.appserver._private.WOInput |
|---|
_disabled, _escapeHTML, _hidden, _name, _value |
| Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement |
|---|
_associations, _class, _constantAttributeAssociations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization, _generatedId, _id, _prefix, _rendered, _secure, _style, _suffix, _title, DontEscapeHTML, EscapeHTML |
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
|---|
_children |
| Fields inherited from class com.webobjects.appserver.WODynamicElement |
|---|
_ConstructorParameters |
| Constructor Summary | |
|---|---|
ERXOptGroupPopupButton(String name,
NSDictionary associations,
WOElement template)
|
|
| Method Summary | |
|---|---|
void |
appendChildrenToResponse(WOResponse response,
WOContext context)
|
| Methods inherited from class er.extensions.foundation.ERXPatcher.DynamicElementsPatches.PopUpButton |
|---|
_appendNameAttributeToResponse, _appendValueAttributeToResponse, appendToResponse, listClassInContext, setSelectionListInContext |
| Methods inherited from class com.webobjects.appserver._private.WOPopUpButton |
|---|
hasContent, noSelectionStringInContext, selectedInContext, takeValuesFromRequest, toString |
| Methods inherited from class com.webobjects.appserver._private.WOInputList |
|---|
defaultEscapeHTML, displayStringInContext, listInContext, optionDisabledInContext, optionStringInContext, selectedListInContext, setIndexValueInContext, setItemValueInContext |
| Methods inherited from class com.webobjects.appserver._private.WOInput |
|---|
_appendDisabledAttributeToResponse, _appendTypeAttributeToResponse, appendAttributesToResponse, escapeHTMLInContext, hiddenInContext, isDisabledInContext, isValueInInputValues, nameInContext, nameInContext, type, valueStringInContext |
| Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement |
|---|
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendAttributesFromAssociationsToResponse, _appendClassAndIdToResponse, _appendCloseTagToResponse, _appendOpenTagToResponse, _appendTagAttributeAndValueToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendHiddenFieldToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, classInContext, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributeAssociations, constantAttributesRepresentation, elementName, escapeHTML, idInContext, isRenderedInContext, nonUrlAttributeAssociations, prefixInContext, secureInContext, stringValueInContext, styleInContext, suffixInContext, titleInContext, urlAttributeAssociations |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
|---|
addChildElement, childrenElements, EmptyGroup, hasChildrenElements, invokeAction, invokeChildrenAction, takeChildrenValuesFromRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WOAssociation group
protected WOAssociation label
protected WOAssociation itemStyle
protected WOAssociation itemClass
protected WOAssociation itemDisabled
| Constructor Detail |
|---|
public ERXOptGroupPopupButton(String name,
NSDictionary associations,
WOElement template)
| Method Detail |
|---|
public void appendChildrenToResponse(WOResponse response,
WOContext context)
appendChildrenToResponse in class com.webobjects.appserver._private.WOPopUpButton
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||