Package com.reportmill.editor
Class RMEditorUI
java.lang.Object
com.reportmill.editor.RMEditorUI
- Direct Known Subclasses:
- OWEditorUI,- OWEditorUI,- RBEditorUI
This class contains all of the methods to display and handle RMEditor UI methods.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA Viewport for painting foreground.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanclose()Closes this editor uivoidexportFlash(String aPath) Export as Flash to given path.voidexportFlashHTML(String aPath) Export as Flash inside HTML wrapper to given path.voidExport as PDF to given path.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 intReturns the number of active/visible editors.static RMEditorUIgetEditorUI(RMEditor anEditor) Returns the editor ui for the given editor.static RMEditorReturns the editor in the editor ui window that was most recently activated.static RMEditorUIReturns the editor ui that is the most recently activated.getUI()Returns the Swing UI panel for the editor window.Returns the editor window.Creates a new default editorUI.open()Creates a new editor window from an open panel.Creates a new editor window by opening the document from the given source.openSample(String aTitle) Opens the named sample file from the examples package.voidPreview Applet.voidPreview CSV.voidPreview flash.voidPreview HTML.voidPreview JPG.voidPreview PDF.voidPreview PNG.voidPreview 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.voidHandles changes to the editor's UI controls.voidrevert()Reloads the current editor document from the last saved version.voidRuns 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.voidSaves the current editor document to the given path.voidSets the editor ui's editor.static voidsetMainEditorUI(RMEditorUI anEditorUI) Sets the editor that is most recently used.voidSets the Swing UI panel.voidshowPopupMenu(int x, int y) Runs a popup menu for the given editor at the given location.voidToggles the rulers for this UI.voidCalled when window resizes.booleanwindowShouldClose(boolean doClose) Returns whether this editor's window should close (can return no if doc has unsaved changes).
- 
Constructor Details- 
RMEditorUIpublic RMEditorUI()
 
- 
- 
Method Details- 
getUIReturns the Swing UI panel for the editor window.
- 
setUISets the Swing UI panel.
- 
resetUIpublic void resetUI()Updates the editor's UI.
- 
respondUIHandles changes to the editor's UI controls.
- 
resetpublic void reset()Registers for Ribs reset.
- 
getMainEditorUIReturns the editor ui that is the most recently activated.
- 
getMainEditorReturns the editor in the editor ui window that was most recently activated.
- 
setMainEditorUISets the editor that is most recently used.
- 
getEditorUIReturns the editor ui for the given editor.
- 
getEditorCountpublic static int getEditorCount()Returns the number of active/visible editors.
- 
getEditorReturns the specific editor at the given index from the list of all editors currently in the application.
- 
removeEditorRemove given editor from editors list.
- 
getEditorReturns the editor UI's editor.
- 
setEditorSets the editor ui's editor.
- 
getWindowReturns the editor window.
- 
newDocumentCreates a new default editorUI.
- 
openCreates a new editor window from an open panel.
- 
openCreates a new editor window by opening the document from the given source.
- 
openSampleOpens 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.
- 
saveAsSaves 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.
- 
exportPDFExport as PDF to given path.
- 
exportFlashExport as Flash to given path.
- 
exportFlashHTMLExport 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.
 
-