Class QRadioButtonList
This class will render a List of HTML Radio Buttons (inhereting from ListControl). By definition, radio button lists are single-select ListControls.
So assuming you have a list of 10 items, and you have RepeatColumn set to 3:
RepeatDirection::Horizontal would render as: 1 2 3 4 5 6 7 8 9 10
RepeatDirection::Vertical would render as: 1 5 8 2 6 9 3 7 10 4
- QBaseClass
- QHtmlAttributeManagerBase
- QHtmlAttributeManager
- QControlBase
- QControl
- QListControl uses QListItemManager
- QRadioButtonList
public
|
#
__construct(
Creates a QControlBase object This constructor will generally not be used to create a QControlBase object. Instead it is used by the classes which extend the class. Only the parent object parameter is required. If the option strControlId parameter is not used, QCubed will generate the id. |
public
|
|
public
string
|
#
GetEndScript( )
Returns and fires the JavaScript that is associated with this control. The html for the control will have already been rendered, so refer to the html object with "\$j(#{$this->ControlId})". You should do the following: - Return any script that attaches a JavaScript widget to the the html control. - Use functions like ExecuteControlCommand to fire commands to execute AFTER all controls have been attached. |
protected
|
|
protected
|
#
OverrideItemAttributes( $objItem,
Provides a way for subclasses to override the attributes on specific items just before they are drawn. |
protected
string
|
|
protected
string
|
#
GetControlHtml( )
This method will render the control, itself, and will return the rendered HTML as a string |
public
string
|
#
RenderButtonTable( )
Renders the button group as a table, paying attention to the number of columns wanted. |
public
string
|
#
RenderButtonSet( )
Renders the checkbox list as a buttonset, rendering just as a list of checkboxes and allowing css or javascript to format the rest. |
public
string
|
#
RenderButtonColumn( )
Render as a single column. This implementation simply wraps the rows in divs. |
public
boolean
|
|
protected
|
#
RefreshSelection( )
Override of superclass that will update the selection using javascript so that the whole control does not need to be redrawn. |
public
mixed
|
|
public
mixed|
|
|
public static
|
#
GetModelConnectorParams( )
Returns an description of the options available to modify by the designer for the code generator. |
OverrideAttributes(),
__call()
|
integer |
ButtonModeNone
|
#
0
|
integer |
ButtonModeJq
|
#
1
|
integer |
ButtonModeSet
|
#
2
|
integer |
ButtonModeList
|
#
3
|
CommentEnd,
CommentStart
|
protected
string
|
$strTextAlign
|
|
protected
string
|
$strButtonGroupClass
The class to use when wrapping a button-label group |
|
protected
boolean
|
$blnHtmlEntities
|
#
true
|
protected
integer
|
$intCellPadding
|
#
-1
|
protected
integer
|
$intCellSpacing
|
#
-1
|
protected
integer
|
$intRepeatColumns
|
#
1
|
protected
string
|
$strRepeatDirection
|
|
protected
null| |
$objItemStyle
The common style for all elements in the list |
#
null
|
protected
|
$intButtonMode
|
|
protected
|
$strMaxHeight
|
$attributes,
$styles
|
$objListItemArray
|
public
string
|
$TextAlign
specifies if each ListItem's Name should be displayed to the left or to the right of the radio button. |
public
boolean
|
$HtmlEntities
|
public
integer
|
$CellPadding
specified the HTML Table's CellPadding |
public
integer
|
$CellSpacing
specified the HTML Table's CellSpacing |
public
integer
|
$RepeatColumns
specifies how many columns should be rendered in the HTML Table |
public
string
|
$RepeatDirection
specifies which direction should the list go first: horizontal or vertical |
public
integer
|
$ButtonMode
specifies how to render buttons |
$ItemCount,
$ItemStyle,
$SelectedIndex,
$SelectedItem,
$SelectedItems,
$SelectedName,
$SelectedNames,
$SelectedValue,
$SelectedValues
|
$AccessKey,
$AltText,
$BackColor,
$BorderCollapse,
$BorderColor,
$BorderStyle,
$BorderWidth,
$CssClass,
$Cursor,
$Data,
$Display,
$DisplayStyle,
$Enabled,
$FontBold,
$FontItalic,
$FontNames,
$FontOverline,
$FontSize,
$FontStrikeout,
$FontUnderline,
$ForeColor,
$Height,
$HorizontalAlign,
$Left,
$Margin,
$NoWrap,
$Opacity,
$OrderedListType,
$Overflow,
$Padding,
$Position,
$ReadOnly,
$TabIndex,
$ToolTip,
$Top,
$UnorderedListStyle,
$VerticalAlign,
$Width
|