uci.gef
Class CmdOpen
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--uci.gef.Cmd
|
+--uci.gef.CmdOpen
- public class CmdOpen
- 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
|
Constructor Summary |
CmdOpen()
|
CmdOpen(String filterPattern)
Only allow the user to select files that match the fiven
filename pattern. |
|
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 |
CmdOpen
public CmdOpen()
CmdOpen
public CmdOpen(String filterPattern)
- Only allow the user to select files that match the fiven
filename pattern. Needs-More-Work: This is not used yet.
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