TextFieldUtil
Kind of class: | class |
---|---|
Inherits from: | none |
Version: | 08/02/07 |
Author: | Aaron Clinger, Mike Creighton |
Classpath: | org.casalib.util.TextFieldUtil |
File last modified: | Monday, 01 December 2008, 13:34:40 |
Summary
Class methods
- hasOverFlow (target_txt:Object) : Boolean
- Determines if textfield has more text than can be displayed at once.
- removeOverFlow (target_txt:Object, omissionIndicator:String) : String
- Removes text overflow on a plain text textfield with the option of an ommission indicator.
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.casalib.textfield.CoreTextField to check for text overflow.
Returns:
- Returns
true
if textfield has overflow text; otherwisefalse
.
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.casalib.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 (
""
).