|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.skin.Icon
org.apache.myfaces.trinidadinternal.skin.icon.BaseImageIcon
org.apache.myfaces.trinidadinternal.skin.icon.ContextImageIcon
public class ContextImageIcon
An Icon implementation for icons which are under the ServletContext root.
| Field Summary |
|---|
| Fields inherited from class org.apache.myfaces.trinidad.skin.Icon |
|---|
ALIGN_KEY, EMBEDDED_KEY, HEIGHT_KEY, ID_KEY, INLINE_STYLE_KEY, SHORT_DESC_KEY, STYLE_CLASS_KEY, WIDTH_KEY |
| Constructor Summary | |
|---|---|
ContextImageIcon(java.lang.String uri,
java.lang.Integer width,
java.lang.Integer height)
Creates a ContextImageIcon which uses the specified image URI regardless of the reading direction. |
|
ContextImageIcon(java.lang.String uri,
java.lang.String rtlURI,
java.lang.Integer width,
java.lang.Integer height)
Creates an ContextImageIcon which has a different image URI depending on the reading direction. |
|
ContextImageIcon(java.lang.String uri,
java.lang.String rtlURI,
java.lang.Integer width,
java.lang.Integer height,
java.lang.String styleClass,
org.apache.myfaces.trinidad.style.Style inlineStyle)
Creates an ContextImageIcon which has a different image URI depending on the reading direction. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getBaseURI(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
Implementation of BaseImageIcon.getBaseURI(). |
java.io.InputStream |
openStream(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
Override of Icon.getImageIcon(). |
| Methods inherited from class org.apache.myfaces.trinidadinternal.skin.icon.BaseImageIcon |
|---|
getImageHeight, getImageURI, getImageWidth, getRelativeURI, renderIcon |
| Methods inherited from class org.apache.myfaces.trinidad.skin.Icon |
|---|
isNull |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextImageIcon(java.lang.String uri,
java.lang.Integer width,
java.lang.Integer height)
uri - The URI to the image, relative to the
servlet context root.width - An Integer representing the width of the icon,
or null if the width is not known.height - An Integer representing the height of the icon,
or null if the height is not known.
public ContextImageIcon(java.lang.String uri,
java.lang.String rtlURI,
java.lang.Integer width,
java.lang.Integer height)
uri - The URI of the left-to-right version of the image,
relative to the servlet context root.rtlURI - The URI of the right-to-left version of the image,
relative to the servlet context root.width - An Integer representing the width of the icon,
or null if the width is not known.height - An Integer representing the height of the icon,
or null if the height is not known.
public ContextImageIcon(java.lang.String uri,
java.lang.String rtlURI,
java.lang.Integer width,
java.lang.Integer height,
java.lang.String styleClass,
org.apache.myfaces.trinidad.style.Style inlineStyle)
uri - The URI of the left-to-right version of the image,
relative to the servlet context root.rtlURI - The URI of the right-to-left version of the image,
relative to the servlet context root.width - An Integer representing the width of the icon,
or null if the width is not known.height - An Integer representing the height of the icon,
or null if the height is not known.styleClass - The style class for the image iconinlineStyle - The inline style for the image icon| Method Detail |
|---|
public java.io.InputStream openStream(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
throws java.io.IOException
openStream in class org.apache.myfaces.trinidad.skin.Iconjava.io.IOException
protected java.lang.String getBaseURI(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
getBaseURI in class BaseImageIcon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||