|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.editor.factory.JGraphEditorFactoryMethod
com.jgraph.pad.factory.JGraphpadOpenRecentMenu
Menu to open the files stored under JGraphpad.KEY_RECENTFILES in the
editor settings. This implementation is updated once on application start. It
requires its list of entries in the settings to be updated by the respective
file actions, namely open and save.
| Field Summary | |
protected JGraphEditor |
editor
References the enclosing editor. |
static String |
KEY_MENULABEL
Specifies the resource key for the menu label. |
static int |
MAX_DISPLAYLENGTH
Specifies the maximum length of the filename to show. |
static String |
NAME
Defines the default name for factory methods of this kind. |
| Fields inherited from class com.jgraph.editor.factory.JGraphEditorFactoryMethod |
name |
| Constructor Summary | |
JGraphpadOpenRecentMenu(JGraphEditor editor)
Constructs a new factory method for the specified enclosing editor using NAME. |
|
| Method Summary | |
Component |
createInstance(Node configuration)
Constructs a new menu using the entries in the recent files list. |
| Methods inherited from class com.jgraph.editor.factory.JGraphEditorFactoryMethod |
getName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String NAME
public static int MAX_DISPLAYLENGTH
public static String KEY_MENULABEL
openRecentMenu.label.
protected JGraphEditor editor
| Constructor Detail |
public JGraphpadOpenRecentMenu(JGraphEditor editor)
NAME.
editor - The editor that contains the factory method.| Method Detail |
public Component createInstance(Node configuration)
JGraphEditorModel.addFile(String) with the respective filename.
The configuration parameter is currently ignored.
createInstance in class JGraphEditorFactoryMethodconfiguration - The configuration to configure the menu with.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||