Package eu.webtoolkit.jwt
Class WResourceFavicon
java.lang.Object
eu.webtoolkit.jwt.WFavicon
eu.webtoolkit.jwt.WResourceFavicon
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWResourceFavicon(WResource resource) Constructs aWResourceFavicon.WResourceFavicon(String filename) Constructs aWResourceFaviconfrom a file.WResourceFavicon(String filename, String mimeType) Constructs aWResourceFaviconfrom a file. -
Method Summary
Modifier and TypeMethodDescriptionReturns the resource.getUrl()Returns the url to the favicon.voidsetResource(WResource resource) Sets the default favicon.
-
Constructor Details
-
WResourceFavicon
Constructs aWResourceFavicon.Constructs a
WResourceFaviconfrom aWResource. -
WResourceFavicon
Constructs aWResourceFaviconfrom a file.This is a constructor that automatically creates a
WResourceFaviconof WFileResource using the given filename and MIME type.By default, the MIME type is application/octet-stream, which lets the browser guess the MIME type.
-
WResourceFavicon
Constructs aWResourceFaviconfrom a file.
-
-
Method Details