class %ZEN.Component.radioButton
extends control
radio button control.
This provides a wrapper around the HTML input=radio control with
some enhanced capabilities.
parameter DEFAULTCONTROLCLASS = "radio";
The default css class used for the main element within this control. This
is overridden by subclasses.
property caption
as %ZEN.Datatype.caption(ZENEXPRESSION=1);
Additional caption displayed next to actual radio button.
This is a localized value.
property captionClass
as %ZEN.Datatype.cssClass [ InitialExpression = "radioButtonCaption" ];
CSS class to apply to the control's caption.
property optionValue
as %ZEN.Datatype.value(ZENEXPRESSION=1);
Defines the value associated with this specific radio button.
This is in contrast with the value which
defines the value of the entire set of radio buttons.
method %DrawHTML()
Static HTML display method: draw the BODY of this component
as HTML.
Subclasses implement this in order to render the static HTML
contents of a component.
method %SetDefaultValues()
This method fills in reasonable default values for
this control. Used by tools (such as Control Tester) to
dynamically create controls.
method clickButton()
[ Language = javascript ]
User click on radio button.
method clickCaption()
[ Language = javascript ]
User click on caption for radio button; select this button.
method getProperty(property, key)
as %String
[ Language = javascript ]
Override to get current value of control.
method onSerialize()
[ Language = javascript ]
Make sure serialization does not mess with our value.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.
method valueSet(%val)
as %Status
Setting value of any radio button, sets value for
other buttons in the same group.