|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TrackData
TrackData
interface is a base for track data changes feature. It provides you with basic document information for Track Data Changes feature.
Example:Activating Track data changes on the document
if (repEng.getCanTrackData()) {
//obtain trackdata interface
TrackData data = wiDoc.getTrackData();
// enable trackdata
data.setTrackDataMode(ReferenceUpdateMode.USER_DEFINED);
data.setCurrentAsReference();
data.showChanges(true);
//gets style options
TrackDataOptions options = data.getTrackDataOptions();
TrackDataOption option = options.getInsertedOption();
option.getDecoration().getAttributes().setBackground(Color.WHITE);
option.getDecoration().getAttributes().setForeground(Color.GREEN);
//change the font style
Font font = option.getDecoration().getFont();
font.setStyle(StyleType.ITALIC);
font.setName("Courier New");
// sends all options updates to the server
data.update();
wiDoc.refresh();
Reports reps = wiDoc.getReports();
Report rep = reps.getItem(0);
TrackDataInfo info = rep.getTrackDataInfo();
info.showChanges(true);
}
Method Summary | |
---|---|
java.lang.String |
getFormattedReferenceDate()
Gets the reference date used for comparison, formatted with the correct locale. |
java.util.Date |
getReferenceDate()
Gets the date of the reference used for comparison. |
ReferenceUpdateMode |
getTrackDataMode()
Gets the history update mode. |
TrackDataOptions |
getTrackDataOptions()
Gets the TrackDataOptions interface. |
boolean |
isActive()
Checks if Track Data Changes is active on this document or not. |
void |
setCurrentAsReference()
Sets the current document state as the comparison reference for the Track Data Changes feature. |
void |
setTrackDataMode(ReferenceUpdateMode mode)
Switches to track data mode and activates the same if it's not already activated. |
void |
showChanges(boolean enable)
Shows or hides tracked changes on all reports. |
void |
update()
Allows to update the TrackDataOptions by calling the
server. |
Method Detail |
---|
void setCurrentAsReference()
boolean isActive()
true
if Track Data Changes is active. if Track Data Changes is not active, it returns
false
.PropertiesType.IS_TRACK_DATA_ACTIVATED
void setTrackDataMode(ReferenceUpdateMode mode)
mode == ReferenceUpdateMode.DISABLED
, track data changes
feature is disabled.
PropertiesType.IS_TRACK_DATA_ACTIVATED
,
PropertiesType.IS_TRACK_DATA_MODE_AUTO_USED
ReferenceUpdateMode getTrackDataMode()
ReferenceUpdateMode
object.PropertiesType.IS_TRACK_DATA_MODE_AUTO_USED
java.util.Date getReferenceDate()
java.lang.String getFormattedReferenceDate()
TrackDataOptions getTrackDataOptions()
TrackDataOptions
interface.
TrackDataOptions
interfacevoid update()
TrackDataOptions
by calling the
server.
void showChanges(boolean enable)
TrackData
is
not active on this document, this method call is ignored.
enable
- if true
, it shows the changes on all reports, otherwise if false
,
call is ignored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |