Class RMEditorPaneUtils
- java.lang.Object
- 
- com.inductiveautomation.rm.editor.RMEditorPaneUtils
 
- 
 public class RMEditorPaneUtils extends java.lang.ObjectSome utility methods for RMEditorPane.
- 
- 
Constructor SummaryConstructors Constructor Description RMEditorPaneUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconnectToDataSource(RMEditorPane anEditorPane)Installs a sample data source.static RMDocumentgenerateReport(RMEditorPane anEditorPane, boolean doPaginate)Generates report from editor.static RMEditorPanegetEditorPane(int anIndex)Returns the specific editor pane at the given index from the list of all editors currently in the application.static intgetEditorPaneCount()Returns the number of active/visible editor panes.static RMEditorgetMainEditor()Returns the editor that was most recently activated.static RMEditorPanegetMainEditorPane()Returns the editor pane that is the most recently activated.static RMEditorPaneopenSample(java.lang.String aTitle)Opens the named sample file from the examples package.static voidpreviewCSV(RMEditorPane anEditorPane)Generate report, save as CSV in temp file and open.static voidpreviewHTML(RMEditorPane anEditorPane)Generate report, save as HTML in temp file and open.static voidpreviewJPG(RMEditorPane anEditorPane)Generate report, save as JPG in temp file and open.static voidpreviewPDF(RMEditorPane anEditorPane)Preview PDF.static voidpreviewPNG(RMEditorPane anEditorPane)Generate report, save as PNG in temp file and open.static voidpreviewRTF(RMEditorPane anEditorPane)Preview RTF.static voidpreviewXLS(RMEditorPane anEditorPane)Preview XLS.static voidpreviewXML(RMEditorPane anEditorPane)Preview XML.protected static voidremoveEditorPane(RMEditorPane anEditorPane)Remove given editor from editors list.static voidsaveAsPDF(RMEditorPane anEditorPane, java.lang.String aPath)Save document as PDF to given path.static voidsetMainEditorPane(RMEditorPane anEditorPane)Sets the editor that is most recently used.
 
- 
- 
- 
Method Detail- 
getMainEditorPanepublic static RMEditorPane getMainEditorPane() Returns the editor pane that is the most recently activated.
 - 
setMainEditorPanepublic static void setMainEditorPane(RMEditorPane anEditorPane) Sets the editor that is most recently used.
 - 
getEditorPaneCountpublic static int getEditorPaneCount() Returns the number of active/visible editor panes.
 - 
getEditorPanepublic static RMEditorPane getEditorPane(int anIndex) Returns the specific editor pane at the given index from the list of all editors currently in the application.
 - 
removeEditorPaneprotected static void removeEditorPane(RMEditorPane anEditorPane) Remove given editor from editors list.
 - 
getMainEditorpublic static RMEditor getMainEditor() Returns the editor that was most recently activated.
 - 
connectToDataSourcepublic static void connectToDataSource(RMEditorPane anEditorPane) Installs a sample data source.
 - 
openSamplepublic static RMEditorPane openSample(java.lang.String aTitle) Opens the named sample file from the examples package.
 - 
previewPDFpublic static void previewPDF(RMEditorPane anEditorPane) Preview PDF.
 - 
generateReportpublic static RMDocument generateReport(RMEditorPane anEditorPane, boolean doPaginate) Generates report from editor.
 - 
previewHTMLpublic static void previewHTML(RMEditorPane anEditorPane) Generate report, save as HTML in temp file and open.
 - 
previewCSVpublic static void previewCSV(RMEditorPane anEditorPane) Generate report, save as CSV in temp file and open.
 - 
previewJPGpublic static void previewJPG(RMEditorPane anEditorPane) Generate report, save as JPG in temp file and open.
 - 
previewPNGpublic static void previewPNG(RMEditorPane anEditorPane) Generate report, save as PNG in temp file and open.
 - 
previewXLSpublic static void previewXLS(RMEditorPane anEditorPane) Preview XLS.
 - 
previewRTFpublic static void previewRTF(RMEditorPane anEditorPane) Preview RTF.
 - 
previewXMLpublic static void previewXML(RMEditorPane anEditorPane) Preview XML.
 - 
saveAsPDFpublic static void saveAsPDF(RMEditorPane anEditorPane, java.lang.String aPath) Save document as PDF to given path.
 
- 
 
-