org.freehep.jas.plugin.datasource
Class FileHandlerDataSource

java.lang.Object
  extended by org.freehep.jas.plugin.datasource.FileHandlerDataSource
All Implemented Interfaces:
DataSource

public class FileHandlerDataSource
extends Object
implements DataSource

Makes a DataSource from a FileHandler

Author:
Tony Johnson

Constructor Summary
FileHandlerDataSource(FileHandler handler)
           
FileHandlerDataSource(FileHandler handler, String name)
           
 
Method Summary
protected  Component addOptions()
           
 String getName()
           
 org.freehep.swing.wizard.WizardPage getWizardPage()
           
protected  void openFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandlerDataSource

public FileHandlerDataSource(FileHandler handler)

FileHandlerDataSource

public FileHandlerDataSource(FileHandler handler,
                             String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface DataSource
Returns:
The name of the data source (as it should appear in the wizard)

getWizardPage

public org.freehep.swing.wizard.WizardPage getWizardPage()
Specified by:
getWizardPage in interface DataSource
Returns:
The wizard page to display if the user selects this data source

openFile

protected void openFile(File file)
                 throws IOException
Throws:
IOException

addOptions

protected Component addOptions()


Copyright © 2013. All Rights Reserved.