Class RMRecentFilesMenu
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.editor.RMRecentFilesMenu
This class maintains the list of the recently used files.
 It stores the list in the user's preferences, and maintains the 'recent documents' menu.
- 
Field SummaryFields 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 SummaryConstructorsConstructorDescriptionCreates a new recent file smenu for the given editor pane
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMostRecentDocument(String aPath) Adds a new document to the list and updates the users preferences.voidClears most recent documents from preferences.protected SpringsPanecreateUI()Bogus implementation to return an empty panel.getMenu()Returns the actual menu.Returns the list of the recent documents as a list of strings.protected voidInstalls recent files menu under editor pane OpenRecentMenu.protected voidRebuilds the menu.voidrespondUI(SwingEvent anEvent) Respond to any selection from the RecentFiles menuMethods 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, resetUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
- 
Constructor Details- 
RMRecentFilesMenuCreates a new recent file smenu for the given editor pane
 
- 
- 
Method Details- 
addMostRecentDocumentAdds a new document to the list and updates the users preferences.
- 
getMenuReturns the actual menu.
- 
rebuildMenuprotected void rebuildMenu()Rebuilds the menu.
- 
installMenuprotected void installMenu()Installs recent files menu under editor pane OpenRecentMenu.
- 
getRecentDocumentsReturns the list of the recent documents as a list of strings.
- 
createUIBogus implementation to return an empty panel.- Overrides:
- createUIin class- SwingOwner
 
- 
respondUIRespond to any selection from the RecentFiles menu- Overrides:
- respondUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
clearMostRecentDocumentspublic void clearMostRecentDocuments()Clears most recent documents from preferences.
 
-