public void listChildrenOfParents(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Show", "Cancel"}, new ListAllChildrenOfParentMainPane(persons), "List all Children of Parent (based on ID)", iconImage); frame.setVisible(true); }
public void registerChildWithParent(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Register", "Cancel"}, new RegisterChildWithParentMainPane(persons), "Register a Child with a Parent", iconImage); frame.setVisible(true); }
public void removeAPerson(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Remove", "Cancel"}, new RemovePersonMainPane(persons), "Remove Person(s)", iconImage); frame.setVisible(true); }
public void findPerson(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Search", "Cancel"}, new SearchPersonByNameMainPane(persons), "Seach for Person(s) (based on name)", iconImage); frame.setVisible(true); }
public void registerAPerson(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Register", "Cancel"}, new RegisterPersonMainPane(persons), "Register a Person", iconImage); frame.setVisible(true); }
public void calcTotalWeeklyFee(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Recalculate", "Cancel"}, new CalcTotalFee(persons), "Calculate Weekly Income for All Children", iconImage); frame.addRequestNewListListener( new RequestNewListListener() { @Override public void RequestNewList(RequestNewListEvent arg0) { SubFrame sf = (SubFrame) arg0.getSource(); sf.setPersonList(persons); } }); frame.setBounds(100, 100, 300, 105); frame.setVisible(true); }
public void listPersons(List<Person> creche) { SubFrame frame = new SubFrame( new String[] {"Refresh", "Cancel"}, new ListPersonMainPane(persons, false), "List All Persons", iconImage); if (!test) { frame.addRequestNewListListener( new RequestNewListListener() { @Override public void RequestNewList(RequestNewListEvent arg0) { SubFrame sf = (SubFrame) arg0.getSource(); sf.setPersonList(persons); } }); } frame.setVisible(true); }