|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gswing.components.common.Entry org.gswing.components.common.ConstituencyEntry
public class ConstituencyEntry
Purpose: Represents an election constituency result entry. That is a single candidate's result.
Constructor Summary | |
---|---|
ConstituencyEntry(Election election,
Candidate candidate,
int votes)
Construcor. |
Method Summary | |
---|---|
Candidate |
getCandidate()
|
String |
getParticipant()
Get the contest participant, in this case the candidate's full name. |
Party |
getParty()
Get the party object. |
String |
getPartyName()
Get the party name. |
Methods inherited from class org.gswing.components.common.Entry |
---|
compareTo, getElection, getPercentage, getPosition, getVotes, incrementPosition, setPercentage, setVotes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstituencyEntry(Election election, Candidate candidate, int votes)
election
- The election this entry is part of.candidate
- The candidate details.votes
- The number of votes for this candidate.Method Detail |
---|
public String getPartyName()
getPartyName
in class Entry
public Party getParty()
getParty
in class Entry
public String getParticipant()
getParticipant
in class Entry
public Candidate getCandidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |