Class RMEditorPaneUtils
java.lang.Object
com.inductiveautomation.rm.editor.RMEditorPaneUtils
Some utility methods for RMEditorPane.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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 intReturns the number of active/visible editor panes.static RMEditorReturns the editor that was most recently activated.static RMEditorPaneReturns the editor pane that is the most recently activated.static RMEditorPaneopenSample(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, String aPath) Save document as PDF to given path.static voidsetMainEditorPane(RMEditorPane anEditorPane) Sets the editor that is most recently used.
- 
Constructor Details- 
RMEditorPaneUtilspublic RMEditorPaneUtils()
 
- 
- 
Method Details- 
getMainEditorPaneReturns the editor pane that is the most recently activated.
- 
setMainEditorPaneSets the editor that is most recently used.
- 
getEditorPaneCountpublic static int getEditorPaneCount()Returns the number of active/visible editor panes.
- 
getEditorPaneReturns the specific editor pane at the given index from the list of all editors currently in the application.
- 
removeEditorPaneRemove given editor from editors list.
- 
getMainEditorReturns the editor that was most recently activated.
- 
connectToDataSourceInstalls a sample data source.
- 
openSampleOpens the named sample file from the examples package.
- 
previewPDFPreview PDF.
- 
generateReportGenerates report from editor.
- 
previewHTMLGenerate report, save as HTML in temp file and open.
- 
previewCSVGenerate report, save as CSV in temp file and open.
- 
previewJPGGenerate report, save as JPG in temp file and open.
- 
previewPNGGenerate report, save as PNG in temp file and open.
- 
previewXLSPreview XLS.
- 
previewRTFPreview RTF.
- 
previewXMLPreview XML.
- 
saveAsPDFSave document as PDF to given path.
 
-