code: function(state, data){
        if (this.delegate)
          return this.root.setState(state, data);
        else
          return AbstractData.prototype.setState.call(this, state, data);
      }
docs: Set new state for object. Fire stateChanged event only if state (or state text) was changed.
  @param {basis.data.STATE|string} state New state for object
  @param {*=} data
  @return {boolean} Current object state.