Uses of Class
edu.pdx.cs.joy.family.Person
Packages that use Person
Package
Description
The package contains a family tree application that uses many of
the classes that we discuss in The Joy of Coding.
-
Uses of Person in edu.pdx.cs.joy.family
Methods in edu.pdx.cs.joy.family that return PersonModifier and TypeMethodDescription(package private) static PersonReturns a Person representing my dad.PersonDAO.findById(int id) Finds a person by their ID.PersonDAOImpl.findById(int id) Finds a person by their ID.Person.getFather()Returns this person's father.Marriage.getHusband()Returns the husband in this marriage.Person.getMother()Returns this person's mother.AddPersonDialog.getPerson()Returns thePersoncreated by thisAddPersonDialog.ChoosePersonDialog.getPerson()Returns the choosen personEditPersonDialog.getPerson()Returns thePersoncreated by thisEditPersonDialog.FamilyTree.getPerson(int id) Returns a person in this family tree with a given id.FamilyTreeList.getSelectedPerson()Returns the currently selected person.Marriage.getWife()Returns the wife in this marriage.(package private) static PersonPersonMain.me()Returns a Person representing me.(package private) static PersonReturns a Person representing my mom.PersonPanel.showFather()Displays and returns the current person's fatherPersonPanel.showMother()Displays the current person's motherMethods in edu.pdx.cs.joy.family that return types with arguments of type PersonModifier and TypeMethodDescriptionPersonDAO.findAll()Finds all persons in the database.PersonDAOImpl.findAll()Finds all persons in the database.FamilyTree.getPeople()Returns a collection ofPersons that are in this family tree.Methods in edu.pdx.cs.joy.family with parameters of type PersonModifier and TypeMethodDescriptionvoidAdds a person to this family tree.intCompares twoPersons.(package private) static PersonReturns a Person representing my dad.(package private) static PersonReturns a Person representing my mom.voidSaves a person to the database.voidSaves a person to the database.voidSets this person's father.voidSets this person's mother.voidFamilyTreeList.setSelectedPerson(Person person) Sets the selected person.(package private) voidFamilyTreeGUI.showPerson(Person person) Sets thePersondisplayed in the GUI(package private) voidFamilyTreePanel.showPerson(Person person) Sets thePersondisplayed in the GUIvoidPersonPanel.showPerson(Person person) Displays information about aPersonin thisPersonPanel.voidUpdates an existing person in the database.voidUpdates an existing person in the database.Constructors in edu.pdx.cs.joy.family with parameters of type PersonModifierConstructorDescriptionEditMarriageDialog(Person spouse, JFrame owner, FamilyTree tree) Creates a newEditMarriageDialogfor creating a new marriage involving one person.EditPersonDialog(Person person, JFrame owner, FamilyTree tree) Creates a newEditPersonDialogfor editing an existing Person.Creates a marriage between a husband and a wife.(package private)RemotePersonImpl(RemoteFamilyTree tree, Person person) Creates a newRemotePersonImplthat delegates most of its behavior to a givenPerson.Constructor parameters in edu.pdx.cs.joy.family with type arguments of type PersonModifierConstructorDescriptionMarriageDAOImpl(Connection connection, Map<Integer, Person> personCache) Creates a new MarriageDAOImpl with the specified database connection.