Class DwtRadioButton
Extends
DwtCheckbox.
This class implements a radio button.
Defined in: DwtRadioButton.js.
Class Summary
Constructor Attributes |
Constructor Name and Description |
|
Creates a radio button.
|
- Methods borrowed from class DwtCheckbox:
- addSelectionListener, getInputElement, getText, getTextPosition, getValue, isSelected, removeSelectionListener, setEnabled, setSelected, setText, setTextPosition, setValue
- Methods borrowed from class DwtControl:
- addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, dispose, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTabGroupMember, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setContent, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
DwtRadioButton(params)
Creates a radio button.
- Parameters:
-
{hash} params
- a hash of parameters
-
{DwtComposite} params.parent
- the parent widget
-
{constant} params.style
- the text style. May be one of: DwtCheckbox.TEXT_LEFT or
DwtCheckbox.TEXT_RIGHT arithimatically or'd (|) with one of:
DwtCheckbox.ALIGN_LEFT, DwtCheckbox.ALIGN_CENTER, or
DwtCheckbox.ALIGN_LEFT.
The first determines were in the checkbox the text will appear
(if set), the second determine how the content of the text will be
aligned. The default value for this parameter is:
DwtCheckbox.TEXT_LEFT | DwtCheckbox.ALIGN_CENTER
-
{string} params.name
- the input control name (required for IE)
-
{string} params.value
- the input control value.
-
{boolean} params.checked
- the input control checked status (required for IE)
-
{string} params.className
- the CSS class
-
{constant} params.posStyle
- the positioning style (see DwtControl)
-
{string} params.id
- an explicit ID to use for the control's HTML element
-
{number} params.index
- the index at which to add this control among parent's children
|