001 package org.hackystat.projectbrowser.page.projectportfolio.configurationpanel; 002 003 import org.apache.wicket.markup.html.panel.Panel; 004 import org.hackystat.projectbrowser.page.projectportfolio.detailspanel.ProjectPortfolioDataModel; 005 006 /** 007 * Panel for user to configure Project Portfolio. 008 * Such as select analyses and configure their parameters. 009 * @author Shaoxuan Zhang 010 * 011 */ 012 public class ProjectPortfolioConfigurationPanel extends Panel { 013 /** Support serialization. */ 014 private static final long serialVersionUID = 7222939734399409429L; 015 /** The configuration form to use. */ 016 private ProjectPortfolioConfigurationForm configForm; 017 018 /** 019 * @param id the wicket component id. 020 * @param dataModel the data model that will be configure here. 021 */ 022 public ProjectPortfolioConfigurationPanel(String id, ProjectPortfolioDataModel dataModel) { 023 super(id); 024 025 configForm = 026 new ProjectPortfolioConfigurationForm("configurationForm", dataModel); 027 configForm.setOutputMarkupId(true); 028 add(configForm); 029 } 030 031 /** 032 * @return the configuration form. 033 */ 034 public ProjectPortfolioConfigurationForm getForm() { 035 return this.configForm; 036 } 037 }