|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.codescore.controllers.UIController
net.codescore.controllers.SchoolController
public class SchoolController
| Field Summary | |
|---|---|
private School |
school
|
private SchoolTree |
st
|
private Competition |
tempComp
|
private Person |
tempPerson
|
private Team |
tempTeam
|
| Fields inherited from class net.codescore.controllers.UIController |
|---|
log, SLEEP_TIME |
| Constructor Summary | |
|---|---|
SchoolController(Desktop d,
School s)
|
|
| Method Summary | |
|---|---|
void |
addCoach()
Adds the last person set using setPerson(Person) as a coach. |
void |
addCoach(Person p)
Add a new coach to this school |
void |
addCompetitor()
Add a competitor using the stored person, team and competition set using setPerson(Person), setCompetition(Competition) and
setTeam(Team). |
void |
addCompetitor(Person p,
Team t,
Competition c)
Add a competitor |
void |
addPerson(String name,
String email)
Add a new person, the person will belong to this school |
void |
addTeam(String Name)
Add a new team to this school |
Competition |
getCompetition()
|
ObjectContext |
getObjectContext()
|
Person |
getPerson()
|
School |
getSchool()
|
Team |
getTeam()
|
void |
processUpdates()
Called by the UI controller thread when there are updates pending |
void |
setCompetition(Competition c)
|
void |
setPerson(Person p)
|
void |
setSchoolTree(SchoolTree s)
Set the reference to the school tree. |
void |
setTeam(Team t)
|
| Methods inherited from class net.codescore.controllers.UIController |
|---|
run, setPendingUpdates, stopRunning, toString, updateDesktop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final School school
private SchoolTree st
private Competition tempComp
private Person tempPerson
private Team tempTeam
| Constructor Detail |
|---|
public SchoolController(Desktop d,
School s)
| Method Detail |
|---|
public void addCoach()
setPerson(Person) as a coach.
This is useful when the auto drop down is used to select a person.
public void addCoach(Person p)
p - The person to make a coachpublic void addCompetitor()
setPerson(Person), setCompetition(Competition) and
setTeam(Team).
public void addCompetitor(Person p,
Team t,
Competition c)
p - The Person to uset - The Team the person is onc - The competition
public void addPerson(String name,
String email)
name - The name of the personemail - The person's e-mailpublic void addTeam(String Name)
Name - The name of the teampublic Competition getCompetition()
getCompetition in interface CompTargetpublic ObjectContext getObjectContext()
getObjectContext in interface ContextObjectpublic Person getPerson()
getPerson in interface PersonTargetpublic School getSchool()
public Team getTeam()
getTeam in interface TeamTargetpublic void processUpdates()
Controller
processUpdates in interface ControllerprocessUpdates in class UIControllerpublic void setCompetition(Competition c)
setCompetition in interface CompTargetpublic void setPerson(Person p)
setPerson in interface PersonTargetpublic void setSchoolTree(SchoolTree s)
s - The school tree to be updated when changes are made to this
controller.public void setTeam(Team t)
setTeam in interface TeamTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||