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 Summary
Fields inherited from class com.inductiveautomation.snap.ui.UIOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new recent file smenu for the given editor pane -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMostRecentDocument
(String aPath) Adds a new document to the list and updates the users preferences.void
Clears most recent documents from preferences.protected SpringsPane
createUI()
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 void
Installs recent files menu under editor pane OpenRecentMenu.protected void
Rebuilds the menu.void
respondUI
(SwingEvent anEvent) Respond to any selection from the RecentFiles menuMethods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, 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.UIOwner
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, 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
-
RMRecentFilesMenu
Creates a new recent file smenu for the given editor pane
-
-
Method Details
-
addMostRecentDocument
Adds a new document to the list and updates the users preferences. -
getMenu
Returns the actual menu. -
rebuildMenu
protected void rebuildMenu()Rebuilds the menu. -
installMenu
protected void installMenu()Installs recent files menu under editor pane OpenRecentMenu. -
getRecentDocuments
Returns the list of the recent documents as a list of strings. -
createUI
Bogus implementation to return an empty panel.- Overrides:
createUI
in classSwingOwner
-
respondUI
Respond to any selection from the RecentFiles menu- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
clearMostRecentDocuments
public void clearMostRecentDocuments()Clears most recent documents from preferences.
-