Package uk.ac.osswatch.simal.wicket.panel

Examples of uk.ac.osswatch.simal.wicket.panel.PersonListPanel


  private static final long serialVersionUID = -8125606657250912738L;

  public UserHomePage() {
    try {
      add(new ProjectListPanel("projectList", 7));
      add(new PersonListPanel("peopleList", "People List", 7));
      add(new ProjectSummaryPanel("featuredProject"));
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get project from the repository",
          UserHomePage.class, e);
View Full Code Here


    addPersonsColumn();
  }
 

  private void addPersonsColumn() {
    PersonListPanel maintainerList = new PersonListPanel("maintainers",
        "Maintainers", project.getMaintainers(), 4, project,
        AddPersonPanel.MAINTAINER);
    add(maintainerList);

    PersonListPanel developerList = new PersonListPanel("developers",
        "Developers", project.getDevelopers(), 7, project,
        AddPersonPanel.DEVELOPER);
    add(developerList);

    PersonListPanel testerList = new PersonListPanel("testers", "Testers",
        project.getTesters(), 4, project, AddPersonPanel.TESTER);
    add(testerList);

    PersonListPanel helperList = new PersonListPanel("helpers", "Helpers",
        project.getHelpers(), 4, project, AddPersonPanel.HELPER);
    add(helperList);

    PersonListPanel documentorList = new PersonListPanel("documenters",
        "Documentors", project.getDocumenters(), 4, project,
        AddPersonPanel.DOCUMENTOR);
    add(documentorList);

    PersonListPanel translatorList = new PersonListPanel("translators",
        "Translators", project.getTranslators(), 4, project,
        AddPersonPanel.TRANSLATOR);
    add(translatorList);
  }
View Full Code Here

  private void populatePage(IDoapCategory category)
      throws SimalException {
    if (category != null) {
      add(new CategorySummaryPanel("summary", category));
      add(new ProjectListPanel("projectList", category.getProjects(), 15));
      add(new PersonListPanel("peopleList", "People working in this category", category.getPeople(), 15));
    } else {
      throw new SimalException("Cannot populate page with null category.");
    }
  }
View Full Code Here

      }
  }
 
  public void populatePage(String filter) {
    try {
      add(new PersonListPanel("personList", "People", 15, filter));
     
      add(new BookmarkablePageLink<PersonBrowserPage>("filterWithALink", PersonBrowserPage.class, new PageParameters("filter=^a(.*)")));
        add(new BookmarkablePageLink<PersonBrowserPage>("filterWithBLink", PersonBrowserPage.class, new PageParameters("filter=^b(.*)")));
        add(new BookmarkablePageLink<PersonBrowserPage>("filterWithCLink", PersonBrowserPage.class, new PageParameters("filter=^c(.*)")));
        add(new BookmarkablePageLink<PersonBrowserPage>("filterWithDLink", PersonBrowserPage.class, new PageParameters("filter=^d(.*)")));
 
View Full Code Here

public class PersonListPage extends BasePage {
  private static final long serialVersionUID = 1L;

  public PersonListPage() {
    try {
    add(new PersonListPanel("personList", "Person List", 15));
  } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
                "Unable to list people in the repository",
                PersonListPage.class, e);
            setResponsePage(new ErrorReportPage(error));
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.wicket.panel.PersonListPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.