setText() public method

Sets the text content of the TTextBox control.
public setText ( $value )
Example #1
0
 /**
  * Client-side Text property can only be updated after the OnLoad stage.
  * @param string text content for the textbox
  */
 public function setText($value)
 {
     if (parent::getText() === $value) {
         return;
     }
     parent::setText($value);
     if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) {
         $this->getPage()->getCallbackClient()->setValue($this, $value);
     }
 }
Example #2
0
 protected function createMultiLineControl($container, $column, $record)
 {
     $value = $this->getRecordPropertyValue($column, $record);
     $control = new TTextBox();
     $control->setText($value);
     $control->setTextMode(TTextBoxMode::MultiLine);
     $control->setCssClass('multiline-textbox scaffold_input');
     $this->setNotNullProperty($container, $control, $column, $record);
     return $control;
 }
Example #3
0
 /**
  * On callback response, the inner HTMl of the label and the
  * value of the textbox is updated
  * @param string the text value of the label
  */
 public function setText($value)
 {
     if (TTextBox::getText() === $value) {
         return;
     }
     TTextBox::setText($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $client = $this->getPage()->getCallbackClient();
         $client->update($this->getLabelClientID(), $value);
         $client->setValue($this, $value);
     }
 }