public abstract class ScriptStyleBaseRenderer
extends javax.faces.render.Renderer
implements javax.faces.event.ComponentSystemEventListener
Base class for shared behavior between Script and Stylesheet renderers. Maybe composition would be better, but inheritance is easier
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
COMP_KEY |
protected static java.util.logging.Logger |
logger |
Constructor and Description |
---|
ScriptStyleBaseRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
If overridden, this method (i.e.
|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
If overridden, this method (i.e.
|
protected abstract void |
endElement(javax.faces.context.ResponseWriter writer)
Allow the subclass to customize the start element content
|
private static javax.faces.component.UIComponent |
findComponentIgnoringNamingContainers(javax.faces.component.UIComponent base,
java.lang.String id,
boolean checkId) |
boolean |
getRendersChildren() |
void |
processEvent(javax.faces.event.ComponentSystemEvent event) |
protected abstract void |
startElement(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
Allow the subclass to customize the start element content
|
protected java.lang.String |
verifyTarget(java.lang.String toVerify)
Allow a subclass to control what's a valid value for "target".
|
private static final java.lang.String COMP_KEY
protected static final java.util.logging.Logger logger
public void processEvent(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.ComponentSystemEventListener
javax.faces.event.AbortProcessingException
public final void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
public final boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeEnd
in class javax.faces.render.Renderer
java.io.IOException
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeBegin
in class javax.faces.render.Renderer
java.io.IOException
private static javax.faces.component.UIComponent findComponentIgnoringNamingContainers(javax.faces.component.UIComponent base, java.lang.String id, boolean checkId)
public final void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class javax.faces.render.Renderer
java.io.IOException
protected abstract void startElement(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component) throws java.io.IOException
Allow the subclass to customize the start element content
java.io.IOException
protected abstract void endElement(javax.faces.context.ResponseWriter writer) throws java.io.IOException
Allow the subclass to customize the start element content
java.io.IOException
protected java.lang.String verifyTarget(java.lang.String toVerify)
Allow a subclass to control what's a valid value for "target".
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.