|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gswing.components.common.Party
public class Party
Purpose: Represents a political party.
| Field Summary | |
|---|---|
static String |
IND
Independent abbreviation. |
static String |
IND_CON
Independent conservative abbreviation. |
static String |
IND_GRN
Independent green abbreviation. |
static String |
IND_LAB
Independent Labour abbreviation. |
static String |
INDEPENDENT
Independent full name string. |
static String |
OTHERS
Other party. |
| Constructor Summary | |
|---|---|
Party(String abbreviation,
String fullName)
Constructor. |
|
Party(String abbreviation,
String fullName,
boolean useProperties)
Constructor. |
|
Party(String abbreviation,
String fullName,
URL homePage)
Constructor. |
|
Party(String abbreviation,
String fullName,
URL homePage,
boolean useProperties)
Contructor. |
|
| Method Summary | |
|---|---|
String |
getAbbreviation()
Get the party's abbreviation. |
Color |
getColour()
Get the party's colour. |
String |
getFullName()
Get the party's fullname. |
URL |
getHomePage()
|
static String |
independentCheck(String constituency,
String party)
Independent candidates are unique in that there can be more than one standing in a particular constituency. |
static void |
resetIndependentCounter()
Reset the hashtable containing independent counters. |
void |
setAbbreviation(String abbreviation)
Set the party's abbreviation. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String INDEPENDENT
public static final String IND
public static final String IND_LAB
public static final String IND_CON
public static final String IND_GRN
public static final String OTHERS
| Constructor Detail |
|---|
public Party(String abbreviation,
String fullName)
abbreviation - The party abbreviation.fullName - The party full name.
public Party(String abbreviation,
String fullName,
URL homePage)
abbreviation - The party abbreviation.fullName - The party full name.homePage - The party's home page.
public Party(String abbreviation,
String fullName,
boolean useProperties)
abbreviation - The party abbreviation.fullName - The party full name.useProperties - Whether or not to use the Propeties to get party
colours.
public Party(String abbreviation,
String fullName,
URL homePage,
boolean useProperties)
abbreviation - The party abbreviation.fullName - The party full name.homePage - The party's home page URL.useProperties - Whether or not to use the Propeties to get party
colours.| Method Detail |
|---|
public String getAbbreviation()
public String getFullName()
public Color getColour()
public void setAbbreviation(String abbreviation)
abbreviation - The party's abbreviation.
public static String independentCheck(String constituency,
String party)
constituency - The name of the constituency.party - The political party.public static void resetIndependentCounter()
public URL getHomePage()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||