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

Fields inherited from class uci.gef.Cmd
_args, HAS_ICON, NO_ICON
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Constructor Summary
CmdOpenPGML()
           
 
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
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdOpenPGML

public CmdOpenPGML()
Method Detail

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