• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Selection Object

Selection Object

Method Description Parameters
addListener (whatListener ) Registers a Listener object to the Selection object whatListener , an object assigned with an event handler
getBeginIndex() Returns the index of the start of the selection. 
getCaretIndex() Returns the index of the insertion point. 
getEndIndex() Returns the index of the end of the selection. 
getFocus() Returns the name of the currently focused text field. 
removeListener (whatListener ) Removes a Listener object whatListener , an object assigned with an event handler
setFocus(variableName ) Sets the focus of a text field. variableName , the name of the text field
setSelection (beginIndex,endIndex ) Sets the selection in an editable text field. beginIndex , the start index of the selection endIndex , the end index of the selection



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint