public class RMEditorPaneUtils
extends java.lang.Object
Constructor and Description |
---|
RMEditorPaneUtils() |
Modifier and Type | Method and Description |
---|---|
static 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 |
getEditorPaneCount()
Returns the number of active/visible editor panes.
|
static RMEditor |
getMainEditor()
Returns the editor that was most recently activated.
|
static RMEditorPane |
getMainEditorPane()
Returns the editor pane that is the most recently activated.
|
static RMEditorPane |
openSample(java.lang.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,
java.lang.String aPath)
Save document as PDF to given path.
|
static void |
setMainEditorPane(RMEditorPane anEditorPane)
Sets the editor that is most recently used.
|
public static RMEditorPane getMainEditorPane()
public static void setMainEditorPane(RMEditorPane anEditorPane)
public static int getEditorPaneCount()
public static RMEditorPane getEditorPane(int anIndex)
protected static void removeEditorPane(RMEditorPane anEditorPane)
public static RMEditor getMainEditor()
public static void connectToDataSource(RMEditorPane anEditorPane)
public static RMEditorPane openSample(java.lang.String aTitle)
public static void previewPDF(RMEditorPane anEditorPane)
public static RMDocument generateReport(RMEditorPane anEditorPane, boolean doPaginate)
public static void previewHTML(RMEditorPane anEditorPane)
public static void previewCSV(RMEditorPane anEditorPane)
public static void previewJPG(RMEditorPane anEditorPane)
public static void previewPNG(RMEditorPane anEditorPane)
public static void previewXLS(RMEditorPane anEditorPane)
public static void previewRTF(RMEditorPane anEditorPane)
public static void previewXML(RMEditorPane anEditorPane)
public static void saveAsPDF(RMEditorPane anEditorPane, java.lang.String aPath)