Class RMViewerPane
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.viewer.RMViewerPane
- All Implemented Interfaces:
- PropertyChangeListener,- EventListener
- Direct Known Subclasses:
- RMEditorPane
This class is a container for a viewer and tool bars. The default tool bars add document controls (save,
 print, copy), input controls (select, pan, text select, image select), zoom controls and page controls.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classA dynamic popup menu class.
- 
Field SummaryFieldsFields 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
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidcopy()Copies the current viewer document selection.Creates bottom tool bar.Creates the top tool bar.protected JComponentcreateUI()Initializes the UI.protected RMViewerCreates the real viewer for this viewer plus.Returns the bottom controls.Returns the content shape.Returns the RMDocument associated with this viewer.Returns the scroll pane for this viewer plus.protected WebURLReturns the document source.Returns the top controls.Returns the viewer for this viewer pane.Returns the viewer shape.protected voidloadPopupMenu(JPopupMenu popupMenu) Returns a popup menu.voidPreviews the current viewer document as pdf.voidprint()Prints the current viewer document.voidpropertyChange(PropertyChangeEvent anEvent) ResetUI on PropertyChange.voidprotected voidresetUI()Resets UI.protected voidrespondUI(SwingEvent anEvent) Respond to UI controls.voidsave()Saves the current viewer document.protected voidSets the viewer for this viewer pane.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, setWindowVisibleMethods 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, 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
- 
Field Details- 
propertyChangeSupport
 
- 
- 
Constructor Details- 
RMViewerPanepublic RMViewerPane()
 
- 
- 
Method Details- 
createUIInitializes the UI.- Overrides:
- createUIin class- SwingOwner
 
- 
getViewerReturns the viewer for this viewer pane.
- 
setViewerSets the viewer for this viewer pane.
- 
createViewerCreates the real viewer for this viewer plus.
- 
getScrollPaneReturns the scroll pane for this viewer plus.
- 
getViewerShapeReturns the viewer shape.
- 
getContentReturns the content shape.
- 
getDocumentReturns the RMDocument associated with this viewer.
- 
getSourceURLReturns the document source.
- 
getTopToolBarReturns the top controls.
- 
createTopToolBarCreates the top tool bar.
- 
getBottomToolBarReturns the bottom controls.
- 
createBottomToolBarCreates bottom tool bar.
- 
savepublic void save()Saves the current viewer document.
- 
printpublic void print()Prints the current viewer document.Changed in 7.8.0 to catch exception now thrown by getViewer.print 
- 
copypublic void copy()Copies the current viewer document selection.
- 
previewPDFpublic void previewPDF()Previews the current viewer document as pdf.
- 
resetUIprotected void resetUI()Resets UI.- Overrides:
- resetUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
respondUIRespond to UI controls.- Overrides:
- respondUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
propertyChangeResetUI on PropertyChange.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
loadPopupMenuReturns a popup menu.
- 
addPropertyChangeListener
- 
removePropertyChangeListener
 
-