001 package org.hackystat.projectbrowser.page.dailyprojectdata.detailspanel; 002 003 import org.apache.wicket.markup.html.basic.Label; 004 import org.apache.wicket.markup.html.link.Link; 005 006 /** 007 * MAY NOT NEED THIS. 008 * Provides the link instance for the DailyProjectDetailsPanel. 009 * This contains a custom label, which is typically a count. 010 * You actually create these things with anonymous classes that 011 * override the onClick() method to get the desired behavior. 012 * 013 * @author Philip Johnson 014 */ 015 public class DailyProjectDetailsPanelLink extends Link { 016 017 /** For serialization. */ 018 private static final long serialVersionUID = 1L; 019 020 /** 021 * Creates the link for the DailyProjectDetailsPanel. 022 * @param id The wicket ID. 023 * @param count The count of instances. 024 */ 025 public DailyProjectDetailsPanelLink(String id, String count) { 026 super(id); 027 add(new Label("count", count)); 028 } 029 030 /** 031 * Don't need to provide this behavior, will be overridden. 032 */ 033 @Override 034 public void onClick() { 035 //do nothing. 036 } 037 }