Class RMRecentFilesMenu
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
- 
- com.inductiveautomation.snap.swing.SwingOwner
- 
- com.inductiveautomation.rm.editor.RMRecentFilesMenu
 
 
 
- 
 public class RMRecentFilesMenu extends SwingOwner 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 Summary- 
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 RMRecentFilesMenu(RMEditorPaneMenuBar bar)Creates a new recent file smenu for the given editor pane
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMostRecentDocument(java.lang.String aPath)Adds a new document to the list and updates the users preferences.voidclearMostRecentDocuments()Clears most recent documents from preferences.protected SpringsPanecreateUI()Bogus implementation to return an empty panel.javax.swing.JMenugetMenu()Returns the actual menu.static java.util.List<java.lang.String>getRecentDocuments()Returns the list of the recent documents as a list of strings.protected voidinstallMenu()Installs recent files menu under editor pane OpenRecentMenu.protected voidrebuildMenu()Rebuilds the menu.voidrespondUI(SwingEvent anEvent)Respond to any selection from the RecentFiles menu- 
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, 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 Detail- 
RMRecentFilesMenupublic RMRecentFilesMenu(RMEditorPaneMenuBar bar) Creates a new recent file smenu for the given editor pane
 
- 
 - 
Method Detail- 
addMostRecentDocumentpublic void addMostRecentDocument(java.lang.String aPath) Adds a new document to the list and updates the users preferences.
 - 
getMenupublic javax.swing.JMenu getMenu() Returns the actual menu.
 - 
rebuildMenuprotected void rebuildMenu() Rebuilds the menu.
 - 
installMenuprotected void installMenu() Installs recent files menu under editor pane OpenRecentMenu.
 - 
getRecentDocumentspublic static java.util.List<java.lang.String> getRecentDocuments() Returns the list of the recent documents as a list of strings.
 - 
createUIprotected SpringsPane createUI() Bogus implementation to return an empty panel.- Overrides:
- createUIin class- SwingOwner
 
 - 
respondUIpublic void respondUI(SwingEvent anEvent) Respond to any selection from the RecentFiles menu- Overrides:
- respondUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
clearMostRecentDocumentspublic void clearMostRecentDocuments() Clears most recent documents from preferences.
 
- 
 
-