001 package org.hackystat.projectbrowser.page.projectportfolio.detailspanel.chart; 002 003 import org.apache.wicket.markup.html.form.CheckBox; 004 import org.apache.wicket.markup.html.form.TextField; 005 import org.apache.wicket.markup.html.panel.Panel; 006 import org.apache.wicket.model.PropertyModel; 007 008 /** 009 * Panel to configure the StreamParticipationClassifier. 010 * @author Shaoxuan Zhang 011 * 012 */ 013 public class StreamParticipationClassifierConfigurationPanel extends Panel { 014 015 /** Support serialization. */ 016 private static final long serialVersionUID = -8949053875882960644L; 017 018 /** 019 * @param id The Wicket component id. 020 * @param streamParticipationClassifier The {@link StreamParticipationClassifier} to set. 021 */ 022 public StreamParticipationClassifierConfigurationPanel(String id, 023 StreamParticipationClassifier streamParticipationClassifier) { 024 super(id); 025 026 add(new TextField("memberPercentage", 027 new PropertyModel(streamParticipationClassifier, "memberPercentage"))); 028 add(new TextField("thresholdValue", 029 new PropertyModel(streamParticipationClassifier, "thresholdValue"))); 030 add(new TextField("frequencyPercentage", 031 new PropertyModel(streamParticipationClassifier, "frequencyPercentage"))); 032 add(new CheckBox("scaleWithGranularity", 033 new PropertyModel(streamParticipationClassifier, "scaleWithGranularity"))); 034 } 035 036 037 }