org.gswing.components.common
Class ListEntry

java.lang.Object
  extended by org.gswing.components.common.Entry
      extended by org.gswing.components.common.ListEntry
All Implemented Interfaces:
Serializable, Comparable<Entry>

public class ListEntry
extends Entry

Purpose: Represents an election list result entry.

See Also:
Serialized Form

Constructor Summary
ListEntry(Election election, Party party, int votes)
          Construcor.
 
Method Summary
 String getParticipant()
          Get the contest particapant.
 Party getParty()
          Get the party object.
 String getPartyName()
          Get the candidate details.
 
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

ListEntry

public ListEntry(Election election,
                 Party party,
                 int votes)
Construcor.

Parameters:
election - The election this entry is part of.
party - The party details.
votes - The number of votes for this candidate.
Method Detail

getPartyName

public String getPartyName()
Get the candidate details.

Specified by:
getPartyName in class Entry
Returns:
The candidate details.

getParty

public Party getParty()
Get the party object.

Specified by:
getParty in class Entry
Returns:
The the party object.

getParticipant

public String getParticipant()
Get the contest particapant.

Specified by:
getParticipant in class Entry
Returns:
The the contest participant.


Copyright © 2008. All Rights Reserved.