Class RMExtras

java.lang.Object
com.inductiveautomation.rm.base.RMExtras

public class RMExtras extends Object
This file is just meant to hold various utility methods that customers have asked for.
  • Constructor Details

    • RMExtras

      public RMExtras()
  • Method Details

    • replaceText

      public static void replaceText(RMShape aShape, String aString1, String aString2)
      Iterates over all document (or shape) text and replaces occurrences of the first string with the second.
    • replaceDatasetKey

      public static void replaceDatasetKey(RMShape aShape, String aKey1, String aKey2)
      Replaces any dataset key in template that matches first given dataset key with the second given dataset key.
    • replaceGroupingKey

      public static void replaceGroupingKey(RMShape aShape, String aKey1, String aKey2)
      Replaces any grouping key in the template that matches first given key with the second given key.
    • replaceSort

      public static void replaceSort(RMShape aShape, String aSort1, String aSort2)
      Replaces any sort in the template that matches first given sort with the second given sort.
    • replaceFormat

      public static void replaceFormat(RMShape aShape, RMFormat aFormat)
      Replaces a format.
    • getImageMap

      public static StringBuffer getImageMap(RMShape aShape, StringBuffer aSB)
      Returns a StringBuffer image map for a given shape.
    • printNames

      public static void printNames(RMShape aShape)
      Prints name of every shape in a template hierarchy.
    • printNames

      public static void printNames(RMTableGroup aTableGroup, RMTable aTable)
      Prints name of every shape in table group hierarchy.
    • addToPage

      public static void addToPage(RMDocument aDoc1, RMDocument aDoc2)
      Adds the contents from second document to the bottom of the first page of first document.
    • addPageBetweenPages

      public 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.
    • setTimeZone

      public static void setTimeZone(RMShape aShape, TimeZone aTimeZone)
      Sets the time zone for a document.
    • passwordReport

      public static void passwordReport()
      Set PDF password.
    • getMovies

      public static List<RMExtras.Movie> getMovies()
      Returns a list of movies.
    • writeMoviesDataset

      public static void writeMoviesDataset()
      Writes a movie dataset to file.
    • main

      public static void main(String[] args)
      Writes a movie dataset to file.
    • main2

      public static void main2(String[] args)