Packagecom.jwopitz.controls
Classpublic class TextInput
InheritanceTextInput Inheritance mx.controls.TextInput

The TextInput control is a single-line text field that is optionally editable. All text in this control must use the same styling unless it is HTML text. The TextInput control supports the HTML rendering capabilities of the Adobe Flash Player.

The <jwo_lib:TextInput> tag inherits the attributes of its superclass and adds the following attributes:

   <jwo_lib:TextInput
     Properties
     showClearButton="false|true"
      
     Styles
     horizontalGap="5"
      
     Events
     clear="No default"
   />
   

See also

mx.controls.TextInput


Public Properties
 PropertyDefined by
  appearAsLabel : Boolean
Flag indicating if once the component has lost focus, it should appear as a label, removing the border and clear button.
TextInput
  focusOnClear : Boolean
Flag indicating if the text field should gain focus after a clear event.
TextInput
  prompt : String
Indicator string located at the end of the text when labelMode = true.
TextInput
  showClearButton : Boolean
Flag indicating whether or not to show the clear button for the text field.
TextInput
Protected Properties
 PropertyDefined by
  labelMode : Boolean
Flag that tells internal methods if component is in label mode or edit mode.
TextInput
Events
 EventSummaryDefined by
   Triggered when the user clicks the clear button.TextInput
Styles
 StyleDescriptionDefined by
  
disabledSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the background and border when the clear button is not selected and is disabled. The default value is "/assets/swf/closeButtonSkins.swf#CloseButton_disabledSkin".
TextInput
  
downSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the background and border when the clear button is not selected and the mouse button is down. The default value is "/assets/swf/closeButtonSkins.swf#CloseButton_downSkin".
TextInput
  
horizontalGap
Type: Number   Format: Length   CSS Inheritance: no
The horizontal gap between the end of the UITextField and the clear button. The default value is 5.
TextInput
  
overSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the background and border when the clear button is not selected and the mouse is over the control. The default value is "/assets/swf/closeButtonSkins.swf#CloseButton_overSkin".
TextInput
  
upSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the background and border when the clear button is not selected and the mouse is not over the control. The default value is "/assets/swf/closeButtonSkins.swf#CloseButton_upSkin".
TextInput
Property detail
appearAsLabelproperty
appearAsLabel:Boolean  [read-write]

Flag indicating if once the component has lost focus, it should appear as a label, removing the border and clear button. The default value is true.

This property can be used as the source for data binding.

Implementation
    public function get appearAsLabel():Boolean
    public function set appearAsLabel(value:Boolean):void
focusOnClearproperty 
focusOnClear:Boolean  [read-write]

Flag indicating if the text field should gain focus after a clear event. The default is true.

Implementation
    public function get focusOnClear():Boolean
    public function set focusOnClear(value:Boolean):void
labelModeproperty 
labelMode:Boolean  [read-write]

Flag that tells internal methods if component is in label mode or edit mode. This gets set in the focus event handlers.

Implementation
    protected function get labelMode():Boolean
    protected function set labelMode(value:Boolean):void
promptproperty 
prompt:String  [read-write]

Indicator string located at the end of the text when labelMode = true. Default value is " (edit)".

This property can be used as the source for data binding.

Implementation
    public function get prompt():String
    public function set prompt(value:String):void
showClearButtonproperty 
showClearButton:Boolean  [read-write]

Flag indicating whether or not to show the clear button for the text field.

This property can be used as the source for data binding.

Implementation
    public function get showClearButton():Boolean
    public function set showClearButton(value:Boolean):void
Event detail
clearevent 
Event object type: flash.events.Event

Triggered when the user clicks the clear button.