|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ximpleware.BookMark
public class BookMark
Bookmark is a single instance of a node position. You can save the cursor's position into a bookMark instance You can also point the cursor to the node position of previously saved bookMark instance.
Constructor Summary | |
---|---|
BookMark()
Constructor for BookMark Take no argument |
|
BookMark(VTDNav vn)
BookMark constructor with an instance of vn as input |
Method Summary | |
---|---|
void |
bind(VTDNav vn)
bind a BookMark object to a VTDNav object the cursor position is set to an invalid state |
boolean |
deepEquals(BookMark bm2)
|
boolean |
equals(BookMark bm2)
|
boolean |
equals(java.lang.Object obj)
|
VTDNav |
getNav()
This method returns the embedded VTDNav Object |
int |
hashCode()
|
boolean |
recordCursorPosition()
Record cursor position of the VTDNav object as embedded in the bookmark |
boolean |
recordCursorPosition(VTDNav vn)
Record the cursor position This method is implemented to be lenient on loading in that it can load nodes from any VTDNav object if vn is null, return false |
boolean |
setCursorPosition()
Set the cursor position of VTDNav object corresponding to the internal reference position of the embedded VTDNav object |
boolean |
setCursorPosition(VTDNav vn)
set cursor position This method can only set the cursor position of an VTDNav object identical to its internal copy |
void |
unbind()
separate a bookMark object apart from its embedded VTDNav instance |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BookMark()
public BookMark(VTDNav vn)
vn
- Method Detail |
---|
public void bind(VTDNav vn)
vn
- public final boolean deepEquals(BookMark bm2)
public final boolean equals(BookMark bm2)
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public VTDNav getNav()
public final int hashCode()
hashCode
in class java.lang.Object
public boolean recordCursorPosition()
public boolean recordCursorPosition(VTDNav vn)
vn
-
public boolean setCursorPosition()
public boolean setCursorPosition(VTDNav vn)
vn
-
public void unbind()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |