001    package org.hackystat.projectbrowser.page.sensordata;
002    
003    import org.apache.wicket.markup.html.basic.Label;
004    import org.apache.wicket.markup.html.link.Link;
005    
006    /**
007     * Provides the link instance for the SdtSummary Panel. 
008     * This contains a custom label, which is the count.
009     * @author Philip Johnson
010     */
011    public class SdtSummaryPanelLink extends Link {
012      
013      /** For serialization. */
014      private static final long serialVersionUID = 1L;
015    
016      protected String sdtName;
017      protected String tool;
018      /**
019       * Creates the link in the SdtSummary Panel.
020       * @param id The wicket ID.
021       * @param label The label for this link
022       * @param sdtName The sensor data type name.
023       * @param tool The tool. 
024       */
025      public SdtSummaryPanelLink(String id, String label, String sdtName, String tool) {
026        super(id);
027        this.sdtName = sdtName;
028        this.tool = tool;
029        add(new Label("LinkLabel", label));
030      }
031    
032      /**
033       * Don't need to provide this behavior, will be overridden when instantiating the link.
034       */
035      @Override
036      public void onClick() {
037        //do nothing.
038      }
039    }