venice
Class ImportGXLFileCommand

java.lang.Object
  |
  +--venice.Command
        |
        +--venice.ImportGXLCommand
              |
              +--venice.ImportGXLFileCommand

public class ImportGXLFileCommand
extends ImportGXLCommand

Performs loading a GXL model file from a file. The user is displayed a dialog in which he can select which file to load.

Author:
Petteri Kamppuri, Hannu Laurila

Field Summary
private  java.lang.String mSuppliedFilename
           
 
Fields inherited from class venice.Command
stAppModule
 
Constructor Summary
ImportGXLFileCommand()
          constructs a command which asks user for file name.
ImportGXLFileCommand(java.lang.String inFilename)
          constructs a command which tries loading from supplied file.
 
Method Summary
protected  java.io.InputStream getInputStream()
          Displays a dialog so the user can choose which file to load.
 
Methods inherited from class venice.ImportGXLCommand
execute
 
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
 

Field Detail

mSuppliedFilename

private java.lang.String mSuppliedFilename
Constructor Detail

ImportGXLFileCommand

public ImportGXLFileCommand(java.lang.String inFilename)
constructs a command which tries loading from supplied file.

ImportGXLFileCommand

public ImportGXLFileCommand()
constructs a command which asks user for file name.
Method Detail

getInputStream

protected java.io.InputStream getInputStream()
Displays a dialog so the user can choose which file to load. Opens file for reading and returns the stream.
Overrides:
getInputStream in class ImportGXLCommand