org.apache.myfaces.trinidadinternal.skin.icon
Class URIImageIcon

java.lang.Object
  extended by org.apache.myfaces.trinidad.skin.Icon
      extended by org.apache.myfaces.trinidadinternal.skin.icon.BaseImageIcon
          extended by org.apache.myfaces.trinidadinternal.skin.icon.URIImageIcon

public class URIImageIcon
extends BaseImageIcon

ImageIcon implementation which takes a full URI.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/skin/icon/URIImageIcon.java#0 $) $Date: 10-nov-2005.18:59:05 $
Author:
The Oracle ADF Faces Team

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
URIImageIcon(java.lang.String uri, java.lang.Integer width, java.lang.Integer height)
          Creates a URIImageIcon which uses the specified URI regardless of the reading direction.
URIImageIcon(java.lang.String uri, java.lang.String rtlURI, java.lang.Integer width, java.lang.Integer height)
          Creates a URIImageIcon which has a different URI depending on the reading direction.
URIImageIcon(java.lang.String uri, java.lang.String rtlURI, java.lang.Integer width, java.lang.Integer height, java.lang.String styleClass, Style inlineStyle)
          Creates a URIImageIcon which has a different 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().
 
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, openStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIImageIcon

public URIImageIcon(java.lang.String uri,
                    java.lang.Integer width,
                    java.lang.Integer height)
Creates a URIImageIcon which uses the specified URI regardless of the reading direction.

Parameters:
uri - The full URI to the image
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.

URIImageIcon

public URIImageIcon(java.lang.String uri,
                    java.lang.String rtlURI,
                    java.lang.Integer width,
                    java.lang.Integer height)
Creates a URIImageIcon which has a different URI depending on the reading direction.

Parameters:
uri - The URI of the left-to-right version of the image
rtlURI - The URI of the right-to-left version of the image
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.

URIImageIcon

public URIImageIcon(java.lang.String uri,
                    java.lang.String rtlURI,
                    java.lang.Integer width,
                    java.lang.Integer height,
                    java.lang.String styleClass,
                    Style inlineStyle)
Creates a URIImageIcon which has a different URI depending on the reading direction.

Parameters:
uri - The URI of the left-to-right version of the image
rtlURI - The URI of the right-to-left version of the image
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 icon
inlineStyle - The inline style for the image icon
Method Detail

getBaseURI

protected java.lang.String getBaseURI(javax.faces.context.FacesContext context,
                                      org.apache.myfaces.trinidad.context.RenderingContext arc)
Implementation of BaseImageIcon.getBaseURI(). The base URI for URIImageIcon is always null, as a full URI has already been provided.

Specified by:
getBaseURI in class BaseImageIcon


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.