01: package org.wings.header;
02:
03: import org.wings.URLResource;
04: import org.wings.resource.DefaultURLResource;
05:
06: /**
07: * Use this to add a favicon (header) to a frame.
08: * <code>
09: * frame.addHeader(new FaviconHeader("../images/favicon.ico"));
10: * </code>
11: */
12: public class FaviconHeader extends Link {
13:
14: public FaviconHeader(String url) {
15: this (new DefaultURLResource(url));
16: }
17:
18: public FaviconHeader(URLResource resource) {
19: super ("shortcut icon", null, "image/vnd.microsoft.icon", null,
20: resource);
21: }
22:
23: }
|