Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
TextFieldViewBase

Package | org.apache.flex.html.beads
Class | public class TextFieldViewBase
Inheritance | TextFieldViewBase Object
Implements | IBeadView, ITextFieldView
Subclasses | MultilineTextFieldView, TextAreaView, TextFieldView, TextInputView

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The TextFieldViewBase class is the base class for the components that display text. It displays text using a TextField, so there is no right-to-left text support in this view.

Public Properties

| Property | Defined By
--- | --- | ---
|  | html : String The html formatted text displayed in the control. | TextFieldViewBase
|  | strand : IStrand [write-only] The host component for this bead. | TextFieldViewBase
|  | text : String The text displayed in the control. | TextFieldViewBase
|  | textField : CSSTextField [read-only] | TextFieldViewBase

Protected Properties

| Property | Defined By
--- | --- | ---
|  | autoHeight : Boolean Whether we are autosizing the height. | TextFieldViewBase
|  | autoWidth : Boolean Whether we are autosizing the width. | TextFieldViewBase
|  | inHeightChange : Boolean = false A flag to prevent looping. | TextFieldViewBase
|  | inWidthChange : Boolean = false A flag to prevent looping. | TextFieldViewBase
|  | _strand : IStrand | TextFieldViewBase

Public Methods

| Method | Defined By
--- | --- | ---
|  | TextFieldViewBase() Constructor. | TextFieldViewBase

Protected Methods

| Method | Defined By
--- | --- | ---
|  | autoSizeIfNeeded():void Handle autosizing. | TextFieldViewBase
|  | heightChangeHandler(event:Event):void Determine the height of the TextField. | TextFieldViewBase
|  | sizeChangeHandler(event:Event):void Determine the size of the TextField. | TextFieldViewBase
|  | widthChangeHandler(event:Event):void Determine the width of the TextField. | TextFieldViewBase

Property Detail

_strand | property

`protected var _strand:IStrand`

autoHeight | property |

`protected var autoHeight:Boolean`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Whether we are autosizing the height.

autoWidth | property |

`protected var autoWidth:Boolean`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Whether we are autosizing the width.

html | property |

`html:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The html formatted text displayed in the control.

Implementation
`public function get html():String`
`public function set html(value:String):void`

inHeightChange | property |

`protected var inHeightChange:Boolean = false`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

A flag to prevent looping.

inWidthChange | property |

`protected var inWidthChange:Boolean = false`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

A flag to prevent looping.

strand | property |

`strand:IStrand` [write-only]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The host component for this bead.

Implementation
`public function set strand(value:IStrand):void`

text | property |

`text:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The text displayed in the control.

Implementation
`public function get text():String`
`public function set text(value:String):void`

textField | property |

`textField:CSSTextField` [read-only]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Implementation
`public function get textField():CSSTextField`
Constructor Detail

TextFieldViewBase | () | Constructor

`public function TextFieldViewBase()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

autoSizeIfNeeded | () | method

`protected function autoSizeIfNeeded():void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Handle autosizing. The built-in player algorithm doesn't work the way we would like, especially when it collapses Textfields with empty strings.

heightChangeHandler | () | method |

`protected function heightChangeHandler(event:Event):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Determine the height of the TextField.

Parameters

| `event:Event`

sizeChangeHandler | () | method |

`protected function sizeChangeHandler(event:Event):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Determine the size of the TextField.

Parameters

| `event:Event`

widthChangeHandler | () | method |

`protected function widthChangeHandler(event:Event):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Determine the width of the TextField.

Parameters

| `event:Event`

Mon Sep 5 2016, 07:19 AM -07:00