Пример #1
0
 /**
  * Changes the Entry contents without fire 'changed' signal
  * @param string $text the new text
  * @ignore-autocomplete on
  */
 public function Set($text)
 {
     // turn off the signal
     parent::disconnect($this->handler);
     parent::set_text($text);
     // cursor to the end
     parent::select_region(-1, -1);
     // turn on the signal
     $this->handler = parent::connect_after('changed', array($this, 'onChanged'));
 }
 /**
  * Método que seta o valor no campo
  * 
  * @name __setMask($text)
  * @access private
  * @author Pablo Dall'Oglio
  * @param string $text Texto da mascará a ser setado
  */
 public function __setMask($text)
 {
     // Desconectando o sinal changed
     parent::disconnect($this->__maskConnection);
     // Seta o texto do entry
     parent::set_text($text);
     // Posiciona o cursor no final do texto
     parent::select_region(-1, -1);
     // Reconecta changed
     $this->__maskConnection = parent::connect_after("changed", array($this, "__changeMask"));
 }