Sha256: 8d652af76877863a73246ba961794c65553205238d2a6123d1e307ee9ab0c374

Contents?: true

Size: 1.55 KB

Versions: 27

Compression:

Stored size: 1.55 KB

Contents

/*** = Description
  ** A HRadioButton is a labeled, two-state button that's displayed in a group along
  ** with other similar buttons. The button itself is a round icon that has a filled
  ** center when the HRadioButton is turned on, and is empty when it's off.
  ** The label appears next to the icon.
  **
  ** Only one radio button in the group can be on at a time; when the user clicks a
  ** button to turn it on, the button that's currently on is turned off. One button
  ** in the group must be on at all times; the user can turn a button off only by
  ** turning another one on. The button that's on has a value of 1 (H_CONTROL_ON);
  ** the others have a value of 0 (H_CONTROL_OFF).
  **
  ** The HRadioButton class handles the interaction between radio buttons in the
  ** following way: A direct user action can only turn on a radio button, not turn
  ** it off. However, when the user turns a button on, the HRadioButton object turns
  ** off all sibling HRadioButtons—that is, all HRadioButtons that have the same
  ** parent as the one that was turned on.
  **
  ** This means that a parent view should have no more than one 
  ** group of radio buttons among its children. Each set of radio buttons 
  ** should be assigned a separate parent—perhaps an empty HView that 
  ** simply contains the radio buttons and does no drawing of its own.
  ***/

var//RSence.Controls
HRadioButton = HCheckbox.extend(
  HValueMatrixInterface
);
HRadioButton.prototype.componentName = 'radiobutton';


// Backwards compatibility
var//RSence.Controls
HRadiobutton = HRadioButton;

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rsence-pre-3.0.0.16 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.15 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.14 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.12 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.11 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.10 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.9 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.8 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.7 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.6 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.5 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.4 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.3 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.2 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.1 client/js/controls/radiobutton/radiobutton.js
rsence-pre-3.0.0.0 client/js/controls/radiobutton/radiobutton.js
rsence-pre-2.3.0.26 js/controls/radiobutton/radiobutton.js
rsence-pre-2.3.0.25 js/controls/radiobutton/radiobutton.js
rsence-pre-2.3.0.24 js/controls/radiobutton/radiobutton.js
rsence-pre-2.3.0.23 js/controls/radiobutton/radiobutton.js