org.wings
Class SResourceIcon
java.lang.Object
org.wings.Resource
org.wings.StaticResource
org.wings.resource.ClassPathResource
org.wings.SResourceIcon
- All Implemented Interfaces:
- Serializable, Renderable, NamedResource, SIcon, URLResource
public class SResourceIcon
- extends ClassPathResource
- implements SIcon
SIcon that gets it's content from an image found in the classpath.
i.e. an image that is deployed in the classes/jar/war file.
An SIcon of this type is externalized globally. It is not bound
to a session.
- Author:
- Armin Haaf
- See Also:
- Serialized Form
| Methods inherited from class org.wings.StaticResource |
bufferResource, getExternalizerFlags, getId, getLength, getMaxBufferSize, getURL, resolveName, setExternalizerFlags, setMaxBufferSize, setMimeType, toString, write |
SResourceIcon
public SResourceIcon(String resourceFileName)
SResourceIcon
public SResourceIcon(ClassLoader classLoader,
String resourceFileName)
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface SIcon
- Returns:
- the width of the icon, or -1 if unknown.
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface SIcon
- Returns:
- the height of the icon, or -1 if unknown.
setIconWidth
public void setIconWidth(int width)
- Description copied from interface:
SIcon
- sets the width of the icon, -1 if unknown.
- Specified by:
setIconWidth in interface SIcon
setIconHeight
public void setIconHeight(int height)
- Description copied from interface:
SIcon
- sets the height of the icon, -1 if unknown.
- Specified by:
setIconHeight in interface SIcon
getIconTitle
public String getIconTitle()
- Description copied from interface:
SIcon
- gets the title of the icon, empty String if unknown.
- Specified by:
getIconTitle in interface SIcon
setIconTitle
public void setIconTitle(String title)
- Description copied from interface:
SIcon
- sets the title of the icon, empty String if unknown.
- Specified by:
setIconTitle in interface SIcon
wingS Swings ;-)