Project Wonder 5.0

com.webobjects.appserver._private
Class ERXOptGroupBrowser

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by com.webobjects.appserver._private.WOHTMLDynamicElement
                  extended by com.webobjects.appserver._private.WOInput
                      extended by com.webobjects.appserver._private.WOInputList
                          extended by com.webobjects.appserver._private.WOBrowser
                              extended by er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Browser
                                  extended by com.webobjects.appserver._private.ERXOptGroupBrowser

public class ERXOptGroupBrowser
extends ERXPatcher.DynamicElementsPatches.Browser

Quick hack at extending WOBrowser 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.

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
           

Field Summary
protected  WOAssociation group
           
protected  WOAssociation itemClass
           
protected  WOAssociation itemStyle
           
protected  WOAssociation label
           
 
Fields inherited from class com.webobjects.appserver._private.WOBrowser
_multiple, _size
 
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
ERXOptGroupBrowser(String arg0, NSDictionary arg1, WOElement arg2)
           
 
Method Summary
 void appendChildrenToResponse(WOResponse response, WOContext context)
           
 
Methods inherited from class er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Browser
_appendNameAttributeToResponse, appendToResponse, listClassInContext, setSelectionListInContext
 
Methods inherited from class com.webobjects.appserver._private.WOBrowser
_appendValueAttributeToResponse, appendAttributesToResponse, hasContent, multipleInContext, sizeInContext, 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, 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

group

protected WOAssociation group

label

protected WOAssociation label

itemStyle

protected WOAssociation itemStyle

itemClass

protected WOAssociation itemClass
Constructor Detail

ERXOptGroupBrowser

public ERXOptGroupBrowser(String arg0,
                          NSDictionary arg1,
                          WOElement arg2)
Method Detail

appendChildrenToResponse

public void appendChildrenToResponse(WOResponse response,
                                     WOContext context)
Overrides:
appendChildrenToResponse in class com.webobjects.appserver._private.WOBrowser

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.