addStatesToTrack() protected method

The value should be an array with two enteries. The first entery is the name of the class that will calculate the state differences. The second entry is a php function/method callback that handles the changes in the viewstate.
protected addStatesToTrack ( )
 /**
  * Add the {@link TJuiControlOptions} to the states to track.
  */
 protected function addStatesToTrack()
 {
     parent::addStatesToTrack();
     $states = $this->getStatesToTrack();
     $states['JuiOptions'] = array('TMapCollectionDiff', array($this, 'updateJuiOptions'));
 }