Class RMEditorPaneUtils
java.lang.Object
com.inductiveautomation.rm.editor.RMEditorPaneUtils
Some utility methods for RMEditorPane.
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
RMEditorPaneUtils
public RMEditorPaneUtils()
-
-
Method Details
-
getMainEditorPane
Returns the editor pane that is the most recently activated. -
setMainEditorPane
Sets the editor that is most recently used. -
getEditorPaneCount
public static int getEditorPaneCount()Returns the number of active/visible editor panes. -
getEditorPane
Returns the specific editor pane at the given index from the list of all editors currently in the application. -
removeEditorPane
Remove given editor from editors list. -
getMainEditor
Returns the editor that was most recently activated. -
connectToDataSource
Installs a sample data source. -
openSample
Opens the named sample file from the examples package. -
previewPDF
Preview PDF. -
generateReport
Generates report from editor. -
previewHTML
Generate report, save as HTML in temp file and open. -
previewCSV
Generate report, save as CSV in temp file and open. -
previewJPG
Generate report, save as JPG in temp file and open. -
previewPNG
Generate report, save as PNG in temp file and open. -
previewXLS
Preview XLS. -
previewRTF
Preview RTF. -
previewXML
Preview XML. -
saveAsPDF
Save document as PDF to given path.
-