Sha256: 30fe24e71c8dae46cf0bcb68a985d384132eac67729e9ef4c295b7cda6f1112f

Contents?: true

Size: 1.41 KB

Versions: 38

Compression:

Stored size: 1.41 KB

Contents

/*   RSence
 *   Copyright 2006 Riassence Inc.
 *   http://riassence.com/
 *
 *   You should have received a copy of the GNU General Public License along
 *   with this software package. If not, contact licensing@riassence.com
 */

/*** = Description
  ** HStringView is a view component that represents a non-editable line of text. 
  ** Commonly, stringview is used as a label to control elements 
  ** that do not have implicit labels (text fields, checkboxes and radio buttons, and menus). 
  ** Some form controls automatically have labels associated with them (press buttons) 
  ** while most do not have (text fields, checkboxes and radio buttons, and sliders etc.).  
  **
  ** = Instance variables
  ** +type+::   '[HStringView]'
  ** +value+::  The string that this string view displays when drawn.
  ***/
var//RSence.Controls
HStringView = HControl.extend({

  componentName: "stringview",
  
/** = Description
  * setStyle function
  *
  **/
  setStyle: function(_name, _value, _cacheOverride) {
    if (!this['markupElemIds']||!this.markupElemIds['value']) {
      return this;
    }
    ELEM.setStyle(this.markupElemIds.value, _name, _value, _cacheOverride);
    return this;
  },
  
/** = Description
  * refreshLable function
  *
  **/
  refreshLabel: function() {
    if(this.markupElemIds) {
      if(this.markupElemIds.value) {
        ELEM.setAttr(this.markupElemIds.value, 'title', this.label);
      }
    }
  }
});

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
rsence-2.1.7 js/controls/stringview/stringview.js
rsence-2.1.6 js/controls/stringview/stringview.js
rsence-2.1.5 js/controls/stringview/stringview.js
rsence-2.1.4 js/controls/stringview/stringview.js
rsence-2.1.3 js/controls/stringview/stringview.js
rsence-2.1.2 js/controls/stringview/stringview.js
rsence-2.1.1 js/controls/stringview/stringview.js
rsence-2.1.0 js/controls/stringview/stringview.js
rsence-pre-2.1.0.21 js/controls/stringview/stringview.js
rsence-pre-2.1.0.20 js/controls/stringview/stringview.js
rsence-pre-2.1.0.19 js/controls/stringview/stringview.js
rsence-pre-2.1.0.18 js/controls/stringview/stringview.js
rsence-pre-2.1.0.17 js/controls/stringview/stringview.js
rsence-pre-2.1.0.16 js/controls/stringview/stringview.js
rsence-pre-2.1.0.15 js/controls/stringview/stringview.js
rsence-pre-2.1.0.14 js/controls/stringview/stringview.js
rsence-pre-2.1.0.13 js/controls/stringview/stringview.js
rsence-pre-2.1.0.12 js/controls/stringview/stringview.js
rsence-pre-2.1.0.11 js/controls/stringview/stringview.js
rsence-pre-2.1.0.10 js/controls/stringview/stringview.js