TextFieldUtil
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 08/02/07 |
| Author: | Aaron Clinger, Mike Creighton |
| Classpath: | org.casaframework.util.TextFieldUtil |
| File last modified: | Sunday, 19 August 2007, 13:43:36 |
Summary
Class methods
Class methods
hasOverFlow
static function hasOverFlow (target_txt:Object) : Boolean
Determines if textfield has more text than can be displayed at once.
Parameters:
target_txt:
Textfield or org.casaframework.textfield.CoreTextField to check for text overflow.
Returns:
Returns
true if textfield has overflow text; otherwise false.removeOverFlow
static function removeOverFlow (target_txt:Object,
omissionIndicator:String) : String
Removes text overflow on a plain text textfield with the option of an ommission indicator.
Parameters:
target_txt :
Textfield or org.casaframework.textfield.CoreTextField to remove overflow.
omissionIndicator:
[optional] Text indication that an omission has occured; normally
"..."; defaults to no indication.Returns:
Returns the omitted text; if there was no text ommitted function returns a empty String (
"").