public class ChangeMarker
extends ro.sync.ecss.markers.ContentMarker
AuthorPersistentHighlight.PersistentHighlightType
ALL_MARKERS_PI, ATTRIBUTES_MARKER_PI, COMMENT_MARKER_PI_END, COMMENT_MARKER_PI_START, CONTENT, CUSTOM_MARKER_PI_END, CUSTOM_MARKER_PI_START, DATE_FORMAT, DELETE_MARKER_PI, DELETE_MARKER_SPECIAL_PI, DISPLAY_DATE_FORMAT, END_ATTRIBUTE, ID_NAME_ATTRIBUTE, INSERT_MARKER_PI_END, INSERT_MARKER_PI_START, INSERT_MARKER_SPECIAL_PI, OXY_OPTIONS_PI, START_ATTRIBUTE, TRACK_CHANGES_STATE_ATTRIBUTE, TRACK_CHANGES_STATE_ON
AUTHOR_NAME_ATTRIBUTE, COMMENT_ATTRIBUTE, MODIFICATION_TIME
Constructor and Description |
---|
ChangeMarker(AuthorPersistentHighlight.PersistentHighlightType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ChangeMarker |
createChangeMarker(Content content,
AuthorPersistentHighlight.PersistentHighlightType markerType,
int startOffset,
int endOffset)
Create a fixed marker with the info from another marker.
|
static ChangeMarker |
createChangeMarker(Content content,
ro.sync.ecss.markers.MarkerBase marker,
int startOffset,
int endOffset)
Create a fixed marker with the info from another marker.
|
static ChangeMarker |
duplicate(Content content,
ro.sync.ecss.markers.MarkerBase marker)
Create a fixed marker with the info from another marker.
|
getEndMark, getEndOffset, getStartMark, getStartOffset, setEndMark, setStartMark
compareTo, containsOffset, equals, getAuthor, getAuthorComment, getChangeSubType, getClonedProperties, getDescription, getFormattedModificationTime, getModificationTime, getOldValue, getProperties, getSerializationUniqueID, getTimestamp, getType, hashCode, setAuthor, setAuthorComment, setModTime, setProperty, setSerializationUniqueID, toString
public ChangeMarker(AuthorPersistentHighlight.PersistentHighlightType type)
type
- The persistent highlight type,
one of AuthorPersistentHighlight.PersistentHighlightType.CHANGE_DELETE
or
AuthorPersistentHighlight.PersistentHighlightType.CHANGE_INSERT
public static final ChangeMarker createChangeMarker(Content content, ro.sync.ecss.markers.MarkerBase marker, int startOffset, int endOffset) throws javax.swing.text.BadLocationException
content
- The author content.marker
- The original marker.startOffset
- The start offsetendOffset
- The end offsetjavax.swing.text.BadLocationException
- Thrown if it fails to create positions.public static final ChangeMarker createChangeMarker(Content content, AuthorPersistentHighlight.PersistentHighlightType markerType, int startOffset, int endOffset) throws javax.swing.text.BadLocationException
content
- The author content.markerType
- The marker typestartOffset
- The start offsetendOffset
- The end offsetjavax.swing.text.BadLocationException
- Thrown if it fails to create positions.public static final ChangeMarker duplicate(Content content, ro.sync.ecss.markers.MarkerBase marker) throws javax.swing.text.BadLocationException
content
- The author content.marker
- The original marker.javax.swing.text.BadLocationException
- Thrown if it fails to create positions.© Copyright Syncro Soft SRL 2002 - 2014.