public class RMRecentFilesMenu extends SwingOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
Constructor and Description |
---|
RMRecentFilesMenu(RMEditorPaneMenuBar bar)
Creates a new recent file smenu for the given editor pane
|
Modifier and Type | Method and 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
|
addKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
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
public RMRecentFilesMenu(RMEditorPaneMenuBar bar)
public void addMostRecentDocument(java.lang.String aPath)
public javax.swing.JMenu getMenu()
protected void rebuildMenu()
protected void installMenu()
public static java.util.List<java.lang.String> getRecentDocuments()
protected SpringsPane createUI()
createUI
in class SwingOwner
public void respondUI(SwingEvent anEvent)
respondUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
public void clearMostRecentDocuments()