
Public Member Functions | |
| void | appendAttributesToResponse (WOResponse response, WOContext context) |
| void | appendChildrenToResponse (WOResponse response, WOContext context) |
| void | appendToResponse (WOResponse response, WOContext context) |
| ERXAccessibleSubmitButton (String name, NSDictionary< String, WOAssociation > associations, WOElement template) | |
Protected Member Functions | |
| String | accesskey (WOComponent component) |
| String | accesskeyElement (WOComponent component) |
| boolean | hasUsedHotKey (WOComponent component, String hotKey) |
| boolean | isDisabled (WOComponent component) |
| void | recordUsedHotKey (WOComponent component, String hotKey) |
| String | styledValue (WOComponent component) |
| NSMutableArray | usedHotKeys (WOComponent component) |
Protected Attributes | |
| WOAssociation | _accesskey |
| WOAssociation | _accesskeyElement |
The default is to use the u (underline) element to identify the hot key in the button text. Use the accesskeyElement binding to specify a different element. The element can be decorated with other attributes, e.g.
accesskeyElement = "span style='text-decoration: underline;'";
You can have this class replace WOSubmitButton via ERXPatcher.setClassForName(ERXAccessibleSubmitButton.class, "WOSubmitButton"); or use it explicitly by name in your WOD. It works best (does the most work for you) if you use it with the value attribute. No self configuring is done if there is any content between the open and close tags.
accesskey optional key for hot key, "" to disable hot key accesskeyElement optional element name and decoration to wrap hot key character with in the button text value the button text
| ERXAccessibleSubmitButton | ( | String | name, | |
| NSDictionary< String, WOAssociation > | associations, | |||
| WOElement | template | |||
| ) |
| String accesskey | ( | WOComponent | component | ) | [protected] |
| component | WOComponent to evaluate the associations in |
| String accesskeyElement | ( | WOComponent | component | ) | [protected] |
| component | WOComponent to evaluate the associations in |
| void appendAttributesToResponse | ( | WOResponse | response, | |
| WOContext | context | |||
| ) |
Adds the accesskey binding as we took it out of the associations dictionary
Reimplemented from ERXSubmitButton.
| void appendChildrenToResponse | ( | WOResponse | response, | |
| WOContext | context | |||
| ) |
Adds styledValue between the open and close tags
Reimplemented from ERXSubmitButton.
| void appendToResponse | ( | WOResponse | response, | |
| WOContext | context | |||
| ) |
Records the accesskey for this button so other buttons on the page won't use it.
Reimplemented from ERXSubmitButton.
| boolean hasUsedHotKey | ( | WOComponent | component, | |
| String | hotKey | |||
| ) | [protected] |
| component | WOComponent to evaluate the associations in | |
| hotKey | the character to check |
true if hotKey has been used by another ERXAccessibleSubmitButton on this page | boolean isDisabled | ( | WOComponent | component | ) | [protected] |
| component | WOComponent to evaluate the associations in |
true if accesskey should not be generated | void recordUsedHotKey | ( | WOComponent | component, | |
| String | hotKey | |||
| ) | [protected] |
Records that hotKey is being used by a ERXAccessibleSubmitButton on this page.
| component | WOComponent to evaluate the associations in | |
| hotKey | the character to record |
| String styledValue | ( | WOComponent | component | ) | [protected] |
| component | WOComponent to evaluate the associations in |
| NSMutableArray usedHotKeys | ( | WOComponent | component | ) | [protected] |
| component | WOComponent to evaluate the associations in |
WOAssociation _accesskey [protected] |
WOAssociation _accesskeyElement [protected] |
1.5.8