Package | feathers.utils.text |
Class | public class TextInputRestrict |
Inheritance | TextInputRestrict Object |
restrict
property on
flash.text.TextField
.
See also
Property | Defined By | ||
---|---|---|---|
restrict : String
Indicates the set of characters that a user can input. | TextInputRestrict |
Method | Defined By | ||
---|---|---|---|
TextInputRestrict(restrict:String = null)
Constructor. | TextInputRestrict | ||
filterText(value:String):String
Accepts a string of characters and filters out characters that are
not allowed. | TextInputRestrict | ||
isCharacterAllowed(charCode:int):Boolean
Accepts a character code and determines if it is allowed or not. | TextInputRestrict |
restrict | property |
restrict:String
Indicates the set of characters that a user can input.
In the following example, the text is restricted to numbers:
object.restrict = "0-9";
The default value is null
.
public function get restrict():String
public function set restrict(value:String):void
See also
TextInputRestrict | () | Constructor |
public function TextInputRestrict(restrict:String = null)
Constructor.
Parametersrestrict:String (default = null )
|
filterText | () | method |
public function filterText(value:String):String
Accepts a string of characters and filters out characters that are not allowed.
Parameters
value:String |
String |
isCharacterAllowed | () | method |
public function isCharacterAllowed(charCode:int):Boolean
Accepts a character code and determines if it is allowed or not.
Parameters
charCode:int |
Boolean |