Name

UIGraphic

Synopsis

This class represents a graphic image component. A graphic image component can be used standalone or as a child of a component with a link renderer, to render a clickable link image. The default rendererType is javax.faces.Image.

Class name:

javax.faces.component.UIGraphic

Extends:

javax.faces.component.UIComponentBase

Implements:

javax.faces.component.StateHolder

Fields

public static String COMPONENT_FAMILY

The component family: javax.faces.Graphic.

public static String COMPONENT_TYPE

The component family: javax.faces.Graphic.

Constructor

public UIGraphic()

Creates a new instance.

Methods

public String getFamily()

Returns the component family ID.

public String getUrl()

Returns the image URL.

public Object getValue()

Returns the component’s value (the image URL).

public javax.faces.el.ValueBinding getValueBinding(String name)

If the name is url, calls the superclass with the name value instead. Delegates request for all other properties to the superclass directly.

public void restoreState(javax.faces.context.FacesContext context, Object state)

Restores the state for this instance from the provided value; an Object previously returned by the saveState() method.

public Object saveState(javax.faces.context.FacesContext context)

Returns the state for this instance as an Object to be passed to the restoreState() method when the instance is restored for the next request.

public void setUrl(String url)

Sets the image URL.

public void setValue(Object value)

Sets ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.