public class RMEditorPane extends RMViewerPane
RMViewerPane.DynamicPopupMenu
propertyChangeSupport
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
Constructor and Description |
---|
RMEditorPane() |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Closes this editor pane
|
protected void |
closeInspectors()
Called to close inspectors when window is closed.
|
RMEditorPaneMenuBar |
createMenuBar()
Creates the RMEditorPaneMenuBar for the menu bar.
|
SwingOwner |
createTopToolBar()
Creates the top tool bar.
|
protected RMViewer |
createViewer()
Overridden to return an RMEditor.
|
protected java.awt.Window |
createWindowX()
Creates the window.
|
void |
deepChange(java.beans.PropertyChangeListener aShape,
java.beans.PropertyChangeEvent anEvent)
Catch Editor DeepChanges to register resetUI.
|
protected void |
editorClosed()
Called when editor is closed.
|
AttributesPanel |
getAttributesPanel()
Returns the editor attributes panel (shared).
|
RMDataSource |
getDataSource()
Returns the datasource associated with the editor's document.
|
RMEditor |
getEditor()
Returns the viewer as an editor.
|
java.lang.String |
getFileDescription()
Returns the description for the editor document for use in open/save panels.
|
java.lang.String[] |
getFileExtensions()
Returns extension for editor document.
|
static java.awt.Image |
getFrameIcon()
Returns the icon for the editor window frame.
|
InspectorPanel |
getInspectorPanel()
Returns the editor inspector (shared).
|
static RMEditorPane |
getMainEditorPane()
Returns the editor pane that is the most recently activated.
|
RMEditorPaneMenuBar |
getMenuBar()
Returns the SwingOwner for the menu bar.
|
boolean |
getShowRulers()
Returns whether editor pane shows rulers.
|
RMEditorPaneToolBar |
getTopToolBar()
Override to return as RMEditorPaneToolBar.
|
java.lang.String |
getWindowTitle()
Returns the window title.
|
protected void |
initUI()
Override to configure Window.
|
boolean |
isEditing()
Returns whether editor is really doing editing.
|
void |
loadPopupMenu(javax.swing.JPopupMenu popupMenu)
Returns a popup menu for the editor.
|
RMEditorPane |
newDocument()
Creates a new default editor pane.
|
RMEditorPane |
open()
Creates a new editor window from an open panel.
|
RMEditorPane |
open(java.lang.Object aSource)
Creates a new editor window by opening the document from the given source.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Property change listener to respond to editor chanes.
|
void |
quit()
Called when the app is about to exit to gracefully handle any open documents.
|
protected void |
resetUI()
Updates the editor's UI panels.
|
protected void |
respondUI(SwingEvent anEvent)
Handles changes to the editor's UI controls.
|
void |
revert()
Reloads the current editor document from the last saved version.
|
void |
save()
Saves the current editor document, running the save panel if needed.
|
void |
saveAs()
Saves the current editor document, running the save panel.
|
protected void |
saveImpl()
The real save method.
|
void |
setDataSource(RMDataSource aDataSource)
Sets the datasource for the panel.
|
void |
setDataSource(WebURL aURL,
java.awt.geom.Point2D aPoint)
Sets a datasource from a given URL at a given point (if dragged in).
|
void |
setEditing(boolean aFlag)
Sets whether editor is really doing editing.
|
void |
setShowRulers(boolean aValue)
Sets whether editor pane shows rulers.
|
protected void |
setWindowMaximizedBounds()
Returns the suggested maximized bounds for window.
|
protected void |
windowResized()
Window resized notification - if resized within 10 pts of preferred size, snap to preferred size.
|
addPropertyChangeListener, copy, createBottomToolBar, createUI, getBottomToolBar, getContent, getDocument, getScrollPane, getSourceURL, getViewer, getViewerShape, previewPDF, print, removePropertyChangeListener, setViewer
addKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
public static RMEditorPane getMainEditorPane()
public static java.awt.Image getFrameIcon()
public RMEditor getEditor()
protected RMViewer createViewer()
createViewer
in class RMViewerPane
public RMEditorPaneToolBar getTopToolBar()
getTopToolBar
in class RMViewerPane
public SwingOwner createTopToolBar()
createTopToolBar
in class RMViewerPane
public RMEditorPaneMenuBar getMenuBar()
public RMEditorPaneMenuBar createMenuBar()
public RMDataSource getDataSource()
public void setDataSource(RMDataSource aDataSource)
public void setDataSource(WebURL aURL, java.awt.geom.Point2D aPoint)
public boolean getShowRulers()
public void setShowRulers(boolean aValue)
public boolean isEditing()
public void setEditing(boolean aFlag)
protected void initUI()
initUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
protected void resetUI()
resetUI
in class RMViewerPane
protected void respondUI(SwingEvent anEvent)
respondUI
in class RMViewerPane
protected java.awt.Window createWindowX()
public InspectorPanel getInspectorPanel()
public AttributesPanel getAttributesPanel()
public java.lang.String[] getFileExtensions()
public java.lang.String getFileDescription()
public java.lang.String getWindowTitle()
public RMEditorPane newDocument()
public RMEditorPane open()
public RMEditorPane open(java.lang.Object aSource)
public void saveAs()
public void save()
save
in class RMViewerPane
protected void saveImpl() throws java.lang.Exception
java.lang.Exception
public void revert()
protected void windowResized()
protected void setWindowMaximizedBounds()
public boolean close()
protected void closeInspectors()
protected void editorClosed()
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class RMViewerPane
public void deepChange(java.beans.PropertyChangeListener aShape, java.beans.PropertyChangeEvent anEvent)
public void quit()
public void loadPopupMenu(javax.swing.JPopupMenu popupMenu)
loadPopupMenu
in class RMViewerPane