Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
N
P
R
S
T
U
V
A
addAssignment(String, String)
- Method in class
IniFile
Adds and assignment (i.e.
addSubjectLine(String)
- Method in class
IniFile
add a subject line to the end of the lines vector
addValue(String, String, String, boolean)
- Method in class
IniFile
Sets a specific subject/variable combination the given value.
AdminPanel
- Class in
<Unnamed>
AdminPanel
AdminPanel(LinkedList, String)
- Constructor for class
AdminPanel
Construct an adminpanel.
B
BallotConfirmPanel
- Class in
<Unnamed>
BallotConfirmPanel
BallotConfirmPanel(Hashtable, String[])
- Constructor for class
BallotConfirmPanel
Constructor
BallotControl
- Class in
<Unnamed>
BallotControl
BallotControl()
- Constructor for class
BallotControl
BallotGUI
- Class in
<Unnamed>
BallotGUI
BallotGUI(BallotPanel[])
- Constructor for class
BallotGUI
Constructor
BallotPanel
- Class in
<Unnamed>
BallotPanel
BallotPanel(String, List)
- Constructor for class
BallotPanel
Constructor
ballotString()
- Method in class
Candidate
Gets a string representing the candidate, for display in the GUI.
buttonsVisibility(boolean)
- Method in class
AdminPanel
Makes buttons visible.
C
Candidate
- Class in
<Unnamed>
Represents a candidate on a ballot.
Candidate(String, String)
- Constructor for class
Candidate
Candidate constructor.
checkPasswd()
- Method in class
AdminPanel
Makes buttons visible if the password is correct.
Console
- Class in
<Unnamed>
The administration console class - manages a list of PIN numbers that are authorized to vote.
Console()
- Constructor for class
Console
CONSOLE_PORT
- Static variable in class
Console
What port we listen to for connections
ConsoleGUI
- Class in
<Unnamed>
The GUI frame that displays the valid PIN numbers in the system.
ConsoleGUI(Vector)
- Constructor for class
ConsoleGUI
Construct the GUI with the given vector containing PINs.
createFile()
- Method in class
IniFile
Create a new INI file.
D
deleteSubject(String)
- Method in class
IniFile
delete a subject and all its variables
deleteValue(String, String)
- Method in class
IniFile
delete variable within a subject
displayFirst()
- Method in class
BallotGUI
Display the first panel again.
displayPINQuery(PINQueryPanel)
- Method in class
BallotGUI
Display the PIN query panel specified
E
endOfSubject(int)
- Method in class
IniFile
find the line number which is 1 past the last assignment in a subject starting at a given line
endTime
- Static variable in class
MachineDefaults
The date the election ends.
F
fileName
- Variable in class
IniFile
Name of the file
finalize()
- Method in class
IniFile
clean up
findAssignmentBetween(String, int, int)
- Method in class
IniFile
find the line containing a variable within a range of lines
findAssignmentLine(String, String)
- Method in class
IniFile
find the line containing a variable within a subject
findSubjectLine(String)
- Method in class
IniFile
find a subject line within the lines vector
G
getLines()
- Method in class
IniFile
get a copy of the lines vector
getSubjects()
- Method in class
IniFile
get an array containing all subjects
getValue(String, String)
- Method in class
IniFile
get the value of a variable within a subject
getVariables(String)
- Method in class
IniFile
get a vector containing all variables in a subject
H
HOW_MANY_PINS
- Static variable in class
Console
How many PINs are valid at once
I
IniFile
- Class in
<Unnamed>
A class for handling Windows-style INI files.
IniFile(String)
- Constructor for class
IniFile
Creates an INI file object using the specified name If the named file doesn't exist, create one
IniFile(String, boolean)
- Constructor for class
IniFile
Creates an INI file object using the specified name If the named file doesn't exist, create one
intListString(List)
- Static method in class
Console
Returns the string representation of a List
.
isanAssignment(String)
- Method in class
IniFile
does the line represent an assignment?
isaSubject(String)
- Method in class
IniFile
does the line represent a subject?
L
lines
- Variable in class
IniFile
Actual text lines of the file stored in a vector.
loadFile()
- Method in class
IniFile
Loads and parses the INI file.
logoFile
- Static variable in class
BallotGUI
The file containing an image of the Hack-a-vote logo
M
MachineDefaults
- Class in
<Unnamed>
Constants that help the machine know where it is.
MachineDefaults()
- Constructor for class
MachineDefaults
main(String[])
- Static method in class
BallotControl
Main method.
main(String[])
- Static method in class
BallotGUI
Main method.
main(String[])
- Static method in class
Console
Main method.
main(String[])
- Static method in class
IniFile
main(String[])
- Static method in class
PINQueryPanel
N
NAME
- Static variable in class
BallotGUI
The name of this program ("Hack-a-vote").
nextPIN()
- Static method in class
Console
Get the next PIN
P
parseLines()
- Method in class
IniFile
Reads lines, filling in subjects, variables and values.
pinField
- Variable in class
PINQueryPanel
Text field in the PIN query panel where the PIN is entered.
PINQueryPanel
- Class in
<Unnamed>
PIN query panel.
PINQueryPanel()
- Constructor for class
PINQueryPanel
Constructs a PINQueryPanel
R
ResultsTable
- Class in
<Unnamed>
TableDemo is just like SimpleTableDemo, except that it uses a custom TableModel.
ResultsTable()
- Constructor for class
ResultsTable
S
saveFile()
- Method in class
IniFile
save the lines vector back to the INI file
saveOnChange
- Variable in class
IniFile
If true, INI file will be saved every time a value is changed.
selectedCandidate()
- Method in class
BallotPanel
Returns which candidate has been selected, or null if no candidate is yet selected
SelfTester
- Class in
<Unnamed>
SelfTester
SelfTester(BallotGUI)
- Constructor for class
SelfTester
build a new testing harness that casts random votes
SelfTester(BallotGUI, String)
- Constructor for class
SelfTester
Build a new testing harness that casts the same votes as shown in the given ballot directory.
setEnabled(boolean)
- Method in class
AdminPanel
Overrides javax.swing.JComponent.setEnabled().
setEnabled(boolean)
- Method in class
BallotGUI
Set the appropriate buttons to be enabled.
setEnabled(boolean)
- Method in class
BallotPanel
Sets all the buttons in this panel to enabled (true) or disabled (false).
setLine(String, String, String)
- Method in class
IniFile
set a line in the lines vector
setValue(String, String, String)
- Method in class
IniFile
Sets a specific subject/variable combination the given value.
startTime
- Static variable in class
MachineDefaults
The date an election starts.
subjects
- Variable in class
IniFile
A vector of all subjects
T
test(int)
- Method in class
SelfTester
Perform the test, casting the specified number of randomly decided ballots.
U
unselect()
- Method in class
BallotPanel
Causes this panel to revert to a none-selected state
update()
- Method in class
ConsoleGUI
Updates the GUI with a set of valid PIN numbers.
V
values
- Variable in class
IniFile
A vector of variable value vectors grouped by subject
variables
- Variable in class
IniFile
A vector of variable name vectors grouped by subject
A
B
C
D
E
F
G
H
I
L
M
N
P
R
S
T
U
V
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes