# Entry Control

(UI 0.9.9)

## Introduction

An Entry is a text entry control, suitable for entering plain text, passwords, or search terms.

## Class synopsis

UI\Controls\Entry extends UI\Control {
/* Constants */
const int Normal ;
const int Password ;
const int Search ;
/* Constructor */
public __construct ([ int `$type` = UI\Controls\Entry::Normal ] )
/* Methods */
public getText ( ) : string
public isReadOnly ( ) : bool
protected onChange ( )
public setReadOnly ( bool `$readOnly` )
public setText ( string `$text` )
/* Inherited methods */
public UI\Control::destroy ( )
public UI\Control::disable ( )
public UI\Control::enable ( )
public UI\Control::getParent ( ) : UI\Control
public UI\Control::getTopLevel ( ) : int
public UI\Control::hide ( )
public UI\Control::isEnabled ( ) : bool
public UI\Control::isVisible ( ) : bool
public UI\Control::setParent ( UI\Control `$parent` )
public UI\Control::show ( )
}

## Predefined Constants

`UI\Controls\Entry::Normal`

  A normal single line entry

`UI\Controls\Entry::Password`

  A password entry

`UI\Controls\Entry::Search`

  A search entry

## Table of Contents

- UI\Controls\Entry::__construct — Construct a new Entry
- UI\Controls\Entry::getText — Get Text
- UI\Controls\Entry::isReadOnly — Detect Read Only
- UI\Controls\Entry::onChange — Change Handler
- UI\Controls\Entry::setReadOnly — Set Read Only
- UI\Controls\Entry::setText — Set Text