Sha256: c57967ad93f316e4014f4b52bff6739de368d2faf5218ad3b1b243c9afaecb35

Contents?: true

Size: 1.44 KB

Versions: 7

Compression:

Stored size: 1.44 KB

Contents

/*   Riassence Framework
 *   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.
  ***/
HStringView = HControl.extend({

  componentName: "stringview",
  componentBehaviour: ['view','control','text'],
  
/** = Description
  * setStyle function
  *
  **/
  setStyle: function(_name, _value, _cacheOverride) {
    if (!this['markupElemIds']||!this.markupElemIds['value']) {
      return;
    }
    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

7 entries across 7 versions & 1 rubygems

Version Path
rsence-2.0.0.5.pre js/controls/stringview/stringview.js
rsence-2.0.0.4.pre js/controls/stringview/stringview.js
rsence-2.0.0.3.pre js/controls/stringview/stringview.js
rsence-2.0.0.2.pre js/controls/stringview/stringview.js
rsence-2.0.0.1.pre js/controls/stringview/stringview.js
rsence-2.0.0.0.pre js/controls/stringview/stringview.js
rsence-2.0.0.pre js/controls/stringview/stringview.js