A B C D E F G H I K L M N O P R S T U V W X Y

A

ABBREVIATION - Static variable in class org.gswing.components.common.db.DbTable
 
About - Class in org.gswing.gui
Defines the About box.
About() - Constructor for class org.gswing.gui.About
Constructor.
AbstractDbToFile - Class in org.gswing.components.output.exporter
Purpose: Abstract class for writing election data to file.
AbstractDbToFile(IFramework, String, String, boolean) - Constructor for class org.gswing.components.output.exporter.AbstractDbToFile
Constructor.
AbstractMain - Class in org.gswing.components.common
Purpose: Common main class.
AbstractMain() - Constructor for class org.gswing.components.common.AbstractMain
Constructor.
AbstractMainMenu - Class in org.gswing.components.common
Purpose: Abstract class used for creating command line applications that require GUI input.
AbstractMainMenu(String) - Constructor for class org.gswing.components.common.AbstractMainMenu
Set up the Importer.
actionPerformed(ActionEvent) - Method in class org.gswing.components.common.SelectionHandler
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.CandidateSelector
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.CloseConnection
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.DbAccessGui
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.Exit
Close DB connection and exit.
actionPerformed(ActionEvent) - Method in class org.gswing.gui.GuiComponent
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.Help
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.importer.Importer
Display the users main import options.
actionPerformed(ActionEvent) - Method in class org.gswing.gui.MenuComponent
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.MenuGuiComponent
 
actionPerformed(ActionEvent) - Method in class org.gswing.gui.messageviewer.MessageViewer
 
add(Entry) - Method in class org.gswing.components.common.Result
Add an entry to the result.
add(JInternalFrame) - Method in class org.gswing.gui.desktop.Desktop
 
add(JInternalFrame) - Method in interface org.gswing.gui.services.IDesktopManagement
Add a component window to the desktop.
addChildNode(Object) - Method in class org.gswing.utils.xml.XNode
Add a child to this node.
addCloseWinListener() - Method in class org.gswing.components.common.gui.CommonGui
Listen for a window closing event and exit application.
AddElectionGui - Class in org.gswing.gui
Purpose: GUI for inserting election instances into the database.
AddElectionGui() - Constructor for class org.gswing.gui.AddElectionGui
Constructor.
addField(DbField) - Method in class org.gswing.components.common.db.DbTable
Add a field to the table.
addListDataListener(ListDataListener) - Method in class org.gswing.components.common.ResultList
 
addResult(int, String, Result[]) - Method in class org.gswing.components.common.AllResults
Add results to model.
addToOverallResult(Result) - Method in class org.gswing.components.common.AllResults
Add this single constituency result to an overall result.
addUpTotalVotes() - Method in class org.gswing.components.common.OverallResult
Go though each entry to find total number of votes for this election.
AFFILIATION - Static variable in class org.gswing.components.common.DbXmlWriter
XML AFFILIATION tag.
AliasKey - Class in org.gswing.components.input.importer
A two field key object for aliases.
AliasKey(String, String) - Constructor for class org.gswing.components.input.importer.AliasKey
Constructor.
AliasKey(String) - Constructor for class org.gswing.components.input.importer.AliasKey
Constructor.
ALL - Static variable in class org.gswing.components.common.gui.ConstituencyTreeModel
 
AllResults - Class in org.gswing.components.common
Purpose: Stores the results for an entire election.
AllResults(String) - Constructor for class org.gswing.components.common.AllResults
Constructor.
ALREADY_EXISTS - Static variable in interface org.gswing.framework.services.IDbWriteAccess
Result already exists.
APPLET_BACKGROUND - Static variable in class org.gswing.components.common.Misc
The applet background colour.
AppletMain - Class in org.gswing.components.viewer
Purpose: The main applet class that draws the election data to a web page.
AppletMain() - Constructor for class org.gswing.components.viewer.AppletMain
 

B

BACK_HANDLER - Static variable in class org.gswing.components.common.SelectionHandler
 
buttonPanel - Variable in class org.gswing.components.common.gui.ListDisplay
Panel containing the displaye buttons

C

calculateResult(String) - Method in class org.gswing.components.common.Result
Work out the result.
calculateWinner(String) - Method in class org.gswing.components.common.Result
Is this a win, hold or gain.
canBeNull() - Method in class org.gswing.components.input.dbcreator.DbField
Can this field be null?
Candidate - Class in org.gswing.components.common
Purpose: Represents a single candidate standing in an election.
Candidate(String, String, Party) - Constructor for class org.gswing.components.common.Candidate
Constructor.
Candidate(String, String, String) - Constructor for class org.gswing.components.common.Candidate
Constructor.
CANDIDATE_NO - Static variable in class org.gswing.components.common.db.DbTable
 
CANDIDATE_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
CandidateSelector - Class in org.gswing.gui
Dialog for selecting a single candidate from a list candidates from the database.
CandidateSelector.CandidateModel - Class in org.gswing.gui
Models the candidate list.
CandidateSelector.CandidateModel(ArrayList) - Constructor for class org.gswing.gui.CandidateSelector.CandidateModel
Constructor.
centre() - Method in class org.gswing.components.common.gui.CommonDialog
Popup GUI in the centre of the screen.
centre() - Method in class org.gswing.components.common.gui.CommonGui
Popup GUI in the centre of the screen.
cloneEntries() - Method in class org.gswing.components.common.Result
Clone entries vector.
close() - Method in class org.gswing.framework.MessageHandler
When Message Handler is finished with close should be called to clean up resources.
close() - Method in class org.gswing.gui.MenuGuiComponent
Hide the dialogue.
closeConnection() - Method in class org.gswing.components.common.db.DbAccess
Close the database connection.
CloseConnection - Class in org.gswing.gui
Class deals with closing the database connection from the GUI menu option.
CloseConnection() - Constructor for class org.gswing.gui.CloseConnection
Initialise a close connection menu component with a database connection.
closeDbConnection() - Method in class org.gswing.framework.DatabaseManager
 
closeDbConnection() - Method in interface org.gswing.framework.services.IDatabaseManagement
Shutdown database connection.
CommonDialog - Class in org.gswing.components.common.gui
Purpose: Implement functionality common to all GUIs.
CommonDialog(Frame, String, boolean) - Constructor for class org.gswing.components.common.gui.CommonDialog
Constructor.
CommonGui - Class in org.gswing.components.common.gui
Purpose: Implement functionality common to all GUIs.
CommonGui(String) - Constructor for class org.gswing.components.common.gui.CommonGui
Constructor.
CommonGui(String, Dimension) - Constructor for class org.gswing.components.common.gui.CommonGui
Constructor.
compare(Object, Object) - Method in class org.gswing.components.common.Election
Compare elections for sorting.
compareTo(Constituency) - Method in class org.gswing.components.common.Constituency
Compare another constituency to this.
compareTo(Entry) - Method in class org.gswing.components.common.Entry
Compare the number of votes of this entry with another.
compareTo(Object) - Method in class org.gswing.components.input.importer.AliasKey
Compare this with another key.
COMPLETE - Static variable in class org.gswing.components.common.db.DbTable
 
Configuration - Class in org.gswing.components.viewer
Purpose: Not used yet.
Configuration() - Constructor for class org.gswing.components.viewer.Configuration
 
connectionChanged(boolean) - Method in interface org.gswing.framework.services.IDatabaseListener
A change in the database connection has occurred.
connectionChanged(boolean) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
connectionChanged(boolean) - Method in class org.gswing.gui.DbAccessGui
 
connectionChanged(boolean) - Method in class org.gswing.gui.DbMenu
 
connectionChanged(boolean) - Method in class org.gswing.gui.DbUpgrader
 
connectionChanged(boolean) - Method in class org.gswing.gui.InsertCandidate
 
connectionChanged(boolean) - Method in class org.gswing.gui.inserter.Inserter
DB connection changed.
connectionChanged(boolean) - Method in class org.gswing.gui.InsertPartyLeader
 
connectionChanged(boolean) - Method in class org.gswing.gui.MenuComponent
 
connectionChanged(boolean) - Method in class org.gswing.gui.MenuGuiComponent
 
CONST_LABEL - Static variable in class org.gswing.components.common.Misc
constituency label
CONSTITUENCIES_ONLY - Static variable in class org.gswing.components.common.gui.ConstituencyTreeModel
 
Constituency - Class in org.gswing.components.common
Represents a electoral constituency.
Constituency(String, int, char, SimpleConstituency) - Constructor for class org.gswing.components.common.Constituency
Constructor.
CONSTITUENCY - Static variable in class org.gswing.components.common.db.DbTable
 
CONSTITUENCY - Static variable in class org.gswing.components.common.Misc
Constituency election string.
CONSTITUENCY - Static variable in class org.gswing.components.common.Result
Constituency election result type.
CONSTITUENCY_HANDLER - Static variable in class org.gswing.components.common.SelectionHandler
 
CONSTITUENCY_NO - Static variable in class org.gswing.components.common.db.DbTable
 
CONSTITUENCY_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
CONSTITUENCY_TYPE - Static variable in class org.gswing.components.common.db.DbTable
 
ConstituencyEntry - Class in org.gswing.components.common
Purpose: Represents an election constituency result entry.
ConstituencyEntry(Election, Candidate, int) - Constructor for class org.gswing.components.common.ConstituencyEntry
Construcor.
constituencyNo - Variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
ConstituencyNode - Class in org.gswing.components.common.gui
The node of a constituency tree.
ConstituencyNode(Object, char) - Constructor for class org.gswing.components.common.gui.ConstituencyNode
Constructor.
ConstituencyTreeModel - Class in org.gswing.components.common.gui
Models a tree view of constituencies.
ConstituencyTreeModel(IConstituencyBrowsing, char) - Constructor for class org.gswing.components.common.gui.ConstituencyTreeModel
Constructor for simple constituency tree.
ConstituencyTreeModel(IConstituencyBrowsing) - Constructor for class org.gswing.components.common.gui.ConstituencyTreeModel
Tree model for full constituency tree.
ConstituencyTreeModel(IConstituencyBrowsing, int) - Constructor for class org.gswing.components.common.gui.ConstituencyTreeModel
Tree model with a specified mode - ALL, CONSTITUENCIES_ONLY or COUNCILS_ONLY
ConstituencyTreeModel(IConstituencyBrowsing, String) - Constructor for class org.gswing.components.common.gui.ConstituencyTreeModel
Constructor for local results.
containsResult(char) - Method in class org.gswing.components.common.AllResults
Do ant results for this constituency type exist?
containsResult(char) - Method in class org.gswing.components.viewer.ResultsInterface
Do any results for this constituency type exist?
CONTEST - Static variable in class org.gswing.components.common.DbXmlWriter
XML CONTEST tag.
CONTEST_NAME - Static variable in class org.gswing.components.common.DbXmlWriter
XML CONTEST_NAME tag.
COUNCIL - Static variable in class org.gswing.components.common.Misc
Council election string.
COUNCIL - Static variable in class org.gswing.components.common.Result
Regional election result type.
COUNCIL_LABEL - Static variable in class org.gswing.components.common.Misc
council label
COUNCILS_ONLY - Static variable in class org.gswing.components.common.gui.ConstituencyTreeModel
 
createDb() - Method in class org.gswing.components.input.dbcreator.DbCreator
Create database schema.
createDbConnection(String, String, String, String) - Method in class org.gswing.framework.DatabaseManager
 
createDbConnection(String, String, String, String) - Method in interface org.gswing.framework.services.IDatabaseManagement
Create a new connection to the database.
createIndex(DbTable, String) - Method in class org.gswing.components.input.DbWriteAccess
Create index on a table column.
createIndex(DbTable, String) - Method in interface org.gswing.framework.services.IDbWriteAccess
Create index on a table column.
createStatement() - Method in class org.gswing.components.common.db.DbAccess
Create standard statement with a query timeout of 10 seconds.
createTable(DbTable) - Method in class org.gswing.components.input.DbWriteAccess
Create a new table in the database.
createTable(DbTable) - Method in interface org.gswing.framework.services.IDbWriteAccess
Create a new table in the database.
CSV - Static variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
CsvToXml - Class in org.gswing.components.input.importer
Purpose: Converts CSV data files to EML standard XML files.
CsvToXml(IFramework, String) - Constructor for class org.gswing.components.input.importer.CsvToXml
Constructor.

D

DATA - Static variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
DatabaseManager - Class in org.gswing.framework
Manages the connection to the database in the GUI framework.
DatabaseManager(IPropertyManagement) - Constructor for class org.gswing.framework.DatabaseManager
Default constructor.
DATE - Static variable in class org.gswing.components.common.db.DbTable
 
DATE - Static variable in class org.gswing.components.common.DbXmlWriter
XML DATE tag.
DbAccess - Class in org.gswing.components.common.db
Purpose: Creates and maintains a JDBC connection with a database.
DbAccess(String, String, String, String) - Constructor for class org.gswing.components.common.db.DbAccess
Constructor.
DbAccess(String, String, String) - Constructor for class org.gswing.components.common.db.DbAccess
Constructor.
dbAccess - Variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
dbAccessCallback(DbReadAccess) - Method in class org.gswing.components.common.AbstractMain
This method will be called as a result of selecting OK on the DbAccessGui dialogue.
dbAccessCallback(DbReadAccess) - Method in interface org.gswing.components.common.IDbAccessCallback
This is the callback function that the EnterGui calls when the user has selected Ok.
dbAccessCallback(DbReadAccess) - Method in class org.gswing.components.input.DbInserter
Called as a result of selecting OK on the DbAccessGui dialogue.
dbAccessCallback(DbReadAccess) - Method in class org.gswing.components.output.ExporterMain
This is the callback function that the EnterGui calls when the user has selected Ok.
DbAccessGui - Class in org.gswing.components.common.gui
Purpose: Dialogue that displays the database protocol and allows the user to insert a password for that database.
DbAccessGui(IDbAccessCallback) - Constructor for class org.gswing.components.common.gui.DbAccessGui
Constructor.
DbAccessGui - Class in org.gswing.gui
Purpose: Dialogue that displays the database protocol and allows the user to insert a password for that database.
DbAccessGui() - Constructor for class org.gswing.gui.DbAccessGui
Constructor.
DbCreator - Class in org.gswing.components.input.dbcreator
Purpose: Creates the gSwing database schema.
DbCreator(IFramework) - Constructor for class org.gswing.components.input.dbcreator.DbCreator
Constructor.
DbField - Class in org.gswing.components.input.dbcreator
Purpose: Represents a database field.
DbField(String, String, boolean, boolean) - Constructor for class org.gswing.components.input.dbcreator.DbField
Constructor.
DbField(String, String, boolean) - Constructor for class org.gswing.components.input.dbcreator.DbField
Constructor.
DbField(String, String, ForeignKey) - Constructor for class org.gswing.components.input.dbcreator.DbField
Constructor.
DbField(String, String, boolean, ForeignKey) - Constructor for class org.gswing.components.input.dbcreator.DbField
Constructor.
DbField(String, String, boolean, boolean, ForeignKey) - Constructor for class org.gswing.components.input.dbcreator.DbField
Constructor.
DbField(String, String) - Constructor for class org.gswing.components.input.dbcreator.DbField
Constructor.
DbInserter - Class in org.gswing.components.input
Purpose: Creates a EnterGui for the user and waits for input.
DbInserter() - Constructor for class org.gswing.components.input.DbInserter
 
DbMenu - Class in org.gswing.gui
Class represents a menu component that has a database connection but no graphical reresentation.
DbMenu() - Constructor for class org.gswing.gui.DbMenu
 
DbReadAccess - Class in org.gswing.components.common.db
Purpose: A read only connection to the election database.
DbReadAccess(String, String, String, String) - Constructor for class org.gswing.components.common.db.DbReadAccess
Constructor.
DbReadAccess() - Constructor for class org.gswing.components.common.db.DbReadAccess
Constructor that uses the database connection values from the configuration file.
DbTable - Class in org.gswing.components.common.db
Purpose: Represents a database table.
DbTable(String) - Constructor for class org.gswing.components.common.db.DbTable
Constructor.
DbToCsv - Class in org.gswing.components.output.exporter
Purpose: Writes election data from the database to a CSV file.
DbToCsv(IFramework, String, boolean) - Constructor for class org.gswing.components.output.exporter.DbToCsv
Constructor.
DbToXml - Class in org.gswing.components.output.exporter
Purpose: Writes election data from the database to an XML file.
DbToXml(IFramework, String, boolean) - Constructor for class org.gswing.components.output.exporter.DbToXml
Constructor.
DbUpgrader - Class in org.gswing.gui
The GUI's datbase upgrade functionality.
DbUpgrader() - Constructor for class org.gswing.gui.DbUpgrader
 
DbWriteAccess - Class in org.gswing.components.input
Purpose: Provides write access to the database.
DbWriteAccess(String, String, String, String) - Constructor for class org.gswing.components.input.DbWriteAccess
Constructor.
DbXmlWriter - Class in org.gswing.components.common
Purpose: Writes election data to an XML file.
DbXmlWriter(File) - Constructor for class org.gswing.components.common.DbXmlWriter
Constructor.
deleteConstituency(String, char, String) - Method in class org.gswing.components.input.DbWriteAccess
 
deleteConstituency(String, char, String) - Method in interface org.gswing.framework.services.IDbWriteAccess
Delete a constituency from the database.
deRegister(IDatabaseListener) - Method in class org.gswing.framework.DatabaseManager
 
deRegister(IMessageListener) - Method in class org.gswing.framework.MessageHandler
De-register a listener.
deRegister(IPropertyListener) - Method in class org.gswing.framework.PropertyManager
De-register for updates.
deRegister(IDatabaseListener) - Method in interface org.gswing.framework.services.IDatabaseManagement
De-register with the database manager for update database notification messages.
deRegister(IMessageListener) - Method in interface org.gswing.framework.services.IMessageHandling
De-register with the message handler for message updates.
deRegister(IPropertyListener) - Method in interface org.gswing.framework.services.IPropertyManagement
De-register with the property manager for updates.
Desktop - Class in org.gswing.gui.desktop
The main frame in the GUI
Desktop() - Constructor for class org.gswing.gui.desktop.Desktop
Constructor.
DEV_BY_ELEC - Static variable in class org.gswing.components.common.Misc
Devolved by-election string.
DEVOLVED - Static variable in class org.gswing.components.common.Misc
Devolved election string.
display(Dimension) - Method in class org.gswing.components.input.inserter.MainGui
Create this GUI in a particular size and centre it.
displayMainMenu() - Method in class org.gswing.components.common.AbstractMainMenu
Display the users main options.
displayMainMenu(DbReadAccess) - Method in class org.gswing.components.output.ExporterMain
Display the users main options.
displayMenu() - Method in class org.gswing.components.common.AbstractMainMenu
Determines whether to display menu or wait until this thread is woken up.
DisplayPanel - Class in org.gswing.components.common.gui
Perform generic canvas tasks.
DisplayPanel() - Constructor for class org.gswing.components.common.gui.DisplayPanel
Default Constructor.
DisplayPanel(String) - Constructor for class org.gswing.components.common.gui.DisplayPanel
Constructor with named panel title.
DisplayPanel(String, Dimension) - Constructor for class org.gswing.components.common.gui.DisplayPanel
Constructor with named panel title and size.
DOB - Static variable in class org.gswing.components.common.db.DbTable
 
doExport() - Method in class org.gswing.components.output.exporter.AbstractDbToFile
Kick off the export process.
doExport() - Method in class org.gswing.components.output.exporter.ElectionsToXml
 
doExport() - Method in class org.gswing.components.output.exporter.PartiesToXml
 
doExport() - Method in class org.gswing.components.output.extractor.Extractor
Kick off the export process.
doExport() - Method in interface org.gswing.components.output.IExporter
Start export.
doImport(Object[]) - Method in class org.gswing.components.input.importer.XmlToDb
Start importing the XML files into the database.
doubleClick(TreePath, IViewerInvocation) - Method in class org.gswing.components.common.gui.SimpleTree
Respond to a double click on a tree node.

E

Election - Class in org.gswing.components.common
Purpose: Class represents a single election.
Election(int, String, String, String, Date) - Constructor for class org.gswing.components.common.Election
Constructor.
Election(String, String, String, Date) - Constructor for class org.gswing.components.common.Election
Constructor.
Election(int, String, Date) - Constructor for class org.gswing.components.common.Election
Constructor.
Election(String, Date) - Constructor for class org.gswing.components.common.Election
Constructor.
election - Variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
ELECTION_NAME - Static variable in class org.gswing.components.common.DbXmlWriter
XML ELECTION_NAME tag.
ELECTION_NO - Static variable in class org.gswing.components.common.db.DbTable
 
ELECTION_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
ElectionsToXml - Class in org.gswing.components.output.exporter
Export election details to XML.
ElectionsToXml(IFramework, boolean) - Constructor for class org.gswing.components.output.exporter.ElectionsToXml
Constructor.
ELECTORATE - Static variable in class org.gswing.components.common.db.DbTable
 
ELECTORATE_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
elementAt(int) - Method in class org.gswing.components.common.Result
Get the entry at this index.
entries - Variable in class org.gswing.components.common.Result
Holds all result entries.
Entry - Class in org.gswing.components.common
Purpose: Represents an election result entry.
Entry(Election, int) - Constructor for class org.gswing.components.common.Entry
Construcor.
equals(Object) - Method in class org.gswing.components.common.Constituency
Compare another constituency with this.
equals(Object) - Method in class org.gswing.components.input.importer.AliasKey
Test if this is equal to another key.
ERROR - Static variable in class org.gswing.components.common.Misc
Message severity Error.
EVENT - Static variable in class org.gswing.components.common.DbXmlWriter
XML EVENT tag.
executeLengthyTask(Object, String, Object[], BoundedRangeModel) - Method in class org.gswing.gui.desktop.Desktop
 
executeLengthyTask(Object, String, Object[], BoundedRangeModel) - Method in interface org.gswing.gui.services.IDesktopManagement
Execute a method that could take some time.
Exit - Class in org.gswing.gui
Class deals with the closing down of the GUI.
Exit() - Constructor for class org.gswing.gui.Exit
Constructor.
export(Vector<Election>) - Method in class org.gswing.components.output.exporter.AbstractDbToFile
Kick off the export process.
Exporter - Class in org.gswing.gui.exporter
 
Exporter() - Constructor for class org.gswing.gui.exporter.Exporter
Constructor.
ExporterMain - Class in org.gswing.components.output
Purpose: Exports the election database to XML and CSV files.
ExporterMain() - Constructor for class org.gswing.components.output.ExporterMain
 
extract() - Method in class org.gswing.components.output.extractor.Extractor
Get the election number from the user, get the list of contituencies and get the results for each constituency.
Extractor - Class in org.gswing.components.output.extractor
Purpose: Exports the election database to serialise files that can be read by the Java applet.
Extractor(IFramework, boolean) - Constructor for class org.gswing.components.output.extractor.Extractor
Constructor.

F

FAILED - Static variable in interface org.gswing.framework.services.IDbWriteAccess
Unsuccessful write status.
FIRST_NAME - Static variable in class org.gswing.components.common.db.DbTable
 
fixString(String) - Method in class org.gswing.components.common.db.DbReadAccess
Fix string that has illegal characters.
FLOAT - Static variable in class org.gswing.components.common.gui.TextVerifier
 
ForeignKey - Class in org.gswing.components.input.dbcreator
Represents a foreign key in the database.
ForeignKey(String, String) - Constructor for class org.gswing.components.input.dbcreator.ForeignKey
Constructor.
FPTP - Static variable in class org.gswing.components.common.Misc
First past the post electoral system string.
FPTP_STR - Static variable in class org.gswing.components.common.Misc
First past the post electoral system string.
FptpVote - Class in org.gswing.components.common
Purpose: Represents a vote in a First Past the Post election.
FptpVote(int, int, int, int) - Constructor for class org.gswing.components.common.FptpVote
Constructor.
Framework - Class in org.gswing.framework
Manages communication between components and the GUI.
Framework(IMessageHandling, IPropertyManagement, IDesktopManagement, IDatabaseManagement, IServerManagement) - Constructor for class org.gswing.framework.Framework
Constructor.

G

GAIN - Static variable in class org.gswing.components.common.Result
Result gain string.
GEN_BY_ELEC - Static variable in class org.gswing.components.common.Misc
General by-election string.
GENERAL - Static variable in class org.gswing.components.common.Misc
General election string.
get(String) - Method in class org.gswing.framework.PropertyManager
Get the current property values.
get(String) - Method in interface org.gswing.framework.services.IPropertyManagement
Get the current value of a property.
getAbbreviation() - Method in class org.gswing.components.common.Party
Get the party's abbreviation.
getCandidate() - Method in class org.gswing.components.common.ConstituencyEntry
 
getCandidate(int) - Method in class org.gswing.components.common.db.DbReadAccess
Get candidate object in the database matching the candidate no.
getCandidateNo(Candidate) - Method in class org.gswing.components.common.db.DbReadAccess
Get the unique candidate number of a candidate.
getCandidateNo() - Method in class org.gswing.components.common.FptpVote
Get the candidate number for this vote.
getCandidateNo(Candidate) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the unique candidate number of a candidate.
getCandidates() - Method in class org.gswing.components.common.db.DbReadAccess
Get all candidates in the database.
getCandidates() - Method in interface org.gswing.framework.services.IDbReadAccess
Get all candidates in the database.
getChildNode(int) - Method in class org.gswing.utils.xml.XNode
Get the child node at this position.
getColour() - Method in class org.gswing.components.common.Party
Get the party's colour.
getColumnCount() - Method in class org.gswing.components.common.gui.ResultTableModel
Get the number of columns in the table.
getConfiguredLabels() - Static method in class org.gswing.components.input.Misc
Get array of configured region labels from properties.
getConnection() - Method in class org.gswing.components.common.db.DbAccess
Get the JDBC connection to this database.
getConstituencies(Election) - Method in class org.gswing.components.common.db.DbReadAccess
Fetch list of constituencies in an election.
getConstituencies(Election) - Method in interface org.gswing.framework.services.IDbReadAccess
Fetch all constituencies taking part in particular election.
getConstituency(String, String) - Method in class org.gswing.components.common.db.DbReadAccess
Get the unique constituency number for this constituency.
getConstituency(String, char) - Method in class org.gswing.components.common.db.DbReadAccess
Get the constituency for this constituency name and type.
getConstituency(int) - Method in class org.gswing.components.common.db.DbReadAccess
Get the constituency name for this constituency number.
getConstituency() - Method in class org.gswing.components.common.Result
Get the constituency of this result.
getConstituency() - Method in class org.gswing.components.common.ResultKey
 
getConstituency() - Method in class org.gswing.components.common.Vote
Get the contituency identifier of this vote.
getConstituency() - Method in class org.gswing.components.viewer.Configuration
 
getConstituency(String, char) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the constituency for this constituency name and type.
getConstituency(String, String) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the unique constituency number for this constituency.
getConstituencyList(String, char) - Method in class org.gswing.components.common.db.DbReadAccess
Get the list of constituencies for a particular parent.
getConstituencyList(String, char) - Method in interface org.gswing.components.common.gui.IConstituencyBrowsing
Get list of constituencies with this parent name.
getConstituencyList(String) - Method in class org.gswing.components.viewer.ResultsInterface
Get the list of constituencies for this region.
getConstituencyList(String, char) - Method in class org.gswing.components.viewer.ResultsInterface
Get the list of constituencies for this parent.
getConstituencyNo() - Method in class org.gswing.components.common.SimpleConstituency
Get the constituency's unique constituency number.
getCouncilList(String) - Method in class org.gswing.components.viewer.ResultsInterface
Get the list of councils for this region.
getCurrentType() - Method in interface org.gswing.components.common.ISelectionSource
Get the current search level type.
getCurrentType() - Method in class org.gswing.components.input.inserter.MainGui
 
getDatabaseManager() - Method in class org.gswing.framework.Framework
Get access to the desktop manager.
getDatabaseManager() - Method in interface org.gswing.framework.services.IFramework
Get access to the desktop manager.
getDatabaseName() - Method in class org.gswing.components.common.db.DbAccess
Get the name of this database.
getDate() - Method in class org.gswing.components.common.Election
Get the date the election took place.
getDate() - Method in class org.gswing.components.common.ResultKey
 
getDateFromDbString(String) - Static method in class org.gswing.components.common.Misc
Convert database date string to a Java Date.
getDateFromString(String) - Static method in class org.gswing.components.common.Misc
Convert simple date string to a Java Date.
getDateFromString(String) - Static method in class org.gswing.components.input.Misc
Get the Java Date object from a text string.
getDbManager() - Method in class org.gswing.gui.MenuComponent
Get the database manager object.
getDbManager() - Method in class org.gswing.gui.MenuGuiComponent
Get the database manager object.
getDbProtocol() - Static method in class org.gswing.components.common.Misc
Convert system properties into the JDBC protocol.
getDesktopManager() - Method in class org.gswing.framework.Framework
Get access to the desktop manager.
getDesktopManager() - Method in interface org.gswing.framework.services.IFramework
Get the desktop manager.
getDesktopManager() - Method in class org.gswing.gui.GuiComponent
Get the desktop manager object.
getDesktopPane() - Method in class org.gswing.gui.desktop.Desktop
 
getDesktopPane() - Method in interface org.gswing.gui.services.IDesktopManagement
 
getDimension() - Method in class org.gswing.components.common.gui.CommonGui
Get the GUI dimensions.
getDocument() - Method in class org.gswing.utils.xml.XmlReader
Get the XML document object.
getElection(int) - Method in class org.gswing.components.common.db.DbReadAccess
Get the election details for a particular election.
getElection(Date, String) - Method in class org.gswing.components.common.db.DbReadAccess
Get the election details for a particular election.
getElection() - Method in class org.gswing.components.common.Entry
 
getElection() - Method in class org.gswing.components.common.Result
Set the election data for this result.
getElection(int) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the election details for a particular election.
getElectionColour(String) - Static method in class org.gswing.components.common.Misc
Get the colour of a for an election type.
getElectionDates(Constituency) - Method in class org.gswing.components.common.db.DbReadAccess
Get election dates that have taken place in this constituency.
getElectionDates(Constituency) - Method in interface org.gswing.framework.services.IDbReadAccess
Get election dates that have taken place in this constituency.
getElectionNo() - Method in class org.gswing.components.common.Election
Get the unique election number of this election.
getElectionNo() - Method in class org.gswing.components.common.Vote
Get the election number of this vote.
getElections() - Method in class org.gswing.components.common.db.DbReadAccess
Get all elections in the database.
getElections(boolean, char) - Method in class org.gswing.components.common.db.DbReadAccess
Get elections in the database.
getElections(boolean, char) - Method in interface org.gswing.framework.services.IDbReadAccess
Get all elections in the database.
getElections() - Method in interface org.gswing.framework.services.IDbReadAccess
Get all elections in the database.
getElectorate(String, int) - Method in class org.gswing.components.common.db.DbReadAccess
Get the size of the electorate for this contituency at this election.
getElectorate(int) - Method in class org.gswing.components.common.db.DbReadAccess
Get the total size of the electorate for this election.
getElectorate() - Method in class org.gswing.components.common.Result
Get the number of voters eligible to vote in this constituency.
getElectorate(int) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the total size of the electorate for this election.
getElementAt(int) - Method in class org.gswing.components.common.ResultList
Get the elemement at the given index.
getEntries() - Method in class org.gswing.components.common.Result
Get all entries in this result.
getField(int) - Method in class org.gswing.components.common.db.DbTable
Get the field in this element.
getFieldName() - Method in class org.gswing.components.input.dbcreator.ForeignKey
 
getFile() - Method in class org.gswing.utils.xml.XmlReader
Get the XML file object.
getFileName(String) - Method in class org.gswing.components.output.exporter.AbstractDbToFile
Build generic file name with the given extension.
getFirstName() - Method in class org.gswing.components.common.Candidate
Get the candidates first name.
getFirstName(String) - Static method in class org.gswing.components.input.Misc
Get the first name from a candidates fullname.
getFocusedComponent() - Method in class org.gswing.gui.GuiComponent
Get component that has requested focus.
getForeignKey() - Method in class org.gswing.components.input.dbcreator.DbField
Get the foreign key of the field.
getFormattedDate(Date) - Static method in class org.gswing.components.common.Misc
Convert a Java Date into a simple string.
getFormattedDate(Date, String) - Static method in class org.gswing.components.common.Misc
Convert a Java Date into a simple string with the given pattern.
getFramework() - Method in class org.gswing.gui.GuiComponent
Get the framework object.
getFramework() - Method in class org.gswing.gui.MenuComponent
Get the framework object.
getFullName() - Method in class org.gswing.components.common.Candidate
Get the candidates full name.
getFullName(int) - Method in class org.gswing.components.common.Candidate
Get the candidates full name.
getFullName() - Method in class org.gswing.components.common.Party
Get the party's fullname.
getGSwingVersion() - Method in class org.gswing.components.common.AllResults
Get the version of the software version.
getGswingVersion() - Method in class org.gswing.components.viewer.Configuration
 
getGSwingVersion() - Method in class org.gswing.components.viewer.ResultsInterface
Get the version of the software that was stored in the serialised file.
getHome() - Static method in class org.gswing.components.common.Properties
Get the path of the installation directory.
getHomePage() - Method in class org.gswing.components.common.Party
 
getIndex() - Method in class org.gswing.components.common.Result
Set the index of this result in relation to other results of the same constituency.
getIntFromStdInput() - Static method in class org.gswing.components.common.Misc
Get an integer from standard input.
getKey1() - Method in class org.gswing.components.input.importer.AliasKey
 
getKey2() - Method in class org.gswing.components.input.importer.AliasKey
 
getLastCouncilSelection() - Static method in class org.gswing.components.common.SelectionHandler
Get the last region selection.
getLatestDate(Constituency) - Method in class org.gswing.components.common.db.DbReadAccess
Get the election of the latest result for this constituency.
getLatestDate(Constituency) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the election of the latest result for this constituency.
getLatestResult(char, String) - Method in class org.gswing.components.viewer.ResultsInterface
Get the most recent result for this constituency.
getLeaders(Election) - Method in class org.gswing.components.common.db.DbReadAccess
Get list of leaders (as candidates) for this election.
getLeaders(Election, int) - Method in class org.gswing.components.common.db.DbReadAccess
Get list of leaders (as candidates) for this election and constituency.
getLeaders(Election) - Method in interface org.gswing.framework.services.IDbReadAccess
Get list of leaders (as candidates) for this election.
getLeaders(Election, int) - Method in interface org.gswing.framework.services.IDbReadAccess
Get list of leaders (as candidates) for a local election.
getList(char, String) - Method in class org.gswing.components.common.AllResults
Returns a list of constituency names.
getLocal() - Method in class org.gswing.components.viewer.Configuration
 
getLogger() - Method in class org.gswing.components.output.exporter.AbstractDbToFile
 
getMajority() - Method in class org.gswing.components.common.Result
Get the size of the mojority in this result.
getMenuItem() - Method in class org.gswing.gui.MenuComponent
Get the menu item that this component was created from.
getMenuItem() - Method in class org.gswing.gui.MenuGuiComponent
Get the menu item that this component was created from.
getMessageHandler() - Method in class org.gswing.framework.Framework
Get access to the message handler.
getMessageHandler() - Method in interface org.gswing.framework.services.IFramework
Get the message handling services.
getName() - Method in class org.gswing.components.common.db.DbTable
Get the name of this table.
getName() - Method in class org.gswing.components.common.Election
Get the name of this election.
getName() - Method in class org.gswing.components.common.SimpleConstituency
Get the constituency name
getName() - Method in class org.gswing.components.input.dbcreator.DbField
Get this field's name.
getNameFromComboText(String) - Static method in class org.gswing.components.input.Misc
Get the name of candidate from a test string in the format: jimmy smith: AAA.
getNation() - Method in interface org.gswing.components.common.ISelectionSource
Get the state / nation of the results.
getNation() - Method in class org.gswing.components.input.inserter.MainGui
 
getNewDocument() - Method in class org.gswing.utils.xml.XmlWriter
Create a new XML document object.
getNextCandidateNo() - Method in class org.gswing.components.common.db.DbReadAccess
Get the next unique candidate number.
getNextConstituencyNo() - Method in class org.gswing.components.common.db.DbReadAccess
Get the next unique constituency number for this constituency.
getNextResult(Result) - Method in class org.gswing.components.common.db.DbReadAccess
Gets the next result.
getNextResult(Result) - Method in class org.gswing.components.viewer.ResultsInterface
Get the result after this one.
getNextResult(Result) - Method in interface org.gswing.framework.services.IDbReadAccess
Gets the next result.
getNoChildNodes() - Method in class org.gswing.utils.xml.XNode
Get the number of child nodes belonging to this node.
getNoOfCandidates() - Method in class org.gswing.components.common.db.DbReadAccess
Get number of candidates in the database.
getNoOfCandidates() - Method in interface org.gswing.framework.services.IDbReadAccess
Get number of candidates in the database.
getNoOfParties() - Method in class org.gswing.components.common.db.DbReadAccess
Get the number of parties in the database.
getNoOfParties() - Method in interface org.gswing.framework.services.IDbReadAccess
Get the number of parties in the database.
getNumberOfFields() - Method in class org.gswing.components.common.db.DbTable
Get number of fields in the table.
getNumberOfTables() - Method in class org.gswing.components.common.db.DbAccess
Counts number of tables in database.
getOverallResult(Date, int) - Method in class org.gswing.components.common.AllResults
Get the overall result in relation to the current result (before or after).
getOverallResult(Date, int) - Method in class org.gswing.components.viewer.ResultsInterface
Get overall results for this election for this date.
getOverallResults() - Method in class org.gswing.components.common.AllResults
Returns the Hashtable of overall results.
getParentName() - Method in class org.gswing.components.common.Constituency
Get the name of the parent constituency.
getParentNo() - Method in class org.gswing.components.common.Constituency
Get the unique parent identifier for this constituency.
getParentType(char) - Static method in class org.gswing.components.common.Constituency
The parent constituency char.
getParticipant() - Method in class org.gswing.components.common.ConstituencyEntry
Get the contest participant, in this case the candidate's full name.
getParticipant() - Method in class org.gswing.components.common.Entry
Get the particpant of the contest.
getParticipant() - Method in class org.gswing.components.common.ListEntry
Get the contest particapant.
getParties() - Method in class org.gswing.components.common.db.DbReadAccess
Get all party objects in the database.
getParties() - Method in interface org.gswing.framework.services.IDbReadAccess
Get all party objects in the database.
getParty() - Method in class org.gswing.components.common.Candidate
Get the party abbreviation that the candidate belongs to.
getParty() - Method in class org.gswing.components.common.ConstituencyEntry
Get the party object.
getParty(String) - Method in class org.gswing.components.common.db.DbReadAccess
Get the party from the abbreviation.
getParty() - Method in class org.gswing.components.common.Entry
Get the party object.
getParty() - Method in class org.gswing.components.common.ListEntry
Get the party object.
getParty() - Method in class org.gswing.components.common.ListVote
The party that recieved the votes.
getParty(String) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the party name from an abbreviation.
getPartyAbbreviation(String) - Method in class org.gswing.components.common.db.DbReadAccess
Get the abbreviated party name from the full name.
getPartyAbbreviation(String) - Method in interface org.gswing.framework.services.IDbReadAccess
Get the abbreviated party name from the full name.
getPartyColour(String) - Static method in class org.gswing.components.common.Properties
Get the colour of a party from the map.
getPartyFromComboText(String) - Static method in class org.gswing.components.input.Misc
Get the party abbreviation from a test string in the format: "jimmy smith: AAA".
getPartyFullName() - Method in class org.gswing.components.common.Candidate
Get the party that the candidate belongs to.
getPartyName() - Method in class org.gswing.components.common.ConstituencyEntry
Get the party name.
getPartyName() - Method in class org.gswing.components.common.Entry
Get the party name.
getPartyName() - Method in class org.gswing.components.common.ListEntry
Get the candidate details.
getPartyObject() - Method in class org.gswing.components.common.Candidate
Get the party that the candidate belongs to.
getPassword() - Method in class org.gswing.components.common.db.DbAccess
Get the password for this database
getPath() - Method in class org.gswing.components.common.AbstractMain
Get the root path of of the program.
getPath() - Method in class org.gswing.components.common.AbstractMainMenu
Get the home path of gswing.
getPercentage() - Method in class org.gswing.components.common.Entry
Get the percentage of vote.
getPercentage(String) - Method in class org.gswing.components.common.Result
Returns the percentage of the specified party.
getPosition() - Method in class org.gswing.components.common.Entry
Get the position of the candidate in relation to others in the same constituency.
getPreviousResult(Result, ResultKey) - Method in class org.gswing.components.common.db.DbReadAccess
Gets the previous result.
getPreviousResult(Result) - Method in class org.gswing.components.viewer.ResultsInterface
Get the previous result to this one.
getPreviousResult(Result, ResultKey) - Method in interface org.gswing.framework.services.IDbReadAccess
Gets the previous result.
getPreviousWinner(Result) - Method in class org.gswing.components.common.db.DbReadAccess
Gets the previous result by type (eg.
getPropertyManager() - Method in class org.gswing.framework.Framework
Get access to the property manager.
getPropertyManager() - Method in interface org.gswing.framework.services.IFramework
Get the property manager services.
getPropertyValue(String) - Method in class org.gswing.utils.xml.XNode
Get the current value of a property.
getReadAccess() - Method in class org.gswing.framework.DatabaseManager
 
getReadAccess() - Method in interface org.gswing.framework.services.IDatabaseManagement
Get a read access to the database.
getRegion(String) - Method in class org.gswing.components.common.db.DbReadAccess
Get the region that a constituency belongs to.
getRegion() - Method in class org.gswing.components.viewer.Configuration
 
getRegion(String, char) - Method in class org.gswing.components.viewer.ResultsInterface
Get the region of this constituency.
getRegion(String) - Method in class org.gswing.components.viewer.ResultsInterface
Get the region of this council ward.
getRegionList() - Method in class org.gswing.components.common.db.DbReadAccess
Get list of regions in database.
getRegionList() - Method in interface org.gswing.components.common.gui.IConstituencyBrowsing
Get list of regions in this state.
getRegionList() - Method in class org.gswing.components.viewer.ResultsInterface
Get the list of regions in the results.
getRequiredBoxSize() - Method in class org.gswing.components.common.ResultList
This method works out the size the string, in pixels, before it is inserted into a TextField.
getResult(char, String) - Method in class org.gswing.components.common.AllResults
Get the result.
getResult(ResultKey) - Method in class org.gswing.components.common.db.DbReadAccess
Get a result for this constituency on this date.
getResult() - Method in class org.gswing.components.common.Result
Get this result.
getResult(ResultKey) - Method in interface org.gswing.framework.services.IDbReadAccess
Get a result for this constituency on this date.
getResults(char, String) - Method in class org.gswing.components.viewer.ResultsInterface
Get all results for this constituency.
getResults(Result) - Method in class org.gswing.components.viewer.ResultsInterface
Get all results in relation to this result.
getRootPane() - Method in class org.gswing.gui.desktop.Desktop
 
getRootPane() - Method in interface org.gswing.gui.services.IDesktopManagement
 
getRowCount() - Method in class org.gswing.components.common.gui.ResultTableModel
Get the number of rows in the table.
getSearchType() - Method in interface org.gswing.components.common.ISelectionSource
Get the search type.
getSearchType() - Method in class org.gswing.components.input.inserter.MainGui
 
getSeatsWon(String) - Method in class org.gswing.components.common.OverallResult
Get the number of seats won by this party in this overall result.
getSelectedValue() - Method in class org.gswing.components.common.gui.ListDisplay
Gets the selected value.
getSelectedValues() - Method in class org.gswing.components.common.gui.ListDisplay
Gets the selected values.
getSelection() - Method in class org.gswing.components.common.gui.TreeDisplay
Return the selected tree path.
getSelection() - Method in class org.gswing.gui.TreeDisplay
Return the selected tree path.
getServerManager() - Method in class org.gswing.framework.Framework
 
getServerManager() - Method in interface org.gswing.framework.services.IFramework
Get access to the server manager.
getShortYear(Date) - Static method in class org.gswing.components.common.Misc
Remove the first two character of the year.
getSize() - Method in class org.gswing.components.common.ResultList
Get the size of the vector.
getSortedDates() - Method in class org.gswing.components.common.AllResults
Sort the dates for all overall results.
getSortedEntries(int, boolean) - Method in class org.gswing.components.common.gui.PercentagePanel
Sort the entries of the result from highest percentage of votes to lowest.
getSqlStringFromDate(Date) - Static method in class org.gswing.components.input.Misc
Get SQL date string from date.
getState() - Method in class org.gswing.components.common.db.DbReadAccess
Get the top level state name.
getState() - Method in interface org.gswing.components.common.gui.IConstituencyBrowsing
Get the state / nation name.
getState() - Method in class org.gswing.components.viewer.ResultsInterface
Get the name of the state.
getStateName() - Method in class org.gswing.components.common.AllResults
Get the name of the nation state.
getStringFromStdInput() - Static method in class org.gswing.components.common.Misc
Get a String from standard input.
getSurname() - Method in class org.gswing.components.common.Candidate
Get the candidates surname.
getSurname(String) - Static method in class org.gswing.components.input.Misc
Get the surname from a candidates fullname.
getSystem() - Method in class org.gswing.components.common.Election
Get the electoral system of this election.
getSystem() - Method in class org.gswing.components.common.ResultKey
 
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class org.gswing.components.common.gui.ResultPanel.ColorRenderer
Redo the cell renderer for colouring the winning party.
getTableList() - Method in class org.gswing.components.common.db.DbAccess
Get the list of tables in this database.
getTableName() - Method in class org.gswing.components.input.dbcreator.ForeignKey
 
getTagName() - Method in class org.gswing.utils.xml.XNode
Get the nodes tag name.
getText() - Method in class org.gswing.utils.xml.XNode
Get node text.
getTotalVotes() - Method in class org.gswing.components.common.Result
Get total number of votes cast in this constituency.
getTurnout() - Method in class org.gswing.components.common.Result
Gets the percentage of eligible voters who participated in the election.
getType() - Method in class org.gswing.components.common.Constituency
The constituency type - national, regional, council, constituency or local (defined in Result).
getType(String) - Static method in class org.gswing.components.common.Constituency
Convert string type to constituency type.
getType() - Method in class org.gswing.components.common.Election
Get the election type - general, devolved, regional, local etc.
getType() - Method in class org.gswing.components.common.gui.ConstituencyNode
Get the constituency type
getType() - Method in class org.gswing.components.common.Result
What type of result is this - Constituency, regional or overall.
getType() - Method in class org.gswing.components.common.ResultKey
 
getType() - Method in class org.gswing.components.input.dbcreator.DbField
Get this field's type.
getValueAt(int, int) - Method in class org.gswing.components.common.gui.ResultTableModel
Get the value of a cell.
getVotes() - Method in class org.gswing.components.common.Entry
Get the number of votes.
getVotes() - Method in class org.gswing.components.common.Vote
Get the number of votes for this vote.
getVotesCast(Constituency, Election) - Method in class org.gswing.components.common.db.DbReadAccess
Fetch the number of votes cast in a constituency for a particular election.
getVotesCast(Constituency, Election) - Method in interface org.gswing.framework.services.IDbReadAccess
Fetch the number of votes cast in a constituency for a particular election.
getWardList(String) - Method in class org.gswing.components.viewer.ResultsInterface
Get the list of wards for this council.
getWholeYear(Date) - Static method in class org.gswing.components.common.Misc
Get the four digits year from a Date object.
getWinningParty() - Method in class org.gswing.components.common.Result
Get the winning party.
getWriteAccess() - Method in class org.gswing.framework.DatabaseManager
 
getWriteAccess() - Method in interface org.gswing.framework.services.IDatabaseManagement
Get a write access to the database.
getXNode() - Method in class org.gswing.gui.resource.MenuLoader
Get the XNode (root XNode) of the file Not required to be used from outside this file.
GraphPanel - Class in org.gswing.components.common.gui
Purpose: Results displayed as a graph over the whole elections period.
GraphPanel() - Constructor for class org.gswing.components.common.gui.GraphPanel
 
GSWING_VERSION - Static variable in class org.gswing.components.common.Misc
Current gswing version.
GuiComponent - Class in org.gswing.gui
Base class for all gui components.
GuiComponent() - Constructor for class org.gswing.gui.GuiComponent
Default Constructor.
GuiComponent(String) - Constructor for class org.gswing.gui.GuiComponent
Constructor.
GuiComponent(String, boolean, boolean, boolean, boolean) - Constructor for class org.gswing.gui.GuiComponent
Constructor.

H

handleBack() - Method in class org.gswing.components.common.SelectionHandler
Handle the back navigation selection.
hasBeenInitialised() - Method in class org.gswing.framework.DatabaseManager
 
hasBeenInitialised() - Method in interface org.gswing.framework.services.IDatabaseManagement
Has this database been initialised?
hashCode() - Method in class org.gswing.components.input.importer.AliasKey
 
hasIllegalChar(String) - Method in class org.gswing.components.common.db.DbReadAccess
Does this candidate string have illegal characters.
hasPrimaryKey() - Method in class org.gswing.components.common.db.DbTable
Does this table have a primary key?
hasValidConnection() - Method in class org.gswing.components.common.db.DbAccess
Do we have a valid database connection?
Help - Class in org.gswing.gui
Represents the on-line help set.
Help() - Constructor for class org.gswing.gui.Help
Constructor.
HOLD - Static variable in class org.gswing.components.common.Result
Result hold string.

I

IComponent - Interface in org.gswing.framework.services
Defines a basic gswing component.
IConstituencyBrowsing - Interface in org.gswing.components.common.gui
Defines services for constituency browsing.
IDatabaseListener - Interface in org.gswing.framework.services
Components requiring database access will implement this interface.
IDatabaseManagement - Interface in org.gswing.framework.services
Database connection manager.
IDbAccessCallback - Interface in org.gswing.components.common
Contract for classes wishing database access.
IDbReadAccess - Interface in org.gswing.framework.services
Database read access object.
IDbWriteAccess - Interface in org.gswing.framework.services
Database read access object.
IDesktopManagement - Interface in org.gswing.gui.services
Defines the services provided by the desktop manager.
IExporter - Interface in org.gswing.components.output
Exporter contract.
IFramework - Interface in org.gswing.framework.services
Provide GUI services to gswing components.
IGuiComponent - Interface in org.gswing.gui.services
This interface must be implemented by components wishing to be used in the gswing GUI.
IMenuComponent - Interface in org.gswing.gui.services
 
IMessageHandling - Interface in org.gswing.framework.services
Defines the services provided by the message handler.
IMessageListener - Interface in org.gswing.framework.services
Components that wish to recieve messages raised by gswing implement this interface.
Importer - Class in org.gswing.gui.importer
The importer class.
Importer() - Constructor for class org.gswing.gui.importer.Importer
 
incrementPosition() - Method in class org.gswing.components.common.Entry
Add one to the candidates position.
IND - Static variable in class org.gswing.components.common.Party
Independent abbreviation.
IND_CON - Static variable in class org.gswing.components.common.Party
Independent conservative abbreviation.
IND_GRN - Static variable in class org.gswing.components.common.Party
Independent green abbreviation.
IND_LAB - Static variable in class org.gswing.components.common.Party
Independent Labour abbreviation.
INDEPENDENT - Static variable in class org.gswing.components.common.Party
Independent full name string.
independentCheck(String, String) - Static method in class org.gswing.components.common.Party
Independent candidates are unique in that there can be more than one standing in a particular constituency.
INFO - Static variable in class org.gswing.components.common.Misc
Message severity Information
inform(int, Object) - Method in interface org.gswing.components.common.gui.IUpdateInformed
Inform object tha something has changed.
inform(int, Object) - Method in class org.gswing.gui.CandidateSelector
Call back from candidate inserter to request refresh of dialog.
inform(int, Object) - Method in class org.gswing.gui.InsertPartyLeader
Callback method for candidate inserter.
init() - Method in class org.gswing.components.common.AbstractMain
Set up main program.
init(String, Object, int) - Method in class org.gswing.components.common.gui.ListDisplay
Initialise the dialogue.
init(String, Object[], int) - Method in class org.gswing.components.common.gui.ListDisplay
Initialise the dialogue.
init(String, ListModel, int) - Method in class org.gswing.components.input.importer.RegionListDisplay
Add a new button to the ListDisplay.
init() - Method in class org.gswing.components.input.inserter.MainGui
Set up this dialogue box.
init() - Method in class org.gswing.components.viewer.AppletMain
Initialise the applet.
init() - Method in class org.gswing.components.viewer.ResultsInterface
Initialise the results interface.
init() - Method in class org.gswing.gui.About
 
init() - Method in class org.gswing.gui.AddElectionGui
 
init() - Method in class org.gswing.gui.constituencytree.TreeDisplay
Initialise the dialogue.
init() - Method in class org.gswing.gui.DbAccessGui
Set up dialog.
init() - Method in class org.gswing.gui.DbUpgrader
 
init() - Method in class org.gswing.gui.exporter.Exporter
Set up the Exporter.
init() - Method in class org.gswing.gui.importer.Importer
Set up the Importer.
init() - Method in class org.gswing.gui.InsertCandidate
Set up dialogue.
init() - Method in class org.gswing.gui.InsertParty
 
init() - Method in class org.gswing.gui.InsertPartyLeader
Initialise dialog.
init() - Method in class org.gswing.gui.MenuGuiComponent
Initialise the component.
init() - Method in class org.gswing.gui.messageviewer.MessageViewer
 
init() - Method in class org.gswing.gui.TestListener
 
initialise(IMessageHandling) - Static method in class org.gswing.components.common.Misc
Set up message logging capability.
initialise(IFramework) - Method in class org.gswing.framework.ServerManager
Set up manager.
initialise(IFramework) - Method in interface org.gswing.framework.services.IComponent
Initialise the component.
initialise(IFramework) - Method in class org.gswing.gui.DbMenu
 
initialise(IFramework) - Method in class org.gswing.gui.desktop.Desktop
Set up desktop.
initialise(IDesktopManagement) - Method in class org.gswing.gui.GuiComponent
 
initialise(IFramework) - Method in class org.gswing.gui.GuiComponent
 
initialise(JMenuItem) - Method in class org.gswing.gui.MenuComponent
 
initialise(IFramework) - Method in class org.gswing.gui.MenuComponent
 
initialise(IFramework) - Method in class org.gswing.gui.MenuGuiComponent
 
initialise(JMenuItem) - Method in class org.gswing.gui.MenuGuiComponent
 
initialise(IFramework) - Method in class org.gswing.gui.messageviewer.MessageViewer
Set up the message viewer.
initialise(IDesktopManagement) - Method in class org.gswing.gui.messageviewer.MessageViewer
 
initialise(JMenuItem) - Method in class org.gswing.gui.messageviewer.MessageViewer
 
initialise(IDesktopManagement) - Method in interface org.gswing.gui.services.IGuiComponent
Initialise the component.
initialise(JMenuItem) - Method in interface org.gswing.gui.services.IMenuComponent
Initialise the component.
initialiseLeadership(ListModel) - Static method in class org.gswing.components.output.extractor.Extractor
Set up leadership results for populating later when the constituencies are read.
insertCandidate(Candidate) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new Candidate into the database.
insertCandidate(Candidate) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a new Candidate into the database.
InsertCandidate - Class in org.gswing.gui
Dialog for inserting a single candidate into the database.
InsertCandidate() - Constructor for class org.gswing.gui.InsertCandidate
Default constructor.
InsertCandidate(IUpdateInformed, IFramework, int) - Constructor for class org.gswing.gui.InsertCandidate
Constructor for creating the candidate inserter outside the menu action.
insertConstituency(String, char, String) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new constituency into the database.
insertConstituency(String, char, String, boolean) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new constituency into the database.
insertConstituency(String, char, String) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a new constituency into the database.
insertConstituency(String, char, String, boolean) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a new constituency into the database.
insertElection(Election) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new Election into the database.
insertElection(Election) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a new Election into the database.
insertElectorate(Constituency, int, int) - Method in class org.gswing.components.input.DbWriteAccess
 
insertElectorate(Constituency, int, int) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert the electorate size into the database.
Inserter - Class in org.gswing.gui.inserter
Purpose: The main GUI for inserting results into the database.
Inserter(JComponent, IFramework, String, char, String) - Constructor for class org.gswing.gui.inserter.Inserter
Constructor.
insertParty(String, String) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new Party into the database.
insertParty(String, String, URL) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new Party into the database.
insertParty(String, String, URL) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a new Party into the database.
insertParty(String, String) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a new Party into the database.
InsertParty - Class in org.gswing.gui
GUI for inserting/modifying party instances into the database.
InsertParty() - Constructor for class org.gswing.gui.InsertParty
Constructor.
InsertParty(String) - Constructor for class org.gswing.gui.InsertParty
Constructor.
insertPartyLeader(Election, Candidate, Constituency) - Method in class org.gswing.components.input.DbWriteAccess
Insert a new party leader into the database.
insertPartyLeader(Election, Candidate, Constituency) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a party leader.
InsertPartyLeader - Class in org.gswing.gui
Dialog for inserting a party leader for a particular election.
InsertPartyLeader() - Constructor for class org.gswing.gui.InsertPartyLeader
Default constructor.
insertResult(Vector) - Method in class org.gswing.components.input.DbWriteAccess
Insert a Vector of results into the database.
insertResult(Vector) - Method in interface org.gswing.framework.services.IDbWriteAccess
Insert a Vector of results into the database.
insertString(int, String, AttributeSet) - Method in class org.gswing.components.common.gui.TextVerifier
 
INTEGER - Static variable in class org.gswing.components.common.gui.TextVerifier
 
internalFrameActivated(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
Not used
internalFrameClosed(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
 
internalFrameClosing(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
Not used
internalFrameClosing(InternalFrameEvent) - Method in class org.gswing.gui.ModalInternalFrame
 
internalFrameDeactivated(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
Not used
internalFrameDeiconified(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
Not used
internalFrameIconified(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
Not used
internalFrameOpened(InternalFrameEvent) - Method in class org.gswing.gui.MenuGuiComponent
Not used
INVALID - Static variable in class org.gswing.components.common.Misc
Invalid const.
INVALID - Static variable in class org.gswing.components.common.Result
Invalid election result type.
invokeInserter(JComponent, String, char, String) - Method in class org.gswing.gui.desktop.Desktop
 
invokeInserter(JComponent, String, char, String) - Method in interface org.gswing.gui.services.IDesktopManagement
Display the inserter dialog.
IPropertyListener - Interface in org.gswing.framework.services
Listener for updates to property values.
IPropertyManagement - Interface in org.gswing.framework.services
Manages the changes to the properties file.
IResultRefresh - Interface in org.gswing.gui.services
Result refresh interface.
isByElection() - Method in class org.gswing.components.common.Election
 
isConnected() - Method in class org.gswing.components.common.db.DbAccess
Determine database connection status;
isCurrentlyConnected() - Method in class org.gswing.framework.DatabaseManager
 
isCurrentlyConnected() - Method in interface org.gswing.framework.services.IDatabaseManagement
Is the manager currently connected to the database?
ISelectionSource - Interface in org.gswing.components.common
Constituency navigation selection source.
IServerManagement - Interface in org.gswing.framework.services
Contract for server manager.
isLatest() - Method in class org.gswing.components.common.Result
Get whether this result is the latest in the database.
isOldest() - Method in class org.gswing.components.common.Result
Get whether this result is the oldest in the database.
isPrimaryKey() - Method in class org.gswing.components.input.dbcreator.DbField
Is this field a primary key?.
isStandalone() - Method in class org.gswing.components.common.Election
A standalone election is an election that is used to build an overall result.
isValid(String) - Method in class org.gswing.components.common.gui.TextVerifier
Check that the length of the string does not exceed the maximum number of characters.
IUpdateInformed - Interface in org.gswing.components.common.gui
General callback interface to inform an object that something has changed.
IViewerInvocation - Interface in org.gswing.components.common.gui
Contract for invoking the viewer.

K

keyPressed(KeyEvent) - Method in class org.gswing.components.common.gui.MainViewerPanel
 
keyPressed(KeyEvent) - Method in class org.gswing.gui.CandidateSelector
 
keyPressed(KeyEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
keyPressed(KeyEvent) - Method in class org.gswing.gui.InsertCandidate
Not used
keyReleased(KeyEvent) - Method in class org.gswing.components.common.gui.MainViewerPanel
 
keyReleased(KeyEvent) - Method in class org.gswing.gui.CandidateSelector
 
keyReleased(KeyEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
keyReleased(KeyEvent) - Method in class org.gswing.gui.InsertCandidate
 
keyTyped(KeyEvent) - Method in class org.gswing.components.common.gui.MainViewerPanel
 
keyTyped(KeyEvent) - Method in class org.gswing.gui.CandidateSelector
 
keyTyped(KeyEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
keyTyped(KeyEvent) - Method in class org.gswing.gui.InsertCandidate
Not used

L

LEADER - Static variable in class org.gswing.components.common.DbXmlWriter
XML LEADER tag.
LEADER_NAME - Static variable in class org.gswing.components.common.DbXmlWriter
XML LEADER_NAME tag.
LEADERSHIP - Static variable in class org.gswing.components.common.DbXmlWriter
XML LEADERSHIP tag.
LEADERSHIP_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
LIST - Static variable in class org.gswing.components.common.Misc
List electoral system string.
LIST_STR - Static variable in class org.gswing.components.common.Misc
List electoral system string.
ListDisplay - Class in org.gswing.components.common.gui
Modal dialog box containing a list of strings, a message and an OK and cancel button.
ListDisplay(IFramework, String, String, ListModel) - Constructor for class org.gswing.components.common.gui.ListDisplay
Constructor for single selections in the list.
ListDisplay(IFramework, String, String, Vector) - Constructor for class org.gswing.components.common.gui.ListDisplay
Constructor for single selections in the list.
ListDisplay(IFramework, String, String, Vector, int) - Constructor for class org.gswing.components.common.gui.ListDisplay
Constructor for multiple selections in the list.
ListDisplay(IFramework, String, String, Object[]) - Constructor for class org.gswing.components.common.gui.ListDisplay
Constructor for single selections in the list.
ListDisplay(IFramework, String, String, ListModel, int) - Constructor for class org.gswing.components.common.gui.ListDisplay
Constructor.
ListEntry - Class in org.gswing.components.common
Purpose: Represents an election list result entry.
ListEntry(Election, Party, int) - Constructor for class org.gswing.components.common.ListEntry
Construcor.
ListVote - Class in org.gswing.components.common
Purpose: Represents a vote in a List election..
ListVote(int, int, int, String) - Constructor for class org.gswing.components.common.ListVote
Constructor.
LOCAL - Static variable in class org.gswing.components.common.Misc
Local election string.
LOCAL - Static variable in class org.gswing.components.common.Result
Local election result type.
LOCAL_FILE_NAME_ENDING - Static variable in class org.gswing.components.common.Misc
Local results file name ending.
LOCAL_LABEL - Static variable in class org.gswing.components.common.Misc
local label
logError(String) - Static method in class org.gswing.components.common.Misc
Log error message.
logError(String) - Method in class org.gswing.framework.MessageHandler
 
logError(String) - Method in interface org.gswing.framework.services.IMessageHandling
Log a error to the message handler.
logMessage(int, String) - Static method in class org.gswing.components.common.Misc
Log a messge with severity.
logMessage(String) - Static method in class org.gswing.components.common.Misc
Log information message.
logMessage(Level, String) - Method in class org.gswing.framework.MessageHandler
Log a message.
logMessage(String) - Method in class org.gswing.framework.MessageHandler
 
logMessage(Level, String) - Method in interface org.gswing.framework.services.IMessageHandling
Log a message to the message handler.
logMessage(String) - Method in interface org.gswing.framework.services.IMessageHandling
Log a message to the message handler.
logToFile(String) - Method in class org.gswing.components.common.Misc
Log a message to file.
logToFile(String) - Method in class org.gswing.framework.MessageHandler
 
logToFile(String) - Method in interface org.gswing.framework.services.IMessageHandling
Log message to file without distribution.
logWarning(String) - Static method in class org.gswing.components.common.Misc
Log warning message.
logWarning(String) - Method in class org.gswing.framework.MessageHandler
 
logWarning(String) - Method in interface org.gswing.framework.services.IMessageHandling
Log a warning to the message handler.

M

m_electorate - Variable in class org.gswing.components.common.Result
Size of the electorate.
m_result - Variable in class org.gswing.components.common.Result
The actual result.
m_totalVotes - Variable in class org.gswing.components.common.Result
Total votes cast.
m_turnout - Variable in class org.gswing.components.common.Result
The size of the electorate.
main(String[]) - Static method in class org.gswing.components.input.DbInserter
Intialises the importer and display the main menu.
main(String[]) - Static method in class org.gswing.components.output.ExporterMain
Main method for the Exporter.
main(String[]) - Static method in class org.gswing.components.viewer.StandaloneViewer
Process access point.
Main - Class in org.gswing
Starts gswing.
Main() - Constructor for class org.gswing.Main
 
main(String[]) - Static method in class org.gswing.Main
Main entry point to gswing.
MainGui - Class in org.gswing.components.input.inserter
Purpose: The badly named main GUI.
MainGui(DbWriteAccess) - Constructor for class org.gswing.components.input.inserter.MainGui
Constructor.
MainViewerPanel - Class in org.gswing.components.common.gui
Panel hold the four canvases - Result Panel, Percentage Panel, Percentage Change Panel and Graph Panel with the ability to scroll through results.
MainViewerPanel(ResultsInterface, boolean, String, char) - Constructor for class org.gswing.components.common.gui.MainViewerPanel
Constructor.
MAX_VOTES - Static variable in class org.gswing.components.common.DbXmlWriter
XML MAX_VOTES tag.
MenuComponent - Class in org.gswing.gui
Base class for all non GUI menu components.
MenuComponent(boolean) - Constructor for class org.gswing.gui.MenuComponent
Constructor.
MenuGuiComponent - Class in org.gswing.gui
Gui component deriving from a menu.
MenuGuiComponent() - Constructor for class org.gswing.gui.MenuGuiComponent
Default Constructor.
MenuGuiComponent(String) - Constructor for class org.gswing.gui.MenuGuiComponent
Constructor.
MenuGuiComponent(String, boolean) - Constructor for class org.gswing.gui.MenuGuiComponent
Constructor.
MenuGuiComponent(String, boolean, boolean, boolean, boolean, boolean) - Constructor for class org.gswing.gui.MenuGuiComponent
Constructor.
MenuLoader - Class in org.gswing.gui.resource
Populates a JMenuBar with menu read from an xml style file.
MenuLoader(IFramework, IDesktopManagement) - Constructor for class org.gswing.gui.resource.MenuLoader
Constructor.
MenuLoaderFace - Interface in org.gswing.gui.resource
Populates a JMenuBar with menu read from an xml style file.
MessageHandler - Class in org.gswing.framework
The message handler manages log messages in the system.
MessageHandler(IPropertyManagement) - Constructor for class org.gswing.framework.MessageHandler
Constructor.
messageRaised(LogRecord) - Method in interface org.gswing.framework.services.IMessageListener
Recieve log message from Message Handler.
messageRaised(LogRecord) - Method in class org.gswing.gui.messageviewer.MessageViewer
Recieve log message from Message Handler.
MessageViewer - Class in org.gswing.gui.messageviewer
Displays messages logged in the system.
MessageViewer() - Constructor for class org.gswing.gui.messageviewer.MessageViewer
Constructor.
Misc - Class in org.gswing.components.common
Purpose: Miscellaneous utility class for the common package.
Misc() - Constructor for class org.gswing.components.common.Misc
 
Misc - Class in org.gswing.components.input
Purpose: Purpose: Miscellaneous utility class for the input package.
Misc() - Constructor for class org.gswing.components.input.Misc
 
ModalInternalFrame - Class in org.gswing.gui
Modal component gui.
ModalInternalFrame(String, IFramework, boolean) - Constructor for class org.gswing.gui.ModalInternalFrame
Constructor.
mouseClicked(MouseEvent) - Method in class org.gswing.gui.CandidateSelector
When a candidate is double clicked select value and hide dialog.
mouseClicked(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
mouseDragged(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
mouseEntered(MouseEvent) - Method in class org.gswing.gui.CandidateSelector
 
mouseEntered(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
mouseExited(MouseEvent) - Method in class org.gswing.gui.CandidateSelector
 
mouseExited(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
mouseMoved(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
mousePressed(MouseEvent) - Method in class org.gswing.gui.CandidateSelector
 
mousePressed(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
mouseReleased(MouseEvent) - Method in class org.gswing.gui.CandidateSelector
 
mouseReleased(MouseEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 

N

NAME - Static variable in class org.gswing.components.common.db.DbTable
 
NATIONAL - Static variable in class org.gswing.components.common.Misc
National election string.
NATIONAL - Static variable in class org.gswing.components.common.Result
Overall election result type.
NEW_LINE - Static variable in class org.gswing.components.common.Misc
platform independant new line string.
newRegionWasSelected() - Method in class org.gswing.components.input.importer.RegionListDisplay
Was the new region button selected?
NEXT - Static variable in class org.gswing.components.common.Misc
Next const.
NO_DATA - Static variable in interface org.gswing.framework.services.IDbWriteAccess
Query/ update returned no data.
NONE_DEFINED - Static variable in class org.gswing.components.common.Misc
none defined const.
NORMAL_FONT - Static variable in class org.gswing.components.common.Misc
Normal canvas font.

O

OPTION - Static variable in class org.gswing.components.common.DbXmlWriter
XML OPTION tag.
OPTION_NAME - Static variable in class org.gswing.components.common.DbXmlWriter
XML OPTION_NAME tag.
org.gswing - package org.gswing
Top level directory.
org.gswing.components.common - package org.gswing.components.common
Package contains the classes common to gswing components.
org.gswing.components.common.db - package org.gswing.components.common.db
Package contains the classes common to gswing gui components.
org.gswing.components.common.gui - package org.gswing.components.common.gui
Package contains the classes common to gswing database components.
org.gswing.components.input - package org.gswing.components.input
Package contains the gswing database insertion packages and classes.
org.gswing.components.input.dbcreator - package org.gswing.components.input.dbcreator
Package contains the gswing database creator classes.
org.gswing.components.input.importer - package org.gswing.components.input.importer
Package contains the classes for the gswing Importer.
org.gswing.components.input.inserter - package org.gswing.components.input.inserter
Package contains the classes for the gswing Inserter.
org.gswing.components.output - package org.gswing.components.output
Package contains gswing database output classes.
org.gswing.components.output.exporter - package org.gswing.components.output.exporter
Output package containing classes for exporting data from the database.
org.gswing.components.output.extractor - package org.gswing.components.output.extractor
Package contains the gswing Extractor.
org.gswing.components.viewer - package org.gswing.components.viewer
Contains the classes used in creating the gswing applet viewer.
org.gswing.framework - package org.gswing.framework
Package contains the gswing framework classes.
org.gswing.framework.services - package org.gswing.framework.services
Package contains gswing framework services interfaces.
org.gswing.gui - package org.gswing.gui
Package contains gswing gui packages.
org.gswing.gui.constituencytree - package org.gswing.gui.constituencytree
Package contains gswing constituency tree gui classes.
org.gswing.gui.desktop - package org.gswing.gui.desktop
Package contains gswing desktop gui classes.
org.gswing.gui.exporter - package org.gswing.gui.exporter
Package contains gswing exporter gui classes.
org.gswing.gui.importer - package org.gswing.gui.importer
Package contains gswing importer gui classes.
org.gswing.gui.inserter - package org.gswing.gui.inserter
Package contains gswing inserter gui classes.
org.gswing.gui.messageviewer - package org.gswing.gui.messageviewer
Package contains gswing message viewer gui classes.
org.gswing.gui.resource - package org.gswing.gui.resource
Package contains gswing gui resources.
org.gswing.gui.services - package org.gswing.gui.services
Package contains gswing gui services interfaces.
org.gswing.utils.xml - package org.gswing.utils.xml
Package contains gswing xml utilities.
OTHERS - Static variable in class org.gswing.components.common.Party
Other party.
OverallResult - Class in org.gswing.components.common
Purpose: Represents an overall result for an election.
OverallResult(Constituency) - Constructor for class org.gswing.components.common.OverallResult
Constructor.

P

paintComponent(Graphics) - Method in class org.gswing.components.common.gui.GraphPanel
Draw the graph.
paintComponent(Graphics) - Method in class org.gswing.components.common.gui.PercentageChangePanel
Draw the bar chart.
paintComponent(Graphics) - Method in class org.gswing.components.common.gui.PercentagePanel
Draw the bar chart.
PARENT - Static variable in class org.gswing.components.common.db.DbTable
 
PARENT - Static variable in class org.gswing.components.common.DbXmlWriter
XML PARENT tag.
PARTICIPANT - Static variable in class org.gswing.components.common.db.DbTable
 
PartiesToXml - Class in org.gswing.components.output.exporter
Export party details to XML.
PartiesToXml(IFramework, boolean) - Constructor for class org.gswing.components.output.exporter.PartiesToXml
Constructor.
PARTY - Static variable in class org.gswing.components.common.db.DbTable
 
Party - Class in org.gswing.components.common
Purpose: Represents a political party.
Party(String, String) - Constructor for class org.gswing.components.common.Party
Constructor.
Party(String, String, URL) - Constructor for class org.gswing.components.common.Party
Constructor.
Party(String, String, boolean) - Constructor for class org.gswing.components.common.Party
Constructor.
Party(String, String, URL, boolean) - Constructor for class org.gswing.components.common.Party
Contructor.
PARTY_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
partyExists(String, boolean) - Method in class org.gswing.components.common.db.DbReadAccess
Does this party exist in the database?
partyExists(String, boolean) - Method in interface org.gswing.framework.services.IDbReadAccess
Does this party exist in the database?
PercentageChangePanel - Class in org.gswing.components.common.gui
Purpose: Displays the percentage change of each party as a bar chart from the current result to the previous result.
PercentageChangePanel() - Constructor for class org.gswing.components.common.gui.PercentageChangePanel
 
PercentagePanel - Class in org.gswing.components.common.gui
Purpose: Displays the percentage of each party in a bar chart.
PercentagePanel() - Constructor for class org.gswing.components.common.gui.PercentagePanel
Default contructor.
populateMenuBar(JMenuBar, String) - Method in class org.gswing.gui.resource.MenuLoader
This can start and finish the work Just call this with the JMenuBar and the menu file.
populateMenuBar(JMenuBar, String) - Method in interface org.gswing.gui.resource.MenuLoaderFace
Populate menu.
popupMenuCanceled(PopupMenuEvent) - Method in class org.gswing.components.common.SelectionHandler
 
popupMenuWillBecomeInvisible(PopupMenuEvent) - Method in class org.gswing.components.common.SelectionHandler
 
popupMenuWillBecomeVisible(PopupMenuEvent) - Method in class org.gswing.components.common.SelectionHandler
 
PREVIOUS - Static variable in class org.gswing.components.common.Misc
Previous const.
printTitle() - Static method in class org.gswing.components.common.Misc
Print the title message to standard output.
Properties - Class in org.gswing.components.common
Purpose: Reads the properties files and sets global properties.
Properties(IPropertyManagement) - Constructor for class org.gswing.components.common.Properties
Constructor.
Properties(URL, String) - Constructor for class org.gswing.components.common.Properties
Constructor.
PropertyManager - Class in org.gswing.framework
Manages the storage, update and distribition of configuration values.
PropertyManager() - Constructor for class org.gswing.framework.PropertyManager
 

R

readFromFile(char, String) - Method in class org.gswing.components.viewer.ResultsInterface
Read results from serialised file.
readFromFile(boolean) - Method in class org.gswing.utils.xml.XmlReader
Read the XML file.
readProperties() - Method in class org.gswing.components.common.Properties
Read and load the property file.
recurseNode(Node, XNode) - Method in class org.gswing.utils.xml.XParser
The recursive method for adding XNodes to the tree.
refreshNode(ConstituencyNode, char) - Method in class org.gswing.components.common.gui.ConstituencyTreeModel
Refresh a node by deleting all exsting children and refetching the constituency list from the database.
REGION_LABEL - Static variable in class org.gswing.components.common.Misc
region label
REGIONAL - Static variable in class org.gswing.components.common.Misc
Regional election string.
REGIONAL - Static variable in class org.gswing.components.common.Result
Regional election result type.
REGIONAL_FILE_NAME - Static variable in class org.gswing.components.common.Misc
Regional results file name.
RegionListDisplay - Class in org.gswing.components.input.importer
A specialisation of the ListDisplay dialog.
RegionListDisplay(IFramework, String, String, ListModel) - Constructor for class org.gswing.components.input.importer.RegionListDisplay
Constructor.
register(IDatabaseListener) - Method in class org.gswing.framework.DatabaseManager
 
register(IMessageListener) - Method in class org.gswing.framework.MessageHandler
Register a listener to receive messages raised by other components.
register(IPropertyListener) - Method in class org.gswing.framework.PropertyManager
Register for updates when a property gets a new value.
register(IDatabaseListener) - Method in interface org.gswing.framework.services.IDatabaseManagement
Register with the database manager for update database notification messages.
register(IMessageListener) - Method in interface org.gswing.framework.services.IMessageHandling
Register with the message handler for message update from all components.
register(IPropertyListener) - Method in interface org.gswing.framework.services.IPropertyManagement
Register with the property manager for updates to changes to property values.
remove(JInternalFrame) - Method in class org.gswing.gui.desktop.Desktop
 
remove(JInternalFrame) - Method in interface org.gswing.gui.services.IDesktopManagement
Remove a component window from the desktop.
removeEntries() - Method in class org.gswing.components.common.Result
Remove all entries.
removeListDataListener(ListDataListener) - Method in class org.gswing.components.common.ResultList
 
renameConstituency(String, String, char, String) - Method in class org.gswing.components.input.DbWriteAccess
 
renameConstituency(String, String, char, String) - Method in interface org.gswing.framework.services.IDbWriteAccess
Rename a constituency in the database.
resetIndependentCounter() - Static method in class org.gswing.components.common.Party
Reset the hashtable containing independent counters.
result - Variable in class org.gswing.components.common.gui.PercentagePanel
 
Result - Class in org.gswing.components.common
Purpose: Represents a single constituency or regional result.
Result(Constituency) - Constructor for class org.gswing.components.common.Result
Constructor.
resultExists(char, String) - Method in class org.gswing.components.common.AllResults
Determine if a particular result exists.
resultExists(Election, int, String) - Method in class org.gswing.components.common.db.DbReadAccess
Check whether this result exists in the database.
resultExists(Election, String, String) - Method in class org.gswing.components.common.db.DbReadAccess
Check whether this result exists in the database.
resultExists(Election, int, String) - Method in interface org.gswing.framework.services.IDbReadAccess
Check whether this result exists in the database.
resultExists(Election, String, String) - Method in interface org.gswing.framework.services.IDbReadAccess
Check whether this result exists in the database.
ResultKey - Class in org.gswing.components.common
Purpose: Class defines a unique election result instance, that is the constituency, date and type of an election result.
ResultKey(Constituency, Date, String, String) - Constructor for class org.gswing.components.common.ResultKey
Constructor.
ResultKey(Constituency, Election) - Constructor for class org.gswing.components.common.ResultKey
Constructor.
ResultList - Class in org.gswing.components.common
Purpose: Represents a list of constituencies or a list of regions.
ResultList(Vector) - Constructor for class org.gswing.components.common.ResultList
Constructor.
ResultPanel - Class in org.gswing.components.common.gui
Purpose: Panel that displays list of candidates, their party and number of votes.
ResultPanel(String) - Constructor for class org.gswing.components.common.gui.ResultPanel
Default Constructor.
ResultPanel(String, KeyListener) - Constructor for class org.gswing.components.common.gui.ResultPanel
 
ResultPanel(String, Dimension, Boolean) - Constructor for class org.gswing.components.common.gui.ResultPanel
Alternative constructor for resizing and for setting whether to display the turnout.
ResultPanel.ColorRenderer - Class in org.gswing.components.common.gui
Table renderer - primarily for colouring the foreground of the winning entry.
ResultPanel.ColorRenderer() - Constructor for class org.gswing.components.common.gui.ResultPanel.ColorRenderer
 
results - Variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
ResultsInterface - Class in org.gswing.components.viewer
Purpose: The applet's interface to all the results.
ResultsInterface(boolean, String) - Constructor for class org.gswing.components.viewer.ResultsInterface
Constructor.
ResultsInterface(boolean, URL) - Constructor for class org.gswing.components.viewer.ResultsInterface
Constructor.
ResultTableModel - Class in org.gswing.components.common.gui
Table model for a single election result.
ResultTableModel(Result) - Constructor for class org.gswing.components.common.gui.ResultTableModel
Constructor.
REV_WITH_COMMA - Static variable in class org.gswing.components.common.Candidate
 
REV_WITHOUT_COMMA - Static variable in class org.gswing.components.common.Candidate
 
run() - Method in class org.gswing.gui.InsertCandidate
Request focus for first name field.
run() - Method in class org.gswing.gui.inserter.Inserter
Allow the default button to be assigned in a seperate thread.

S

SelectionHandler - Class in org.gswing.components.common
Generic handler for constituency tree navigation.
SelectionHandler(ISelectionSource, int, JComboBox, JButton) - Constructor for class org.gswing.components.common.SelectionHandler
Constructor.
SelectionHandler(ISelectionSource, int, JComboBox) - Constructor for class org.gswing.components.common.SelectionHandler
Constructor.
SERIALISED_FILE_EXT - Static variable in class org.gswing.components.common.Misc
Serialised files file extension
ServerManager - Class in org.gswing.framework
Implements an interface to the server that hosts gswing runtime.
ServerManager() - Constructor for class org.gswing.framework.ServerManager
Constructor.
set(String, String) - Method in class org.gswing.framework.PropertyManager
 
set(String, String) - Method in interface org.gswing.framework.services.IPropertyManagement
 
setAbbreviation(String) - Method in class org.gswing.components.common.Party
Set the party's abbreviation.
setBroker(HelpBroker) - Method in class org.gswing.gui.Help
Assign the help broker.
setConstituency(String) - Method in class org.gswing.components.viewer.Configuration
 
setDefaultButton(JButton) - Method in class org.gswing.gui.GuiComponent
Set button to be default button.
setDimension(Dimension) - Method in class org.gswing.components.common.gui.CommonDialog
Set the GUI dimensions.
setDimension(Dimension) - Method in class org.gswing.components.common.gui.CommonGui
Set the GUI dimensions.
setDriverClassName(String) - Method in class org.gswing.components.common.db.DbAccess
Set the driver class name.
setElection(Election) - Method in class org.gswing.components.common.Result
Set the election data of this result.
setElectorate(int) - Method in class org.gswing.components.common.Result
The number of voters eligible to vote in this constituency.
setFirstName(String) - Method in class org.gswing.components.common.Candidate
Set candidates surname.
setFocusedComponent(JComponent) - Method in class org.gswing.gui.GuiComponent
Request component to be focused.
setGSwingVersion(String) - Method in class org.gswing.components.common.AllResults
Set the version of the software.
setGswingVersion(String) - Method in class org.gswing.components.viewer.Configuration
 
setGSwingVersion(String) - Method in class org.gswing.components.viewer.ResultsInterface
Get the version of the software that was stored in the serialised file.
setIndex(int) - Method in class org.gswing.components.common.Result
Set the index of this result in relation to other results of the same constituency.
setIsLatest(boolean) - Method in class org.gswing.components.common.Result
Set whether this result is the latest result in the database.
setIsOldest(boolean) - Method in class org.gswing.components.common.Result
Set whether this result is the oldest result in the database.
setKey1(String) - Method in class org.gswing.components.input.importer.AliasKey
 
setLeaderVotes(Result, Entry) - Method in class org.gswing.components.common.AllResults
Add the number of votes in an entry (a result from a constituency) to the total votes of the party's leader.
setList(char, Object) - Method in class org.gswing.components.common.AllResults
Set a list of constituency names.
setLocal(String) - Method in class org.gswing.components.viewer.Configuration
 
setName(String) - Method in class org.gswing.components.common.Election
Set the name of this election.
setOverallResult(Date, OverallResult) - Method in class org.gswing.components.common.AllResults
Add a result to the overall election result.
setOverallResults() - Method in class org.gswing.components.common.AllResults
Finalise the overall result calculation.
setOverallResults(String) - Method in class org.gswing.components.common.AllResults
Finalise the overall result calculation for council results.
setParty(String) - Method in class org.gswing.components.common.Candidate
Set party that the candidate is a member of.
setPassword(String) - Method in class org.gswing.components.common.db.DbAccess
Set the database password.
setPercentage(int) - Method in class org.gswing.components.common.Entry
Set the percentage of vote.
setPropertyValue(String, String) - Method in class org.gswing.utils.xml.XNode
Set the valuie of a property.
setReDisplay(boolean) - Static method in class org.gswing.components.common.AbstractMainMenu
Sets whether the display should be re-displayed.
setRegion(String) - Method in class org.gswing.components.viewer.Configuration
 
setResult(Result[], int) - Method in class org.gswing.components.common.gui.GraphPanel
Set the results to display.
setResult(Result, Result) - Method in class org.gswing.components.common.gui.PercentageChangePanel
Set the results to display.
setResult(Result) - Method in class org.gswing.components.common.gui.PercentagePanel
Update panel with specified result.
setResult(Result) - Method in class org.gswing.components.common.gui.ResultPanel
Draw the result.
setSearchType(char) - Method in interface org.gswing.components.common.ISelectionSource
Set the seach type.
setSearchType(char) - Method in class org.gswing.components.input.inserter.MainGui
 
setStandalone(Vector) - Method in class org.gswing.components.common.Election
Set whether this election is standalone.
setSurname(String) - Method in class org.gswing.components.common.Candidate
Set candidates surname.
setTagName(String) - Method in class org.gswing.utils.xml.XNode
Set the tage name.
setText(String) - Method in class org.gswing.utils.xml.XNode
Set node text.
setTitle(String) - Method in class org.gswing.components.common.gui.DisplayPanel
Set the panel title.
setTurnout(int) - Method in class org.gswing.components.common.Result
Sets the percentage of eligible voters who participated in the election.
setType(char) - Method in class org.gswing.components.common.Constituency
Set the constituency type.
setVisible(boolean) - Method in class org.gswing.gui.inserter.Inserter
 
setVisible(boolean) - Method in class org.gswing.gui.ModalInternalFrame
 
setVotes(int) - Method in class org.gswing.components.common.Entry
Set the number of votes.
setWaiting(boolean) - Static method in class org.gswing.components.common.AbstractMainMenu
Sets whether the menu should wait for user input.
show(String, char, String) - Method in interface org.gswing.components.common.ISelectionSource
Display result.
show(String, char, String) - Method in class org.gswing.components.input.inserter.MainGui
Display result.
showConstituencyList(String, char) - Method in interface org.gswing.components.common.ISelectionSource
Show constituency list.
showConstituencyList(String, char) - Method in class org.gswing.components.input.inserter.MainGui
Display the constituency list in the combo box for a given parent name.
showCouncilForLocal() - Method in interface org.gswing.components.common.ISelectionSource
This defines if the selection source wishes to show council results (for example overall results) when local results have been selected.
showCouncilForLocal() - Method in class org.gswing.components.input.inserter.MainGui
 
showDialog(IFramework, JInternalFrame, IUpdateInformed, int, ArrayList) - Static method in class org.gswing.gui.CandidateSelector
Pop up dialog.
showError(String) - Static method in class org.gswing.components.common.Misc
Popup an error dialog box.
showError(Component, String) - Static method in class org.gswing.components.common.Misc
Popup an error dialog box.
showMessage(String) - Static method in class org.gswing.components.common.Misc
Popup a message dialog box.
showMessage(Component, String) - Static method in class org.gswing.components.common.Misc
Popup a message dialog box.
showResult(String, char) - Method in interface org.gswing.components.common.gui.IViewerInvocation
Display the result in the viewer dialog.
showResult(String, char) - Method in class org.gswing.components.viewer.ViewerDisplay
Show new result in the panel.
showResult(String, char) - Method in class org.gswing.gui.desktop.Desktop
 
SimpleConstituency - Class in org.gswing.components.common
A simple constituency is a constituency that knows nothing about its parent constituency.
SimpleConstituency(String, int) - Constructor for class org.gswing.components.common.SimpleConstituency
Constructor.
SimpleTree - Class in org.gswing.components.common.gui
Basic constituency tree for all viewer applications.
SimpleTree(ConstituencyTreeModel, Color) - Constructor for class org.gswing.components.common.gui.SimpleTree
Constructor.
size() - Method in class org.gswing.components.common.Result
Get the number of entries in this result.
SMALL_FONT - Static variable in class org.gswing.components.common.Misc
Small canvas font.
sort() - Method in class org.gswing.components.common.OverallResult
Sort the overall results entries by number of votes.
SPACE - Static variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
StandaloneViewer - Class in org.gswing.components.viewer
Main class for displaying a gswing viewer as a stanalone application.
StandaloneViewer() - Constructor for class org.gswing.components.viewer.StandaloneViewer
 
startConvert() - Method in class org.gswing.components.input.importer.CsvToXml
Start converting CSV files to XML format.
startImport() - Method in class org.gswing.components.input.importer.XmlToDb
Choose from a list if xml files to import into database.
SUCCESS - Static variable in interface org.gswing.framework.services.IDbWriteAccess
Successful write status.
SURNAME - Static variable in class org.gswing.components.common.db.DbTable
 
SYSTEM - Static variable in class org.gswing.components.common.db.DbTable
 
SYSTEM - Static variable in class org.gswing.components.common.DbXmlWriter
XML SYSTEM tag.

T

TABLE_ROW_SELECT - Static variable in class org.gswing.components.common.Misc
The colour of a selected table row.
tableExists(String) - Method in class org.gswing.components.common.db.DbAccess
Check whether a particular table exists in this database.
tableExists(String) - Method in interface org.gswing.framework.services.IDbReadAccess
Check whether a particular table exists in this database.
targetDir - Variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
TestListener - Class in org.gswing.gui
 
TestListener() - Constructor for class org.gswing.gui.TestListener
 
TextVerifier - Class in org.gswing.components.common.gui
The text verifier limits the number of characters the user is allowed to insert into a text field.
TextVerifier(int) - Constructor for class org.gswing.components.common.gui.TextVerifier
Constructor.
TextVerifier(int, int) - Constructor for class org.gswing.components.common.gui.TextVerifier
Constructor for numeric text fields.
TITLE_FONT - Static variable in class org.gswing.components.common.Misc
The canvas title font.
toStdErr(String) - Static method in class org.gswing.components.common.Misc
Print message to standard error stream.
toStdOut(String) - Static method in class org.gswing.components.common.Misc
Print a message to the standard output.
toStdOut(String, boolean) - Static method in class org.gswing.components.common.Misc
Print a message to the standard output.
toString() - Method in class org.gswing.components.common.Candidate
 
toString() - Method in class org.gswing.components.common.Constituency
Get this constituency as a string.
toString() - Method in class org.gswing.components.common.Election
 
toString() - Method in class org.gswing.components.common.Party
 
toString() - Method in class org.gswing.components.common.ResultKey
 
treeCollapsed(TreeExpansionEvent) - Method in class org.gswing.components.common.gui.TreeDisplay
 
treeCollapsed(TreeExpansionEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
treeCollapsed(TreeExpansionEvent) - Method in class org.gswing.gui.TreeDisplay
 
TreeDisplay - Class in org.gswing.components.common.gui
Dialogue box containing a single item tree view, a message and an OK and cancel button.
TreeDisplay(String, String, TreeModel) - Constructor for class org.gswing.components.common.gui.TreeDisplay
Constructor.
TreeDisplay - Class in org.gswing.gui.constituencytree
Dialogue box containing full constituency tree.
TreeDisplay() - Constructor for class org.gswing.gui.constituencytree.TreeDisplay
Constructor.
TreeDisplay - Class in org.gswing.gui
Dialogue box containing a single item tree view, a message and an OK and cancel button.
TreeDisplay(IFramework, JInternalFrame, String, String, TreeModel) - Constructor for class org.gswing.gui.TreeDisplay
Constructor.
TreeDisplay(IFramework, String, String, TreeModel) - Constructor for class org.gswing.gui.TreeDisplay
Constructor using the desktop pane as parent.
treeExpanded(TreeExpansionEvent) - Method in class org.gswing.components.common.gui.TreeDisplay
 
treeExpanded(TreeExpansionEvent) - Method in class org.gswing.gui.constituencytree.TreeDisplay
 
treeExpanded(TreeExpansionEvent) - Method in class org.gswing.gui.TreeDisplay
 
TurnoutPanel - Class in org.gswing.components.viewer
Purpose: Display the changes in turnout over the whole period.
TurnoutPanel() - Constructor for class org.gswing.components.viewer.TurnoutPanel
Constructor.
TYPE - Static variable in class org.gswing.components.common.db.DbTable
 
TYPE - Static variable in class org.gswing.components.common.DbXmlWriter
XML TYPE tag.
TYPE_HANDLER - Static variable in class org.gswing.components.common.SelectionHandler
 

U

UNCONTESTED - Static variable in class org.gswing.components.common.Misc
The number of votes assigned to an uncontested seat.
UNDERSCORE - Static variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
UNKNOWN - Static variable in class org.gswing.components.common.DbXmlWriter
Unknown leader string.
update(String, char) - Method in class org.gswing.components.common.gui.MainViewerPanel
Update viewer with result for said constituency.
update(String, Object) - Method in class org.gswing.framework.PropertyManager
Update with a new value.
update(String, Object) - Method in interface org.gswing.framework.services.IPropertyManagement
Update the value of a property.
update(String) - Method in class org.gswing.gui.CandidateSelector.CandidateModel
Update candidate list with strings beginning with 'str'
update(String, char) - Method in class org.gswing.gui.Viewer
Update dialog for constituency.
updateConnectionStatus() - Method in class org.gswing.framework.DatabaseManager
Inform all connected components of current connection status.
updateConnectionStatus() - Method in interface org.gswing.framework.services.IDatabaseManagement
Inform all connected components of current connection status.
updateElectorate(Constituency, int, int) - Method in class org.gswing.components.input.DbWriteAccess
 
updateElectorate(Constituency, int, int) - Method in interface org.gswing.framework.services.IDbWriteAccess
Update the electorate size into the database.
updateParty(String, String, URL) - Method in class org.gswing.components.input.DbWriteAccess
Update the party's details
UpdateParty - Class in org.gswing.gui
Same functionality as InsertParty with different label.
UpdateParty() - Constructor for class org.gswing.gui.UpdateParty
Constructor.
updateProperty(String, Object) - Method in interface org.gswing.framework.services.IPropertyListener
Changes in property values are propogated to property listeners via this service.
updateProperty(Properties) - Method in interface org.gswing.framework.services.IPropertyListener
 
updateResults(Result) - Method in class org.gswing.gui.inserter.Inserter
Called to redraw with this result.
updateResults(Result) - Method in interface org.gswing.gui.services.IResultRefresh
Refresh dialog with new result,
uploadFile(String, String) - Method in class org.gswing.framework.ServerManager
 
uploadFile(String, String) - Method in interface org.gswing.framework.services.IServerManagement
Upload a file to the server from the specified directory.
uploadFiles(String[], String) - Method in class org.gswing.framework.ServerManager
 
uploadFiles(String[], String) - Method in interface org.gswing.framework.services.IServerManagement
Upload files to the server from the specified directory.
URL - Static variable in class org.gswing.components.common.db.DbTable
 

V

VALID_VOTES - Static variable in class org.gswing.components.common.DbXmlWriter
XML VALID_VOTES tag.
Viewer - Class in org.gswing.gui
GUI container that holds the gswing viewer.
Viewer(IFramework, String, char) - Constructor for class org.gswing.gui.Viewer
Constructor.
ViewerDisplay - Class in org.gswing.components.viewer
The viewer panel incorporates the MainViewerPanel, containing the canvases, with the constituency tree into a single panel.
ViewerDisplay(URL) - Constructor for class org.gswing.components.viewer.ViewerDisplay
Constructor.
ViewerDisplay() - Constructor for class org.gswing.components.viewer.ViewerDisplay
Constructor.
Vote - Class in org.gswing.components.common
Purpose: Abstract class provides what the attributes that each vote should consist of.
Vote(int, int, int) - Constructor for class org.gswing.components.common.Vote
Constructor.
VOTE_LIST_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
VOTE_TABLE - Static variable in class org.gswing.components.common.db.DbTable
 
VOTES - Static variable in class org.gswing.components.common.db.DbTable
 

W

wait(boolean) - Method in class org.gswing.components.common.AbstractMainMenu
Tells this thread to wait or to continue.
WARN - Static variable in class org.gswing.components.common.Misc
Message severity Warning.
WIDTH - Static variable in class org.gswing.components.common.gui.PercentagePanel
 
WIN - Static variable in class org.gswing.components.common.Result
Result win string.
windowActivated(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
windowActivated(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
 
windowClosed(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
windowClosed(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
 
windowClosing(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
Ensure application closes.
windowClosing(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
Before closing make sure to shutdown database connection.
windowDeactivated(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
windowDeactivated(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
 
windowDeiconified(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
windowDeiconified(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
 
windowIconified(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
windowIconified(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
 
windowOpened(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
windowOpened(WindowEvent) - Method in class org.gswing.gui.desktop.Desktop
 
windowStateChanged(WindowEvent) - Method in class org.gswing.components.viewer.StandaloneViewer
 
WITH_COMMA - Static variable in class org.gswing.components.common.Candidate
 
WITHOUT_COMMA - Static variable in class org.gswing.components.common.Candidate
 
writeFile() - Method in class org.gswing.components.output.exporter.AbstractDbToFile
Write the election data to file.
writeFile() - Method in class org.gswing.components.output.exporter.DbToCsv
Write the election data to comma separated file.
writeFile() - Method in class org.gswing.components.output.exporter.DbToXml
Write the election data to file.
writeToFile(Election, Hashtable, Vector) - Method in class org.gswing.components.common.DbXmlWriter
Write the election data to file.
writeToFile() - Method in class org.gswing.utils.xml.XmlWriter
Write XML document to XML file.

X

XML - Static variable in class org.gswing.components.output.exporter.AbstractDbToFile
 
XmlReader - Class in org.gswing.utils.xml
Purpose: Generic XML reader.
XmlReader(File) - Constructor for class org.gswing.utils.xml.XmlReader
Constructor.
XmlToDb - Class in org.gswing.components.input.importer
Purpose: Imports EML standard XML files into the database.
XmlToDb(IFramework, String) - Constructor for class org.gswing.components.input.importer.XmlToDb
Constructor.
xmlToXNode() - Method in class org.gswing.utils.xml.XParser
The XNode tree creator.
XmlWriter - Class in org.gswing.utils.xml
Purpose: Generic XML writer.
XmlWriter(File) - Constructor for class org.gswing.utils.xml.XmlWriter
Constructor.
XNode - Class in org.gswing.utils.xml
This is the data structure for xml data tree Fields : String tagName - The name of the current tag (node) String text - The text contained in the node (node value) Properties attributes - the attributes of the tag as Properties You can get the attribute names and values by accessing the properties keys and values.
XNode() - Constructor for class org.gswing.utils.xml.XNode
 
XParser - Class in org.gswing.utils.xml
Class containing methods to convert dom document to a tree of XNodes (see class XNode) Sequence - XParser xp=new XParser(); xp.initDoc(xmlFileName); XNode xn=xp.xmlToXNode(); and you have an XNode which is actually the root of a tree of XNodes.
XParser(String) - Constructor for class org.gswing.utils.xml.XParser
Initiates and loads the document with xml data from file fname
XSTART - Static variable in class org.gswing.components.common.gui.PercentagePanel
 

Y

YSTART - Static variable in class org.gswing.components.common.gui.PercentagePanel
 

A B C D E F G H I K L M N O P R S T U V W X Y

Copyright © 2008. All Rights Reserved.