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

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


public class UserHomePage extends BasePage {
  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",
View Full Code Here


  /**
   * Create a default page that lists all projects in the repository.
   */
  public ProjectBrowserPage() {
      try {
          add(new ProjectListPanel("projectList", 15));
        } catch (SimalRepositoryException e) {
          UserReportableException error = new UserReportableException(
              "Unable to get projects from the repository",
              PersonBrowserPage.class, e);
          setResponsePage(new ErrorReportPage(error));
View Full Code Here

  /**
   * Create a page that lists only the projects supplied.
   */
  public ProjectBrowserPage(Set<IProject> projects) {
      try {
          add(new ProjectListPanel("projectList", projects, 15));
        } catch (SimalRepositoryException e) {
          UserReportableException error = new UserReportableException(
              "Unable to get projects from the repository",
              PersonBrowserPage.class, e);
          setResponsePage(new ErrorReportPage(error));
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

  }

  private void populatePage(IPerson person) throws SimalRepositoryException {
    add(new PersonSummaryPanel("summary", person));
    add(new ColleaguesPanel("colleagues", person));
    add(new ProjectListPanel("projects", person.getProjects(), 15));

    // source
    add(getRepeatingDataSourcePanel("sources", "seeAlso", person.getSources()));

    // FOAF link
View Full Code Here

TOP

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

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.