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.UIOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
-
-
Constructor Summary
Constructors Constructor Description RMRecentFilesMenu(RMEditorPaneMenuBar bar)
Creates a new recent file smenu for the given editor pane
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMostRecentDocument(java.lang.String aPath)
Adds a new document to the list and updates the users preferences.void
clearMostRecentDocuments()
Clears most recent documents from preferences.protected SpringsPane
createUI()
Bogus implementation to return an empty panel.javax.swing.JMenu
getMenu()
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 void
installMenu()
Installs recent files menu under editor pane OpenRecentMenu.protected void
rebuildMenu()
Rebuilds the menu.void
respondUI(SwingEvent anEvent)
Respond to any selection from the RecentFiles menu-
Methods 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 Detail
-
RMRecentFilesMenu
public RMRecentFilesMenu(RMEditorPaneMenuBar bar)
Creates a new recent file smenu for the given editor pane
-
-
Method Detail
-
addMostRecentDocument
public void addMostRecentDocument(java.lang.String aPath)
Adds a new document to the list and updates the users preferences.
-
getMenu
public javax.swing.JMenu 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
public static java.util.List<java.lang.String> getRecentDocuments()
Returns the list of the recent documents as a list of strings.
-
createUI
protected SpringsPane createUI()
Bogus implementation to return an empty panel.- Overrides:
createUI
in classSwingOwner
-
respondUI
public void respondUI(SwingEvent anEvent)
Respond to any selection from the RecentFiles menu- Overrides:
respondUI
in classUIOwner<SwingEvent,javax.swing.JComponent>
-
clearMostRecentDocuments
public void clearMostRecentDocuments()
Clears most recent documents from preferences.
-
-