ERXOptGroupPopupButton Class Reference

Inherits com::webobjects::appserver::_private::WOPopUpButton.

Collaboration diagram for ERXOptGroupPopupButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void appendChildrenToResponse (WOResponse response, WOContext context)
 ERXOptGroupPopupButton (String name, NSDictionary associations, WOElement template)

Protected Attributes

WOAssociation group
WOAssociation itemClass
WOAssociation itemDisabled
WOAssociation itemStyle
WOAssociation label


Detailed Description

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.

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!


Constructor & Destructor Documentation

ERXOptGroupPopupButton ( String  name,
NSDictionary  associations,
WOElement  template 
)


Member Function Documentation

void appendChildrenToResponse ( WOResponse  response,
WOContext  context 
)


Member Data Documentation

WOAssociation group [protected]

WOAssociation itemClass [protected]

WOAssociation itemDisabled [protected]

WOAssociation itemStyle [protected]

WOAssociation label [protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:31 2012 for Project Wonder by  doxygen 1.5.8