Singleton
caplin.element.styler

ButtonStyler

Applies CSS styles to reflect status states. ButtonStyler is typically used in the XML Renderer Framework.

Constructor Summary

Attributes Name and Description
caplin.element.styler.ButtonStyler()

Method Summary

Attributes Name and Description
void style(Variant vValue, Map mAttributes, caplin.control.Control oControl)

Styles the supplied control with stale CSS styles, according to the supplied renderer attributes.

String toString()

Returns a human-readable string representation of the styler, which is useful for debugging.

Constructor Detail

caplin.element.styler.ButtonStyler()

Method Detail

void style(Variant vValue, Map mAttributes, caplin.control.Control oControl)

Styles the supplied control with stale CSS styles, according to the supplied renderer attributes.

Attribute Options:

a comma seperated list of states in which the button will be enabled> the tooltip that will be applied to the button when it is enabled
Option Description
state the current state of the field the button is listening to
enabled-states
enabled-tooltip
disabled-tooltip the tooltip that will be applied to the button when it is disabled

Parameters
Variant vValue the value.
Map mAttributes the map of attributes.
caplin.control.Control oControl the control.

String toString()

Returns a human-readable string representation of the styler, which is useful for debugging.

Returns
The string representation