|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by any source element that has non-zero length. It is used primarily for relative positioning of new source elements as in the addXXX() methods of JotCodeBlock.
Method Summary | |
void |
addUserData(java.lang.Object key,
java.lang.Object data)
Allows user data to be associated with this JotMarker. |
int |
getEndPosition()
Returns the ending character position of this marker relative to the beginning of the file. |
int |
getStartPosition()
Returns the starting character position of this marker relative to the beginning of the file. |
java.lang.Object |
getUserData(java.lang.Object key)
Retrieves the user data associated with this JotMarker. |
Method Detail |
public int getStartPosition()
public int getEndPosition()
public void addUserData(java.lang.Object key, java.lang.Object data)
null
as the data.key
- an Object which will can be used to identify the datadata
- an Object which a Jot client would like associated with this
JotMarker. If the value is null, then the user data will be removed for
this item.getUserData
public java.lang.Object getUserData(java.lang.Object key)
key
- is the Object which identifies the client data to extract.null
if no
matching data is found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |