code: function(){
          var me = this,
              id = me.stateful && me.getStateId(),
              hasListeners = me.hasListeners,
              state;
  
          if (id) {
              state = Ext.state.Manager.get(id);
              if (state) {
                  state = Ext.apply({}, state);
                  if (!hasListeners.beforestaterestore || me.fireEvent('beforestaterestore', me, state) !== false) {
                      me.applyState(state);
                      if (hasListeners.staterestore) {
                          me.fireEvent('staterestore', me, state);
                      }
                  }
              }
          }
      }
docs: Initializes the state of the object upon construction.
  @private