Class RMEditorPane
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
- 
- com.inductiveautomation.snap.swing.SwingOwner
- 
- com.inductiveautomation.rm.viewer.RMViewerPane
- 
- com.inductiveautomation.rm.editor.RMEditorPane
 
 
 
 
- 
- All Implemented Interfaces:
- java.beans.PropertyChangeListener,- java.util.EventListener
 
 public class RMEditorPane extends RMViewerPane This class is a container for an RMEditor in an enclosing scroll pane with tool bars for editing.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.viewer.RMViewerPaneRMViewerPane.DynamicPopupMenu
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.viewer.RMViewerPanepropertyChangeSupport
 - 
Fields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMEditorPane()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()Closes this editor paneprotected voidcloseInspectors()Called to close inspectors when window is closed.RMEditorPaneMenuBarcreateMenuBar()Creates the RMEditorPaneMenuBar for the menu bar.SwingOwnercreateTopToolBar()Creates the top tool bar.protected RMViewercreateViewer()Overridden to return an RMEditor.protected java.awt.WindowcreateWindowX()Creates the window.voiddeepChange(java.beans.PropertyChangeListener aShape, java.beans.PropertyChangeEvent anEvent)Catch Editor DeepChanges to register resetUI.protected voideditorClosed()Called when editor is closed.AttributesPanelgetAttributesPanel()Returns the editor attributes panel (shared).RMDataSourcegetDataSource()Returns the datasource associated with the editor's document.RMEditorgetEditor()Returns the viewer as an editor.java.lang.StringgetFileDescription()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.ImagegetFrameIcon()Returns the icon for the editor window frame.InspectorPanelgetInspectorPanel()Returns the editor inspector (shared).static RMEditorPanegetMainEditorPane()Returns the editor pane that is the most recently activated.RMEditorPaneMenuBargetMenuBar()Returns the SwingOwner for the menu bar.booleangetShowRulers()Returns whether editor pane shows rulers.RMEditorPaneToolBargetTopToolBar()Override to return as RMEditorPaneToolBar.java.lang.StringgetWindowTitle()Returns the window title.protected voidinitUI()Override to configure Window.booleanisEditing()Returns whether editor is really doing editing.voidloadPopupMenu(javax.swing.JPopupMenu popupMenu)Returns a popup menu for the editor.RMEditorPanenewDocument()Creates a new default editor pane.RMEditorPaneopen()Creates a new editor window from an open panel.RMEditorPaneopen(java.lang.Object aSource)Creates a new editor window by opening the document from the given source.voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Property change listener to respond to editor chanes.voidquit()Called when the app is about to exit to gracefully handle any open documents.protected voidresetUI()Updates the editor's UI panels.protected voidrespondUI(SwingEvent anEvent)Handles changes to the editor's UI controls.voidrevert()Reloads the current editor document from the last saved version.voidsave()Saves the current editor document, running the save panel if needed.voidsaveAs()Saves the current editor document, running the save panel.protected voidsaveImpl()The real save method.voidsetDataSource(RMDataSource aDataSource)Sets the datasource for the panel.voidsetDataSource(WebURL aurl, java.awt.geom.Point2D aPoint)Sets a datasource from a given URL at a given point (if dragged in).voidsetEditing(boolean aFlag)Sets whether editor is really doing editing.voidsetShowRulers(boolean aValue)Sets whether editor pane shows rulers.protected voidsetWindowMaximizedBounds()Returns the suggested maximized bounds for window.protected voidwindowResized()Window resized notification - if resized within 10 pts of preferred size, snap to preferred size.- 
Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerPaneaddPropertyChangeListener, copy, createBottomToolBar, createUI, getBottomToolBar, getContent, getDocument, getScrollPane, getSourceURL, getViewer, getViewerShape, previewPDF, print, removePropertyChangeListener, setViewer
 - 
Methods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
 - 
Methods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, 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
 
- 
 
- 
- 
- 
Method Detail- 
getMainEditorPanepublic static RMEditorPane getMainEditorPane() Returns the editor pane that is the most recently activated.
 - 
getFrameIconpublic static java.awt.Image getFrameIcon() Returns the icon for the editor window frame.
 - 
getEditorpublic RMEditor getEditor() Returns the viewer as an editor.
 - 
createViewerprotected RMViewer createViewer() Overridden to return an RMEditor.- Overrides:
- createViewerin class- RMViewerPane
 
 - 
getTopToolBarpublic RMEditorPaneToolBar getTopToolBar() Override to return as RMEditorPaneToolBar.- Overrides:
- getTopToolBarin class- RMViewerPane
 
 - 
createTopToolBarpublic SwingOwner createTopToolBar() Creates the top tool bar.- Overrides:
- createTopToolBarin class- RMViewerPane
 
 - 
getMenuBarpublic RMEditorPaneMenuBar getMenuBar() Returns the SwingOwner for the menu bar.
 - 
createMenuBarpublic RMEditorPaneMenuBar createMenuBar() Creates the RMEditorPaneMenuBar for the menu bar.
 - 
getDataSourcepublic RMDataSource getDataSource() Returns the datasource associated with the editor's document.
 - 
setDataSourcepublic void setDataSource(RMDataSource aDataSource) Sets the datasource for the panel.
 - 
setDataSourcepublic void setDataSource(WebURL aurl, java.awt.geom.Point2D aPoint) Sets a datasource from a given URL at a given point (if dragged in).
 - 
getShowRulerspublic boolean getShowRulers() Returns whether editor pane shows rulers.
 - 
setShowRulerspublic void setShowRulers(boolean aValue) Sets whether editor pane shows rulers.
 - 
isEditingpublic boolean isEditing() Returns whether editor is really doing editing.
 - 
setEditingpublic void setEditing(boolean aFlag) Sets whether editor is really doing editing.
 - 
initUIprotected void initUI() Override to configure Window.- Overrides:
- initUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
resetUIprotected void resetUI() Updates the editor's UI panels.- Overrides:
- resetUIin class- RMViewerPane
 
 - 
respondUIprotected void respondUI(SwingEvent anEvent) Handles changes to the editor's UI controls.- Overrides:
- respondUIin class- RMViewerPane
 
 - 
createWindowXprotected java.awt.Window createWindowX() Creates the window.
 - 
getInspectorPanelpublic InspectorPanel getInspectorPanel() Returns the editor inspector (shared).
 - 
getAttributesPanelpublic AttributesPanel getAttributesPanel() Returns the editor attributes panel (shared).
 - 
getFileExtensionspublic java.lang.String[] getFileExtensions() Returns extension for editor document.
 - 
getFileDescriptionpublic java.lang.String getFileDescription() Returns the description for the editor document for use in open/save panels.
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the window title.
 - 
newDocumentpublic RMEditorPane newDocument() Creates a new default editor pane.
 - 
openpublic RMEditorPane open() Creates a new editor window from an open panel.
 - 
openpublic RMEditorPane open(java.lang.Object aSource) Creates a new editor window by opening the document from the given source.
 - 
saveAspublic void saveAs() Saves the current editor document, running the save panel.
 - 
savepublic void save() Saves the current editor document, running the save panel if needed.- Overrides:
- savein class- RMViewerPane
 
 - 
saveImplprotected void saveImpl() throws java.lang.ExceptionThe real save method.- Throws:
- java.lang.Exception
 
 - 
revertpublic void revert() Reloads the current editor document from the last saved version.
 - 
windowResizedprotected void windowResized() Window resized notification - if resized within 10 pts of preferred size, snap to preferred size.
 - 
setWindowMaximizedBoundsprotected void setWindowMaximizedBounds() Returns the suggested maximized bounds for window.
 - 
closepublic boolean close() Closes this editor pane
 - 
closeInspectorsprotected void closeInspectors() Called to close inspectors when window is closed.
 - 
editorClosedprotected void editorClosed() Called when editor is closed.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Property change listener to respond to editor chanes.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
- Overrides:
- propertyChangein class- RMViewerPane
 
 - 
deepChangepublic void deepChange(java.beans.PropertyChangeListener aShape, java.beans.PropertyChangeEvent anEvent)Catch Editor DeepChanges to register resetUI.
 - 
quitpublic void quit() Called when the app is about to exit to gracefully handle any open documents.
 - 
loadPopupMenupublic void loadPopupMenu(javax.swing.JPopupMenu popupMenu) Returns a popup menu for the editor.- Overrides:
- loadPopupMenuin class- RMViewerPane
 
 
- 
 
-