Class RMEditorPaneUtils


  • public class RMEditorPaneUtils
    extends java.lang.Object
    Some utility methods for RMEditorPane.
    • Constructor Detail

      • RMEditorPaneUtils

        public RMEditorPaneUtils()
    • Method Detail

      • getMainEditorPane

        public static RMEditorPane getMainEditorPane()
        Returns the editor pane that is the most recently activated.
      • setMainEditorPane

        public static void setMainEditorPane​(RMEditorPane anEditorPane)
        Sets the editor that is most recently used.
      • getEditorPaneCount

        public static int getEditorPaneCount()
        Returns the number of active/visible editor panes.
      • getEditorPane

        public static RMEditorPane getEditorPane​(int anIndex)
        Returns the specific editor pane at the given index from the list of all editors currently in the application.
      • removeEditorPane

        protected static void removeEditorPane​(RMEditorPane anEditorPane)
        Remove given editor from editors list.
      • getMainEditor

        public static RMEditor getMainEditor()
        Returns the editor that was most recently activated.
      • connectToDataSource

        public static void connectToDataSource​(RMEditorPane anEditorPane)
        Installs a sample data source.
      • openSample

        public static RMEditorPane openSample​(java.lang.String aTitle)
        Opens the named sample file from the examples package.
      • previewPDF

        public static void previewPDF​(RMEditorPane anEditorPane)
        Preview PDF.
      • generateReport

        public static RMDocument generateReport​(RMEditorPane anEditorPane,
                                                boolean doPaginate)
        Generates report from editor.
      • previewHTML

        public static void previewHTML​(RMEditorPane anEditorPane)
        Generate report, save as HTML in temp file and open.
      • previewCSV

        public static void previewCSV​(RMEditorPane anEditorPane)
        Generate report, save as CSV in temp file and open.
      • previewJPG

        public static void previewJPG​(RMEditorPane anEditorPane)
        Generate report, save as JPG in temp file and open.
      • previewPNG

        public static void previewPNG​(RMEditorPane anEditorPane)
        Generate report, save as PNG in temp file and open.
      • previewXLS

        public static void previewXLS​(RMEditorPane anEditorPane)
        Preview XLS.
      • previewRTF

        public static void previewRTF​(RMEditorPane anEditorPane)
        Preview RTF.
      • previewXML

        public static void previewXML​(RMEditorPane anEditorPane)
        Preview XML.
      • saveAsPDF

        public static void saveAsPDF​(RMEditorPane anEditorPane,
                                     java.lang.String aPath)
        Save document as PDF to given path.