@@ -0,0 +1,1151 @@
+package to.etc.domui.dom.header;%0A%0Aimport to.etc.domui.dom.*;%0Aimport to.etc.domui.dom.html.*;%0A%0Afinal public class FaviconContributor extends HeaderContributor %7B%0A%09private String m_favicon;%0A%0A%09public FaviconContributor(String favicon) %7B%0A%09%09m_favicon = favicon;%0A%09%7D%0A%0A%09@Override%0A%09public void contribute(HtmlFullRenderer r) throws Exception %7B%0A%09%09IBrowserOutput o = r.o();%0A%0A%09%09o.tag(%22link%22);%0A%09%09o.attr(%22rel%22, %22shortcut icon%22);%0A%09%09o.attr(%22href%22, r.ctx().getRelativePath(m_favicon));%0A%09%09o.endtag();%0A%09%09o.closetag(%22link%22);%0A%09%7D%0A%0A%09@Override%0A%09public void contribute(OptimalDeltaRenderer r) throws Exception %7B%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((m_favicon == null) ? 0 : m_favicon.hashCode());%0A%09%09return result;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if(this == obj)%0A%09%09%09return true;%0A%09%09if(obj == null)%0A%09%09%09return false;%0A%09%09if(getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09FaviconContributor other = (FaviconContributor) obj;%0A%09%09if(m_favicon == null) %7B%0A%09%09%09if(other.m_favicon != null)%0A%09%09%09%09return false;%0A%09%09%7D else if(!m_favicon.equals(other.m_favicon))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%7D%0A

Add contributor for favicon