Package com.inductiveautomation.rm.base
Class RMExtras
java.lang.Object
com.inductiveautomation.rm.base.RMExtras
This file is just meant to hold various utility methods that customers have asked for.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumMovie category constant type.static classA movie class.static classA movie role class.static classA movie class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidAn example of adding a static page between all pages (and at the end) to effectively provide a page back when printing front and back.static voidaddToPage(RMDocument aDoc1, RMDocument aDoc2) Adds the contents from second document to the bottom of the first page of first document.static StringBuffergetImageMap(RMShape aShape, StringBuffer aSB) Returns a StringBuffer image map for a given shape.static List<RMExtras.Movie>Returns a list of movies.static voidWrites a movie dataset to file.static voidstatic voidSet PDF password.static voidprintNames(RMShape aShape) Prints name of every shape in a template hierarchy.static voidprintNames(RMTableGroup aTableGroup, RMTable aTable) Prints name of every shape in table group hierarchy.static voidreplaceDatasetKey(RMShape aShape, String aKey1, String aKey2) Replaces any dataset key in template that matches first given dataset key with the second given dataset key.static voidreplaceFormat(RMShape aShape, RMFormat aFormat) Replaces a format.static voidreplaceGroupingKey(RMShape aShape, String aKey1, String aKey2) Replaces any grouping key in the template that matches first given key with the second given key.static voidreplaceSort(RMShape aShape, String aSort1, String aSort2) Replaces any sort in the template that matches first given sort with the second given sort.static voidreplaceText(RMShape aShape, String aString1, String aString2) Iterates over all document (or shape) text and replaces occurrences of the first string with the second.static voidsetTimeZone(RMShape aShape, TimeZone aTimeZone) Sets the time zone for a document.static voidWrites a movie dataset to file.
- 
Constructor Details- 
RMExtraspublic RMExtras()
 
- 
- 
Method Details- 
replaceTextIterates over all document (or shape) text and replaces occurrences of the first string with the second.
- 
replaceDatasetKeyReplaces any dataset key in template that matches first given dataset key with the second given dataset key.
- 
replaceGroupingKeyReplaces any grouping key in the template that matches first given key with the second given key.
- 
replaceSortReplaces any sort in the template that matches first given sort with the second given sort.
- 
replaceFormatReplaces a format.
- 
getImageMapReturns a StringBuffer image map for a given shape.
- 
printNamesPrints name of every shape in a template hierarchy.
- 
printNamesPrints name of every shape in table group hierarchy.
- 
addToPageAdds the contents from second document to the bottom of the first page of first document.
- 
addPageBetweenPagespublic static void addPageBetweenPages()An example of adding a static page between all pages (and at the end) to effectively provide a page back when printing front and back.
- 
setTimeZoneSets the time zone for a document.
- 
passwordReportpublic static void passwordReport()Set PDF password.
- 
getMoviesReturns a list of movies.
- 
writeMoviesDatasetpublic static void writeMoviesDataset()Writes a movie dataset to file.
- 
mainWrites a movie dataset to file.
- 
main2
 
-