Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.myfaces.wap.def
Class GraphicImage  view GraphicImage download GraphicImage.java

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIGraphic
              extended byorg.apache.myfaces.wap.def.GraphicImage
All Implemented Interfaces:
javax.faces.component.StateHolder

public class GraphicImage
extends javax.faces.component.UIGraphic

Renders an WML "img" element. Render the value of the component as the value of the "src" attribute, after passing it to the getResourceURL() method of the ViewHandler for this application, and passing the result through the encodeResourceURL() method of theExternalContext. Render the value of the alt attribute as the value of the "alt" attribute. If the "styleClass" attribute is specified, render its value as the value of the "class" attribute.

Version:
$Revision: 1.1 $ $Date: 2004/12/30 09:37:25 $ $Log: GraphicImage.java,v $ Revision 1.1 2004/12/30 09:37:25 matzew added a new RenderKit for WML. Thanks to Jirí Žaloudek

Field Summary
(package private)  java.lang.String align
          This attribute specifies image alignment within the text flow and with respect to the current insertion point.
(package private)  java.lang.String alt
          This attribute specifies an alternative textual representation for the image.
(package private)  java.lang.String binding
          The value binding expression linking this component to a property in a backing bean.
(package private)  java.lang.String height
          This attribute give user agents an idea of the size of an image or object so that they may reserve space for it and continue rendering the card while waiting for the image data.
(package private)  java.lang.String hspace
          This attribute specify the amount of white space to be inserted to the left and right the image.
(package private)  java.lang.String id
          The component identifier for the associated component.
(package private)  java.lang.String localsrc
          This attribute specifies an alternative internal representation for the image.
(package private)  boolean rendered
          Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
(package private)  java.lang.String styleClass
          The attribute styleClass affiliates an element with one or more classes.
(package private)  java.lang.String url
          This attribute specifies the URI for the image.
(package private)  java.lang.String value
          The current value of this component.
(package private)  java.lang.String vspace
          This attribute specify the amount of white space to be inserted to the above and below the image.
(package private)  java.lang.String width
          This attribute give user agents an idea of the size of an image or object so that they may reserve space for it and continue rendering the card while waiting for the image data.
(package private)  java.lang.String xmllang
          The xml:lang attribute specifies the natural or formal language of an element or its attributes.
 
Fields inherited from class javax.faces.component.UIGraphic
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponentBase
 
Constructor Summary
GraphicImage()
           
 
Methods inherited from class javax.faces.component.UIGraphic
getFamily, getUrl, getValue, getValueBinding, restoreState, saveState, setUrl, setValue, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alt

java.lang.String alt
This attribute specifies an alternative textual representation for the image. This representation is used when the image can not be displayed using any other method (i.e., the user agent does not support images, or the image contents can not be found).


url

java.lang.String url
This attribute specifies the URI for the image. If the browser supports images, it downloads the image from the specified URI and renders it when the text is being displayed.


localsrc

java.lang.String localsrc
This attribute specifies an alternative internal representation for the image. This representation is used if it exists; otherwise the image is downloaded from the URI specified in the src attribute, i.e., any localsrc parameter specified takes precedence over the image specified in the src parameter.


vspace

java.lang.String vspace
This attribute specify the amount of white space to be inserted to the above and below the image. The default value for this attribute is zero indicating that no white space should be inserted. If length is specified as a percentage value, the space inserted is based on the available horizontal or vertical space. This attribute is hints to the user agent and may be ignored.


hspace

java.lang.String hspace
This attribute specify the amount of white space to be inserted to the left and right the image. The default value for this attribute is zero indicating that no white space should be inserted. If length is specified as a percentage value, the space inserted is based on the available horizontal or vertical space. This attribute is hints to the user agent and may be ignored.


align

java.lang.String align
This attribute specifies image alignment within the text flow and with respect to the current insertion point. Align has three possible values: (top|middle|bottom)


height

java.lang.String height
This attribute give user agents an idea of the size of an image or object so that they may reserve space for it and continue rendering the card while waiting for the image data. User agents may scale objects and images to match these values if appropriate. If length is specified as a percentage value, the resulting size is based on the available vertical space, not on the natural size of the image. This attribute is a hint to the user agent and may be ignored.


width

java.lang.String width
This attribute give user agents an idea of the size of an image or object so that they may reserve space for it and continue rendering the card while waiting for the image data. User agents may scale objects and images to match these values if appropriate. If length is specified as a percentage value, the resulting size is based on the available horizontal space, not on the natural size of the image. This attribute is a hint to the user agent and may be ignored.


styleClass

java.lang.String styleClass
The attribute styleClass affiliates an element with one or more classes. Multiple elements can be given the same styleClass name.


xmllang

java.lang.String xmllang
The xml:lang attribute specifies the natural or formal language of an element or its attributes.


value

java.lang.String value
The current value of this component.


id

java.lang.String id
The component identifier for the associated component.


rendered

boolean rendered
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.


binding

java.lang.String binding
The value binding expression linking this component to a property in a backing bean.

Constructor Detail

GraphicImage

public GraphicImage()