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