public class RMEditorUI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RMEditorUI.EditorViewport
A Viewport for painting foreground.
|
Constructor and Description |
---|
RMEditorUI() |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Closes this editor ui
|
void |
exportFlash(java.lang.String aPath)
Export as Flash to given path.
|
void |
exportFlashHTML(java.lang.String aPath)
Export as Flash inside HTML wrapper to given path.
|
void |
exportPDF(java.lang.String aPath)
Export as PDF to given path.
|
RMEditor |
getEditor()
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 |
getEditorCount()
Returns the number of active/visible editors.
|
static RMEditorUI |
getEditorUI(RMEditor anEditor)
Returns the editor ui for the given editor.
|
static RMEditor |
getMainEditor()
Returns the editor in the editor ui window that was most recently activated.
|
static RMEditorUI |
getMainEditorUI()
Returns the editor ui that is the most recently activated.
|
RJPanel |
getUI()
Returns the Swing UI panel for the editor window.
|
javax.swing.JFrame |
getWindow()
Returns the editor window.
|
RMEditorUI |
newDocument()
Creates a new default editorUI.
|
RMEditorUI |
open()
Creates a new editor window from an open panel.
|
RMEditorUI |
open(java.lang.Object aSource)
Creates a new editor window by opening the document from the given source.
|
RMEditorUI |
openSample(java.lang.String aTitle)
Opens the named sample file from the examples package.
|
void |
previewApplet()
Preview Applet.
|
void |
previewCSV()
Preview CSV.
|
void |
previewFlash()
Preview flash.
|
void |
previewHTML()
Preview HTML.
|
void |
previewJPG()
Preview JPG.
|
void |
previewPDF()
Preview PDF.
|
void |
previewPNG()
Preview PNG.
|
void |
previewXML()
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 |
respondUI(java.lang.Object anObj)
Handles changes to the editor's UI controls.
|
void |
revert()
Reloads the current editor document from the last saved version.
|
void |
runWelcome()
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 |
saveAs(java.lang.String aPath)
Saves the current editor document to the given path.
|
void |
setEditor(RMEditor anEditor)
Sets the editor ui's editor.
|
static void |
setMainEditorUI(RMEditorUI anEditorUI)
Sets the editor that is most recently used.
|
void |
setUI(RJPanel aPanel)
Sets the Swing UI panel.
|
void |
showPopupMenu(int x,
int y)
Runs a popup menu for the given editor at the given location.
|
void |
toggleRulers()
Toggles the rulers for this UI.
|
void |
windowDidResize()
Called when window resizes.
|
boolean |
windowShouldClose(boolean doClose)
Returns whether this editor's window should close (can return no if doc has unsaved changes).
|
public RJPanel getUI()
public void setUI(RJPanel aPanel)
public void resetUI()
public void respondUI(java.lang.Object anObj)
public void reset()
public static RMEditorUI getMainEditorUI()
public static RMEditor getMainEditor()
public static void setMainEditorUI(RMEditorUI anEditorUI)
public static RMEditorUI getEditorUI(RMEditor anEditor)
public static int getEditorCount()
public static RMEditorUI getEditor(int anIndex)
public static void removeEditor(RMEditorUI anEditorUI)
public RMEditor getEditor()
public void setEditor(RMEditor anEditor)
public javax.swing.JFrame getWindow()
public RMEditorUI newDocument()
public RMEditorUI open()
public RMEditorUI open(java.lang.Object aSource)
public RMEditorUI openSample(java.lang.String aTitle)
public void save()
public void saveAs()
public void saveAs(java.lang.String aPath)
public void revert()
public boolean close()
public void quit()
public boolean windowShouldClose(boolean doClose)
public void runWelcome()
public void windowDidResize()
public void showPopupMenu(int x, int y)
public void toggleRulers()
public void exportPDF(java.lang.String aPath)
public void exportFlash(java.lang.String aPath)
public void exportFlashHTML(java.lang.String aPath)
public void previewPDF()
public void previewFlash()
public void previewHTML()
public void previewCSV()
public void previewJPG()
public void previewPNG()
public void previewXML()
public void previewApplet()