Sha256: bf2fbe37d46d5432926e504971938dc0aee4ac420859353d24940b1280f698ac

Contents?: true

Size: 1.35 KB

Versions: 7

Compression:

Stored size: 1.35 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
  ** A HDummyValue is just a placeholder for HValue values. HDummyValue
  ** is a light-weight alternative that doesn't implement any actual HValue
  ** functionality, but implements the essential methods and keeps the HControl
  ** content when an actual HValue instance isn't bound.
  ** It's the default valueObj type for components not bound to real HValue instances.
***/
HDummyValue = HClass.extend({
  
/** = Description
  * HDummyValue is initialized just like a real HValue.
  *
  * = Parameters
  * +_id+::    Any string or integer, just a placeholder for HValue.id
  * +_value+:: Any valid js object, just as for HValue.value
  *
  **/
  constructor: function(_id, _value) {
    this.id = _id;
    this.value = _value;
  },

/** Sets a new instance payload value.
  **/
  set: function(_value) {
    this.value = _value;
  },

/** Returns the instance payload value.
  **/
  get: function() {
    return this.value;
  },
  
/** Binds HControl, does actually nothing.
  **/
  bind: function( _theObj ){},
  
/** Unbinds (releases) HControl, does actually nothing.
  **/
  unbind: function( _theObj ){}
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rsence-2.0.0.5.pre js/foundation/control/dummyvalue/dummyvalue.js
rsence-2.0.0.4.pre js/foundation/control/dummyvalue/dummyvalue.js
rsence-2.0.0.3.pre js/foundation/control/dummyvalue/dummyvalue.js
rsence-2.0.0.2.pre js/foundation/control/dummyvalue/dummyvalue.js
rsence-2.0.0.1.pre js/foundation/control/dummyvalue/dummyvalue.js
rsence-2.0.0.0.pre js/foundation/control/dummyvalue/dummyvalue.js
rsence-2.0.0.pre js/foundation/control/dummyvalue/dummyvalue.js