venice
Class LoadCommand

java.lang.Object
  |
  +--venice.Command
        |
        +--venice.LoadCommand
Direct Known Subclasses:
LoadFileCommand, LoadURLCommand

public abstract class LoadCommand
extends Command

LoadCommand implements loading of .venice-files which contains both the GXL model and the visualization layout. LoadCommand is an abstract class which can load the file from any InputStream. Subclasses of this command must implement getInputStream() method which opens input stream for needing.

Author:
Hannu Laurila

Fields inherited from class venice.Command
stAppModule
 
Constructor Summary
LoadCommand()
           
 
Method Summary
 void execute()
          This abstract method is overridden in subclasses.
protected abstract  java.io.InputStream getInputStream()
          returns the input stream where to load data from or null to cancel load operation.
 
Methods inherited from class venice.Command
getAppModule, setAppModule
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

LoadCommand

public LoadCommand()
Method Detail

getInputStream

protected abstract java.io.InputStream getInputStream()
returns the input stream where to load data from or null to cancel load operation. Likely consults user to find the stream.

execute

public void execute()
Description copied from class: Command
This abstract method is overridden in subclasses. The overridden version does whatever the Command is supposed to do.

Users of these subclasses can rely on the Command interface, and just call execute() when they want the given subclass to perform an operation.

Overrides:
execute in class Command