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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Viewport for painting foreground. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
Closes this editor uivoid
exportFlash
(String aPath) Export as Flash to given path.void
exportFlashHTML
(String aPath) Export as Flash inside HTML wrapper to given path.void
Export as PDF to given path.Returns the editor UI's editor.static RMEditorUI
getEditor
(int anIndex) Returns the specific editor at the given index from the list of all editors currently in the application.static int
Returns the number of active/visible editors.static RMEditorUI
getEditorUI
(RMEditor anEditor) Returns the editor ui for the given editor.static RMEditor
Returns the editor in the editor ui window that was most recently activated.static RMEditorUI
Returns 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.void
Preview Applet.void
Preview CSV.void
Preview flash.void
Preview HTML.void
Preview JPG.void
Preview PDF.void
Preview PNG.void
Preview XML.void
quit()
Callled when the app is about to exit to gracefully handle any open documents.static void
removeEditor
(RMEditorUI anEditorUI) Remove given editor from editors list.void
reset()
Registers for Ribs reset.void
resetUI()
Updates the editor's UI.void
Handles changes to the editor's UI controls.void
revert()
Reloads the current editor document from the last saved version.void
Runs the welcome panel.void
save()
Saves the current editor document, running the save panel if needed.void
saveAs()
Saves the current editor document, running the save panel.void
Saves the current editor document to the given path.void
Sets the editor ui's editor.static void
setMainEditorUI
(RMEditorUI anEditorUI) Sets the editor that is most recently used.void
Sets the Swing UI panel.void
showPopupMenu
(int x, int y) Runs a popup menu for the given editor at the given location.void
Toggles the rulers for this UI.void
Called when window resizes.boolean
windowShouldClose
(boolean doClose) Returns whether this editor's window should close (can return no if doc has unsaved changes).
-
Constructor Details
-
RMEditorUI
public RMEditorUI()
-
-
Method Details
-
getUI
Returns the Swing UI panel for the editor window. -
setUI
Sets the Swing UI panel. -
resetUI
public void resetUI()Updates the editor's UI. -
respondUI
Handles changes to the editor's UI controls. -
reset
public void reset()Registers for Ribs reset. -
getMainEditorUI
Returns the editor ui that is the most recently activated. -
getMainEditor
Returns the editor in the editor ui window that was most recently activated. -
setMainEditorUI
Sets the editor that is most recently used. -
getEditorUI
Returns the editor ui for the given editor. -
getEditorCount
public static int getEditorCount()Returns the number of active/visible editors. -
getEditor
Returns the specific editor at the given index from the list of all editors currently in the application. -
removeEditor
Remove given editor from editors list. -
getEditor
Returns the editor UI's editor. -
setEditor
Sets the editor ui's editor. -
getWindow
Returns the editor window. -
newDocument
Creates a new default editorUI. -
open
Creates a new editor window from an open panel. -
open
Creates a new editor window by opening the document from the given source. -
openSample
Opens the named sample file from the examples package. -
save
public void save()Saves the current editor document, running the save panel if needed. -
saveAs
public void saveAs()Saves the current editor document, running the save panel. -
saveAs
Saves the current editor document to the given path. -
revert
public void revert()Reloads the current editor document from the last saved version. -
close
public boolean close()Closes this editor ui -
quit
public void quit()Callled when the app is about to exit to gracefully handle any open documents. -
windowShouldClose
public boolean windowShouldClose(boolean doClose) Returns whether this editor's window should close (can return no if doc has unsaved changes). -
runWelcome
public void runWelcome()Runs the welcome panel. -
windowDidResize
public void windowDidResize()Called when window resizes. -
showPopupMenu
public void showPopupMenu(int x, int y) Runs a popup menu for the given editor at the given location. -
toggleRulers
public void toggleRulers()Toggles the rulers for this UI. -
exportPDF
Export as PDF to given path. -
exportFlash
Export as Flash to given path. -
exportFlashHTML
Export as Flash inside HTML wrapper to given path. -
previewPDF
public void previewPDF()Preview PDF. -
previewFlash
public void previewFlash()Preview flash. -
previewHTML
public void previewHTML()Preview HTML. -
previewCSV
public void previewCSV()Preview CSV. -
previewJPG
public void previewJPG()Preview JPG. -
previewPNG
public void previewPNG()Preview PNG. -
previewXML
public void previewXML()Preview XML. -
previewApplet
public void previewApplet()Preview Applet.
-