示例#1
0
 /**
  * Define the action to be executed when the user leaves the form field
  * @param $action TAction object
  */
 function setExitAction(TAction $action)
 {
     if ($action->isStatic()) {
         $this->exitAction = $action;
     } else {
         $string_action = $action->toString();
         throw new Exception(AdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__));
     }
 }
示例#2
0
 /**
  * Define the action to be executed when the user changes the combo
  * @param $action TAction object
  */
 function setChangeAction(TAction $action)
 {
     if ($action->isStatic()) {
         $this->changeAction = $action;
     } else {
         $string_action = $action->toString();
         throw new Exception(AdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__));
     }
     $this->widget->connect('changed', array($this, 'onExecuteExitAction'));
 }
示例#3
0
 /**
  * Define the action to be executed when the user leaves the form field
  * @param $action TAction object
  */
 function setExitAction(TAction $action)
 {
     if ($action->isStatic()) {
         $this->exitAction = $action;
     } else {
         $string_action = $action->toString();
         throw new Exception(AdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__));
     }
     $this->textview->connect_after('focus-out-event', array($this, 'onExecuteExitAction'));
 }
示例#4
0
 /**
  * Define the action to be executed when the user changes the combo
  * @param $action TAction object
  */
 function setChangeAction(TAction $action)
 {
     if ($action->isStatic()) {
         $this->changeAction = $action;
     } else {
         $string_action = $action->toString();
         throw new Exception(AdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__));
     }
     if ($this->radios) {
         foreach ($this->radios as $key => $radio) {
             $radio->connect('clicked', array($this, 'onExecuteExitAction'));
         }
     }
 }