Package com.reportmill.editor
Class RMEditorUI
- java.lang.Object
- 
- com.reportmill.editor.RMEditorUI
 
- 
- Direct Known Subclasses:
- OWEditorUI,- OWEditorUI,- RBEditorUI
 
 public class RMEditorUI extends java.lang.ObjectThis class contains all of the methods to display and handle RMEditor UI methods.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMEditorUI.EditorViewportA Viewport for painting foreground.
 - 
Constructor SummaryConstructors Constructor Description RMEditorUI()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()Closes this editor uivoidexportFlash(java.lang.String aPath)Export as Flash to given path.voidexportFlashHTML(java.lang.String aPath)Export as Flash inside HTML wrapper to given path.voidexportPDF(java.lang.String aPath)Export as PDF to given path.RMEditorgetEditor()Returns the editor UI's editor.static RMEditorUIgetEditor(int anIndex)Returns the specific editor at the given index from the list of all editors currently in the application.static intgetEditorCount()Returns the number of active/visible editors.static RMEditorUIgetEditorUI(RMEditor anEditor)Returns the editor ui for the given editor.static RMEditorgetMainEditor()Returns the editor in the editor ui window that was most recently activated.static RMEditorUIgetMainEditorUI()Returns the editor ui that is the most recently activated.RJPanelgetUI()Returns the Swing UI panel for the editor window.javax.swing.JFramegetWindow()Returns the editor window.RMEditorUInewDocument()Creates a new default editorUI.RMEditorUIopen()Creates a new editor window from an open panel.RMEditorUIopen(java.lang.Object aSource)Creates a new editor window by opening the document from the given source.RMEditorUIopenSample(java.lang.String aTitle)Opens the named sample file from the examples package.voidpreviewApplet()Preview Applet.voidpreviewCSV()Preview CSV.voidpreviewFlash()Preview flash.voidpreviewHTML()Preview HTML.voidpreviewJPG()Preview JPG.voidpreviewPDF()Preview PDF.voidpreviewPNG()Preview PNG.voidpreviewXML()Preview XML.voidquit()Callled when the app is about to exit to gracefully handle any open documents.static voidremoveEditor(RMEditorUI anEditorUI)Remove given editor from editors list.voidreset()Registers for Ribs reset.voidresetUI()Updates the editor's UI.voidrespondUI(java.lang.Object anObj)Handles changes to the editor's UI controls.voidrevert()Reloads the current editor document from the last saved version.voidrunWelcome()Runs the welcome panel.voidsave()Saves the current editor document, running the save panel if needed.voidsaveAs()Saves the current editor document, running the save panel.voidsaveAs(java.lang.String aPath)Saves the current editor document to the given path.voidsetEditor(RMEditor anEditor)Sets the editor ui's editor.static voidsetMainEditorUI(RMEditorUI anEditorUI)Sets the editor that is most recently used.voidsetUI(RJPanel aPanel)Sets the Swing UI panel.voidshowPopupMenu(int x, int y)Runs a popup menu for the given editor at the given location.voidtoggleRulers()Toggles the rulers for this UI.voidwindowDidResize()Called when window resizes.booleanwindowShouldClose(boolean doClose)Returns whether this editor's window should close (can return no if doc has unsaved changes).
 
- 
- 
- 
Method Detail- 
getUIpublic RJPanel getUI() Returns the Swing UI panel for the editor window.
 - 
setUIpublic void setUI(RJPanel aPanel) Sets the Swing UI panel.
 - 
resetUIpublic void resetUI() Updates the editor's UI.
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Handles changes to the editor's UI controls.
 - 
resetpublic void reset() Registers for Ribs reset.
 - 
getMainEditorUIpublic static RMEditorUI getMainEditorUI() Returns the editor ui that is the most recently activated.
 - 
getMainEditorpublic static RMEditor getMainEditor() Returns the editor in the editor ui window that was most recently activated.
 - 
setMainEditorUIpublic static void setMainEditorUI(RMEditorUI anEditorUI) Sets the editor that is most recently used.
 - 
getEditorUIpublic static RMEditorUI getEditorUI(RMEditor anEditor) Returns the editor ui for the given editor.
 - 
getEditorCountpublic static int getEditorCount() Returns the number of active/visible editors.
 - 
getEditorpublic static RMEditorUI getEditor(int anIndex) Returns the specific editor at the given index from the list of all editors currently in the application.
 - 
removeEditorpublic static void removeEditor(RMEditorUI anEditorUI) Remove given editor from editors list.
 - 
getEditorpublic RMEditor getEditor() Returns the editor UI's editor.
 - 
setEditorpublic void setEditor(RMEditor anEditor) Sets the editor ui's editor.
 - 
getWindowpublic javax.swing.JFrame getWindow() Returns the editor window.
 - 
newDocumentpublic RMEditorUI newDocument() Creates a new default editorUI.
 - 
openpublic RMEditorUI open() Creates a new editor window from an open panel.
 - 
openpublic RMEditorUI open(java.lang.Object aSource) Creates a new editor window by opening the document from the given source.
 - 
openSamplepublic RMEditorUI openSample(java.lang.String aTitle) Opens the named sample file from the examples package.
 - 
savepublic void save() Saves the current editor document, running the save panel if needed.
 - 
saveAspublic void saveAs() Saves the current editor document, running the save panel.
 - 
saveAspublic void saveAs(java.lang.String aPath) Saves the current editor document to the given path.
 - 
revertpublic void revert() Reloads the current editor document from the last saved version.
 - 
closepublic boolean close() Closes this editor ui
 - 
quitpublic void quit() Callled when the app is about to exit to gracefully handle any open documents.
 - 
windowShouldClosepublic boolean windowShouldClose(boolean doClose) Returns whether this editor's window should close (can return no if doc has unsaved changes).
 - 
runWelcomepublic void runWelcome() Runs the welcome panel.
 - 
windowDidResizepublic void windowDidResize() Called when window resizes.
 - 
showPopupMenupublic void showPopupMenu(int x, int y)Runs a popup menu for the given editor at the given location.
 - 
toggleRulerspublic void toggleRulers() Toggles the rulers for this UI.
 - 
exportPDFpublic void exportPDF(java.lang.String aPath) Export as PDF to given path.
 - 
exportFlashpublic void exportFlash(java.lang.String aPath) Export as Flash to given path.
 - 
exportFlashHTMLpublic void exportFlashHTML(java.lang.String aPath) Export as Flash inside HTML wrapper to given path.
 - 
previewPDFpublic void previewPDF() Preview PDF.
 - 
previewFlashpublic void previewFlash() Preview flash.
 - 
previewHTMLpublic void previewHTML() Preview HTML.
 - 
previewCSVpublic void previewCSV() Preview CSV.
 - 
previewJPGpublic void previewJPG() Preview JPG.
 - 
previewPNGpublic void previewPNG() Preview PNG.
 - 
previewXMLpublic void previewXML() Preview XML.
 - 
previewAppletpublic void previewApplet() Preview Applet.
 
- 
 
-