function __construct() { $this->entry = new Entry(); $this->entry->setId('datepicker-result'); $this->entry->setScriptEvents(); $this->entry->setVAlign('center'); $this->entry->setPosition(0, -4); $this->button = new Button(); $this->button->setId('datepicker-button'); $this->button->setScriptEvents(); $this->button->setText('Select'); $this->button->setPosition(25); }