Packageorg.openzet.controls
Classpublic class SSNTextInput
InheritanceSSNTextInput Inheritance mx.core.UIComponent

Custom Control to validte SSN, short for Social Security Number. This control also provides visual icon to show valid status.



Public Properties
 PropertyDefined by
  block : Boolean = false
Flag to specify whether to display latter part of SSN as
SSNTextInput
  isValid : Boolean
[read-only] Property that returns whether to SSN is valid.
SSNTextInput
  showIcon : Boolean
Property to specify whether to show icon.
SSNTextInput
  ssn : String
SSN string value.
SSNTextInput
  ssn1 : String
First part of SSN.
SSNTextInput
  ssn2 : String
Second part of SSN.
SSNTextInput
  textInput1 : TextInput
TextInput to display the first part of SSN.
SSNTextInput
  textInput2 : TextInput
TextInput to display the second part of SSN.
SSNTextInput
Public Methods
 MethodDefined by
  
Constructor
SSNTextInput
Events
 EventSummaryDefined by
   Dispatched when text in the TextInput control changes through user input.SSNTextInput
   Dispatched when the user presses the Enter key.SSNTextInput
   Dispatched when SSN is invalid.SSNTextInput
   Dispatched when SSN is valid.SSNTextInput
Property detail
blockproperty
public var block:Boolean = false

Flag to specify whether to display latter part of SSN as

The default value is false.

isValidproperty 
isValid:Boolean  [read-only]

Property that returns whether to SSN is valid.

Implementation
    public function get isValid():Boolean
showIconproperty 
showIcon:Boolean  [read-write]

Property to specify whether to show icon.

The default value is false.

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

Implementation
    public function get showIcon():Boolean
    public function set showIcon(value:Boolean):void
ssnproperty 
ssn:String  [read-write]

SSN string value.

Implementation
    public function get ssn():String
    public function set ssn(value:String):void
ssn1property 
ssn1:String  [read-write]

First part of SSN.

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

Implementation
    public function get ssn1():String
    public function set ssn1(value:String):void
ssn2property 
ssn2:String  [read-write]

Second part of SSN.

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

Implementation
    public function get ssn2():String
    public function set ssn2(value:String):void
textInput1property 
public var textInput1:TextInput

TextInput to display the first part of SSN.

textInput2property 
public var textInput2:TextInput

TextInput to display the second part of SSN.

Constructor detail
SSNTextInput()constructor
public function SSNTextInput()

Constructor

Event detail
changeevent 
Event object type: flash.events.Event

Dispatched when text in the TextInput control changes through user input. This event does not occur if you use data binding or ActionScript code to change the text.

enterevent  
Event object type: mx.events.FlexEvent

Dispatched when the user presses the Enter key.

invalidSSNevent  
Event object type: org.openzet.events.SSNTextInputEvent

Dispatched when SSN is invalid.

validSSNevent  
Event object type: org.openzet.events.SSNTextInputEvent

Dispatched when SSN is valid.