org.apache.myfaces.custom.media
Class MediaComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.media.AbstractMediaComponent
              extended by org.apache.myfaces.custom.media.MediaComponent
All Implemented Interfaces:
javax.faces.component.StateHolder

public class MediaComponent
extends AbstractMediaComponent


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class org.apache.myfaces.custom.media.AbstractMediaComponent
ATTRIBUTE_CONTENT_TYPE, ATTRIBUTE_HEIGHT, ATTRIBUTE_SOURCE, ATTRIBUTE_WIDTH
 
Constructor Summary
MediaComponent()
           
 
Method Summary
 java.lang.String getContentType()
          Determines the media content type.
 java.lang.String getFamily()
           
 java.lang.String getHeight()
          Integer to indicate the media height.
 java.lang.String getSource()
          Determines the path of the media file.
 java.lang.String getWidth()
          Integer to indicate the media weight.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setContentType(java.lang.String contentType)
           
 void setHeight(java.lang.String height)
           
 void setSource(java.lang.String source)
           
 void setWidth(java.lang.String width)
           
 
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, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

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

MediaComponent

public MediaComponent()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getWidth

public java.lang.String getWidth()
Description copied from class: AbstractMediaComponent
Integer to indicate the media weight.

Specified by:
getWidth in class AbstractMediaComponent

setWidth

public void setWidth(java.lang.String width)

getHeight

public java.lang.String getHeight()
Description copied from class: AbstractMediaComponent
Integer to indicate the media height.

Specified by:
getHeight in class AbstractMediaComponent

setHeight

public void setHeight(java.lang.String height)

getContentType

public java.lang.String getContentType()
Description copied from class: AbstractMediaComponent
Determines the media content type.

Specified by:
getContentType in class AbstractMediaComponent

setContentType

public void setContentType(java.lang.String contentType)

getSource

public java.lang.String getSource()
Description copied from class: AbstractMediaComponent
Determines the path of the media file.

Specified by:
getSource in class AbstractMediaComponent

setSource

public void setSource(java.lang.String source)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase


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