public function __construct($inID, $inTitle, $inQuestion, $inPayload = null, $inWidth = 400, $inButtons = null)
 {
     parent::__construct($inID, $inTitle, $inWidth, null);
     $this->question = $inQuestion;
     $this->payload = $inPayload;
     if ($inButtons) {
         $this->buttons = $inButtons;
     } else {
         $b = new ConfirmationButton();
         $b->label = self::BUTTON_CANCEL;
         $b->message = self::MESSAGE_CANCEL;
         $this->buttons = array($b);
         $b = new ConfirmationButton();
         $b->label = self::BUTTON_OK;
         $b->message = self::MESSAGE_OK;
         $this->buttons[] = $b;
     }
 }
 public function __construct($inID, $inTitle, $inWidth, \cricket\core\Component $inComponent, $inFocus = '')
 {
     parent::__construct($inID, $inTitle, $inWidth, $inFocus);
     $this->addComponent($inComponent);
     $this->_component_id = $inComponent->_localID;
 }