org.apache.myfaces.custom.swapimage
Class HtmlSwapImage

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIGraphic
              extended by org.apache.myfaces.custom.swapimage.AbstractHtmlSwapImage
                  extended by org.apache.myfaces.custom.swapimage.HtmlSwapImage
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, AlignProperty, EventAware, StyleAware, UniversalProperties

public class HtmlSwapImage
extends AbstractHtmlSwapImage


Nested Class Summary
protected static class HtmlSwapImage.PropertyKeys
           
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
 
Constructor Summary
HtmlSwapImage()
           
 
Method Summary
 void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
           
 String getActiveImageUrl()
          activeImage will be rendered if: swapImage is a direct child of commandNavigation and the commandNavigation.isActive
 String getAlign()
          HTML: Specifies the horizontal alignment of this element.
 String getAlt()
          HTML: Specifies alternative text that can be used by a browser that can't show this element.
 String getBorder()
          HTML: Specifies the width of the border of this element, in pixels.
 String getDir()
          HTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
 Collection<String> getEventNames()
           
 String getFamily()
           
 String getHeight()
          HTML: Overrides the natural height of this image, by specifying height in pixels.
 String getHspace()
          HTML: The amount of white space to be inserted to the left and right of this element, in undefined units.
 String getLang()
          HTML: The base language of this document.
 String getLongdesc()
          HTML: A link to a long description of the image.
 String getOnclick()
          HTML: Script to be invoked when the element is clicked.
 String getOndblclick()
          HTML: Script to be invoked when the element is double-clicked.
 String getOnkeydown()
          HTML: Script to be invoked when a key is pressed down over this element.
 String getOnkeypress()
          HTML: Script to be invoked when a key is pressed over this element.
 String getOnkeyup()
          HTML: Script to be invoked when a key is released over this element.
 String getOnmousedown()
          HTML: Script to be invoked when the pointing device is pressed over this element.
 String getOnmousemove()
          HTML: Script to be invoked when the pointing device is moved while it is in this element.
 String getOnmouseout()
          HTML: Script to be invoked when the pointing device is moves out of this element.
 String getOnmouseover()
          HTML: Script to be invoked when the pointing device is moved into this element.
 String getOnmouseup()
          HTML: Script to be invoked when the pointing device is released over this element.
 String getStyle()
          HTML: CSS styling instructions.
 String getStyleClass()
          The CSS class for this element.
 String getSwapImageUrl()
          the url of the image displayed onmouseover
 String getTitle()
          HTML: An advisory title for this element.
 String getUsemap()
          HTML: Specifies an image map to use with this image.
 String getVspace()
          HTML: The amount of white space to be inserted above and below this element, in undefined units.
 String getWidth()
          HTML: Overrides the natural width of this image, by specifying width in pixels.
 boolean isIsmap()
          HTML: Specifies server-side image map handling for this image.
 void setActiveImageUrl(String activeImageUrl)
           
 void setAlign(String align)
           
 void setAlt(String alt)
           
 void setBorder(String border)
           
 void setDir(String dir)
           
 void setHeight(String height)
           
 void setHspace(String hspace)
           
 void setIsmap(boolean ismap)
           
 void setLang(String lang)
           
 void setLongdesc(String longdesc)
           
 void setOnclick(String onclick)
           
 void setOndblclick(String ondblclick)
           
 void setOnkeydown(String onkeydown)
           
 void setOnkeypress(String onkeypress)
           
 void setOnkeyup(String onkeyup)
           
 void setOnmousedown(String onmousedown)
           
 void setOnmousemove(String onmousemove)
           
 void setOnmouseout(String onmouseout)
           
 void setOnmouseover(String onmouseover)
           
 void setOnmouseup(String onmouseup)
           
 void setStyle(String style)
           
 void setStyleClass(String styleClass)
           
 void setSwapImageUrl(String swapImageUrl)
           
 void setTitle(String title)
           
 void setUsemap(String usemap)
           
 void setValueBinding(String name, javax.faces.el.ValueBinding binding)
           
 void setValueExpression(String name, javax.el.ValueExpression expression)
           
 void setVspace(String vspace)
           
 void setWidth(String width)
           
 
Methods inherited from class org.apache.myfaces.custom.swapimage.AbstractHtmlSwapImage
isRendered
 
Methods inherited from class javax.faces.component.UIGraphic
getUrl, getValue, getValueExpression, setUrl, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, visitTree
 
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
getClientBehaviors, getDefaultEventName
 

Field Detail

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

public static final String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlSwapImage

public HtmlSwapImage()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class javax.faces.component.UIGraphic

getEventNames

public Collection<String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getEventNames in class javax.faces.component.UIComponentBase

addClientBehavior

public void addClientBehavior(String eventName,
                              javax.faces.component.behavior.ClientBehavior behavior)
Specified by:
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
addClientBehavior in class javax.faces.component.UIComponentBase

getBorder

public String getBorder()
Description copied from class: AbstractHtmlSwapImage
HTML: Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.

Specified by:
getBorder in class AbstractHtmlSwapImage

setBorder

public void setBorder(String border)

getHspace

public String getHspace()
Description copied from class: AbstractHtmlSwapImage
HTML: The amount of white space to be inserted to the left and right of this element, in undefined units. Deprecated in HTML 4.01.

Specified by:
getHspace in class AbstractHtmlSwapImage

setHspace

public void setHspace(String hspace)

getVspace

public String getVspace()
Description copied from class: AbstractHtmlSwapImage
HTML: The amount of white space to be inserted above and below this element, in undefined units. Deprecated in HTML 4.01.

Specified by:
getVspace in class AbstractHtmlSwapImage

setVspace

public void setVspace(String vspace)

getSwapImageUrl

public String getSwapImageUrl()
Description copied from class: AbstractHtmlSwapImage
the url of the image displayed onmouseover

Specified by:
getSwapImageUrl in class AbstractHtmlSwapImage

setSwapImageUrl

public void setSwapImageUrl(String swapImageUrl)

getActiveImageUrl

public String getActiveImageUrl()
Description copied from class: AbstractHtmlSwapImage
activeImage will be rendered if: swapImage is a direct child of commandNavigation and the commandNavigation.isActive

Specified by:
getActiveImageUrl in class AbstractHtmlSwapImage

setActiveImageUrl

public void setActiveImageUrl(String activeImageUrl)

getAlt

public String getAlt()
Description copied from class: AbstractHtmlSwapImage
HTML: Specifies alternative text that can be used by a browser that can't show this element.

Specified by:
getAlt in class AbstractHtmlSwapImage

setAlt

public void setAlt(String alt)

getHeight

public String getHeight()
Description copied from class: AbstractHtmlSwapImage
HTML: Overrides the natural height of this image, by specifying height in pixels.

Specified by:
getHeight in class AbstractHtmlSwapImage

setHeight

public void setHeight(String height)

isIsmap

public boolean isIsmap()
Description copied from class: AbstractHtmlSwapImage
HTML: Specifies server-side image map handling for this image.

Specified by:
isIsmap in class AbstractHtmlSwapImage

setIsmap

public void setIsmap(boolean ismap)

getLongdesc

public String getLongdesc()
Description copied from class: AbstractHtmlSwapImage
HTML: A link to a long description of the image.

Specified by:
getLongdesc in class AbstractHtmlSwapImage

setLongdesc

public void setLongdesc(String longdesc)

getUsemap

public String getUsemap()
Description copied from class: AbstractHtmlSwapImage
HTML: Specifies an image map to use with this image.

Specified by:
getUsemap in class AbstractHtmlSwapImage

setUsemap

public void setUsemap(String usemap)

getWidth

public String getWidth()
Description copied from class: AbstractHtmlSwapImage
HTML: Overrides the natural width of this image, by specifying width in pixels.

Specified by:
getWidth in class AbstractHtmlSwapImage

setWidth

public void setWidth(String width)

getOnclick

public String getOnclick()
Description copied from interface: EventAware
HTML: Script to be invoked when the element is clicked.


setOnclick

public void setOnclick(String onclick)

getOndblclick

public String getOndblclick()
Description copied from interface: EventAware
HTML: Script to be invoked when the element is double-clicked.


setOndblclick

public void setOndblclick(String ondblclick)

getOnkeydown

public String getOnkeydown()
Description copied from interface: EventAware
HTML: Script to be invoked when a key is pressed down over this element.


setOnkeydown

public void setOnkeydown(String onkeydown)

getOnkeypress

public String getOnkeypress()
Description copied from interface: EventAware
HTML: Script to be invoked when a key is pressed over this element.


setOnkeypress

public void setOnkeypress(String onkeypress)

getOnkeyup

public String getOnkeyup()
Description copied from interface: EventAware
HTML: Script to be invoked when a key is released over this element.


setOnkeyup

public void setOnkeyup(String onkeyup)

getOnmousedown

public String getOnmousedown()
Description copied from interface: EventAware
HTML: Script to be invoked when the pointing device is pressed over this element.


setOnmousedown

public void setOnmousedown(String onmousedown)

getOnmousemove

public String getOnmousemove()
Description copied from interface: EventAware
HTML: Script to be invoked when the pointing device is moved while it is in this element.


setOnmousemove

public void setOnmousemove(String onmousemove)

getOnmouseout

public String getOnmouseout()
Description copied from interface: EventAware
HTML: Script to be invoked when the pointing device is moves out of this element.


setOnmouseout

public void setOnmouseout(String onmouseout)

getOnmouseover

public String getOnmouseover()
Description copied from interface: EventAware
HTML: Script to be invoked when the pointing device is moved into this element.


setOnmouseover

public void setOnmouseover(String onmouseover)

getOnmouseup

public String getOnmouseup()
Description copied from interface: EventAware
HTML: Script to be invoked when the pointing device is released over this element.


setOnmouseup

public void setOnmouseup(String onmouseup)

getDir

public String getDir()
Description copied from interface: UniversalProperties
HTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).


setDir

public void setDir(String dir)

getLang

public String getLang()
Description copied from interface: UniversalProperties
HTML: The base language of this document.


setLang

public void setLang(String lang)

getTitle

public String getTitle()
Description copied from interface: UniversalProperties
HTML: An advisory title for this element. Often used by the user agent as a tooltip.


setTitle

public void setTitle(String title)

getStyle

public String getStyle()
Description copied from interface: StyleAware
HTML: CSS styling instructions.


setStyle

public void setStyle(String style)

getStyleClass

public String getStyleClass()
Description copied from interface: StyleAware
The CSS class for this element. Corresponds to the HTML 'class' attribute.


setStyleClass

public void setStyleClass(String styleClass)

getAlign

public String getAlign()
Description copied from interface: AlignProperty
HTML: Specifies the horizontal alignment of this element. Deprecated in HTML 4.01.


setAlign

public void setAlign(String align)

setValueBinding

public void setValueBinding(String name,
                            javax.faces.el.ValueBinding binding)
Overrides:
setValueBinding in class javax.faces.component.UIComponentBase

setValueExpression

public void setValueExpression(String name,
                               javax.el.ValueExpression expression)
Overrides:
setValueExpression in class javax.faces.component.UIGraphic


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.