venice
Class ImportGXLURLCommand

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

public class ImportGXLURLCommand
extends ImportGXLCommand

Performs loading a GXL model file from an URL. The user is displayed a dialog in which he can select which URL to load. If the user commits to this action, stream to URL is opened.

Author:
Petteri Kamppuri, Hannu Laurila

Inner Class Summary
private  class ImportGXLURLCommand.AskUserURLDialog
          Private class to handle user interaction when the LoadViaHTTPCommand needs to ask the user which URL to load.
 
Field Summary
private  java.lang.String mSuppliedURL
           
 
Fields inherited from class venice.Command
stAppModule
 
Constructor Summary
ImportGXLURLCommand()
          constructs a command which asks user for the URL.
ImportGXLURLCommand(java.lang.String inURL)
          constructs a command which tries loading from given URL.
 
Method Summary
 java.io.InputStream getInputStream()
          Displays a dialog so the user can choose which URL 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

mSuppliedURL

private java.lang.String mSuppliedURL
Constructor Detail

ImportGXLURLCommand

public ImportGXLURLCommand(java.lang.String inURL)
constructs a command which tries loading from given URL.

ImportGXLURLCommand

public ImportGXLURLCommand()
constructs a command which asks user for the URL.
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Displays a dialog so the user can choose which URL to load. If the user wanted to load an URL (he can bail out) a stream to URL is opened and that is returned. If open fails or user cancels, null is returned.
Overrides:
getInputStream in class ImportGXLCommand