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