org.gswing.components.output.extractor
Class Extractor

java.lang.Object
  extended by org.gswing.components.output.extractor.Extractor
All Implemented Interfaces:
IExporter

public class Extractor
extends Object
implements IExporter

Purpose: Exports the election database to serialise files that can be read by the Java applet.


Constructor Summary
Extractor(IFramework framework, boolean uploadFiles)
          Constructor.
 
Method Summary
 void doExport()
          Kick off the export process.
 void extract()
          Get the election number from the user, get the list of contituencies and get the results for each constituency.
protected static void initialiseLeadership(ListModel regions)
          Set up leadership results for populating later when the constituencies are read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extractor

public Extractor(IFramework framework,
                 boolean uploadFiles)
Constructor.

Parameters:
framework - The main framework reference.
uploadFiles - Should files be uploaded to server?
Method Detail

doExport

public void doExport()
Kick off the export process.

Specified by:
doExport in interface IExporter

extract

public void extract()
Get the election number from the user, get the list of contituencies and get the results for each constituency. Finally create XML file.


initialiseLeadership

protected static void initialiseLeadership(ListModel regions)
Set up leadership results for populating later when the constituencies are read.



Copyright © 2008. All Rights Reserved.