org.rhq.core.gui.table.renderer
Class AbstractRenderer
java.lang.Object
javax.faces.render.Renderer
org.rhq.core.gui.table.renderer.AbstractRenderer
- All Implemented Interfaces:
- org.ajax4jsf.renderkit.HeaderResourceProducer2
- Direct Known Subclasses:
- AbstractButtonRenderer, AllRowsSelectorRenderer, RowSelectorRenderer
public abstract class AbstractRenderer
- extends javax.faces.render.Renderer
- implements org.ajax4jsf.renderkit.HeaderResourceProducer2
|
Method Summary |
protected void |
encodeResourcesArray(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.ajax4jsf.resource.InternetResource[] resources)
|
void |
encodeToHead(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.ajax4jsf.renderkit.ProducerContext pc)
|
protected org.ajax4jsf.resource.InternetResource |
getResource(String resourceURI)
Base stub method for produce internet resource ( image, script ... |
protected org.ajax4jsf.resource.InternetResource[] |
getScripts()
Hook method to return array of script resources to store in head. |
protected org.ajax4jsf.resource.InternetResource[] |
getStyles()
Hook method to return array of styles resources to store in head. |
protected void |
initializeComponentId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected void |
validateParameters(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected void |
writeIdAttributeIfNecessary(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
|
| Methods inherited from class javax.faces.render.Renderer |
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRenderer
public AbstractRenderer()
validateParameters
protected void validateParameters(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
initializeComponentId
protected void initializeComponentId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
writeIdAttributeIfNecessary
protected void writeIdAttributeIfNecessary(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
getScripts
protected org.ajax4jsf.resource.InternetResource[] getScripts()
- Hook method to return array of script resources to store in head.
getStyles
protected org.ajax4jsf.resource.InternetResource[] getStyles()
- Hook method to return array of styles resources to store in head.
encodeResourcesArray
protected void encodeResourcesArray(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.ajax4jsf.resource.InternetResource[] resources)
throws IOException
- Parameters:
context - component - resources -
- Throws:
IOException
encodeToHead
public void encodeToHead(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.ajax4jsf.renderkit.ProducerContext pc)
throws IOException
- Specified by:
encodeToHead in interface org.ajax4jsf.renderkit.HeaderResourceProducer2
- Throws:
IOException
getResource
protected org.ajax4jsf.resource.InternetResource getResource(String resourceURI)
throws javax.faces.FacesException
- Base stub method for produce internet resource ( image, script ... )
since resources must be implemented in "lightweight" pattern, it instances
put in internal map to caching.
- Parameters:
resourceURI - - relative ( to renderer class ) uri to resource in jar or
key for generate ( in Java2D , for example ).
- Returns:
- - resource instance for this uri.
- Throws:
org.ajax4jsf.resource.ResourceNotFoundException - - if reqested resource not instantiated.
javax.faces.FacesException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.