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 DeviationClassifier.
010     * @author Shaoxuan Zhang
011     *
012     */
013    public class StreamDeviationClassifierConfigurationPanel extends Panel {
014    
015      /** Support serialization. */
016      private static final long serialVersionUID = 7818693587716425217L;
017      
018      /**
019       * @param id The Wicket component ID.
020       * @param deviationClassifier the {@link StreamDeviationClassifier} to be configured.
021       */
022      public StreamDeviationClassifierConfigurationPanel(String id, 
023          StreamDeviationClassifier deviationClassifier) {
024        super(id);
025    
026        add(new TextField("unacceptableDeviation", 
027            new PropertyModel(deviationClassifier, "unacceptableDeviation")));
028        add(new TextField("moderateDeviation", 
029            new PropertyModel(deviationClassifier, "moderateDeviation")));
030        add(new TextField("expectationValue", 
031            new PropertyModel(deviationClassifier, "expectationValue")));
032        add(new CheckBox("scaleWithGranularity", 
033            new PropertyModel(deviationClassifier, "scaleWithGranularity")));
034      }
035    
036    
037    }