mozdev.org

Mozile (xhtml editing in your browser)    

resources:
InsertionPoint

Class InsertionPoint

Object
   |
   +--InsertionPoint

class InsertionPoint

Defined in core.js


Field Summary
 Integer NEXT
          Constant indicating movement toward the end of the document.
 Integer PREVIOUS
          Constant indicating movement toward the beginning of the document.
 
Constructor Summary
InsertionPoint (<Node> node, <Integer> offset)
            An insertion point is the pair of either a) a text node and an offset within the text, or b) an element and an offset within the childNodes list.
 
Method Summary
 Void extend()
           Extends the selection to the IP.
 Node getNode()
           Gets the current node.
 Integer getOffset()
           Gets the offset in the current node.
 Void next()
           Sets the node and offset to the next insertion point.
 Void previous()
           Sets the node and offset to the previous insertion point.
 Void seek(<Integer> direction)
           Sets the node and offset to the next insertion point.
 Object seekNode(direction)
          
 Void select()
           Collapses the selection to the current IP.

Field Detail

NEXT

Integer NEXT

PREVIOUS

Integer PREVIOUS

Constructor Detail

InsertionPoint

InsertionPoint(<Node> node, <Integer> offset)

Method Detail

extend

Void extend()

getNode

Node getNode()

getOffset

Integer getOffset()

next

Void next()

previous

Void previous()

seek

Void seek(<Integer> direction)

seekNode

Object seekNode(direction)

select

Void select()


Documentation generated by JSDoc on Wed Nov 1 15:11:15 2006

The mozile project can be contacted through the mailing list or the member list.
Copyright © 2000-2019. All rights reserved. Terms of Use & Privacy Policy.