whole_func_string: 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);
                      }
                  }
              }
          }
      }
func_code_string: 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);
                      }
                  }
              }
          }
      }
func_documentation_string: Initializes the state of the object upon construction.
  @private