uci.gef
Class CmdOpenPGML
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--uci.gef.Cmd
|
+--uci.gef.CmdOpenPGML
- public class CmdOpenPGML
- extends Cmd
- implements FilenameFilter
Cmd to Load a previously saved document document. The loaded
editor is displayed in a new JGraphFrame.
- See Also:
CmdSave, Serialized Form
|
Method Summary |
boolean |
accept(File dir,
String name)
Only let the user select files that match the filter. |
void |
doIt()
|
void |
undoIt()
|
| Methods inherited from class uci.gef.Cmd |
about,
actionPerformed,
cmdAtIndex,
containsArg,
getArg,
getArg,
getName,
register,
registeredCmds,
setArg,
setName,
shouldBeEnabled,
updateEnabled |
CmdOpenPGML
public CmdOpenPGML()
doIt
public void doIt()
- Overrides:
- doIt in class Cmd
accept
public boolean accept(File dir,
String name)
- Only let the user select files that match the filter. This does
not seem to be called under JDK 1.0.2 on solaris. I have not
finished this method, it currently accepts all filenames.
Needs-More-Work: The source code for this function is duplicated
in CmdSave#accept.
- Specified by:
- accept in interface FilenameFilter
undoIt
public void undoIt()
- Overrides:
- undoIt in class Cmd