org.rhq.core.gui.configuration
Class ConfigRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.rhq.core.gui.configuration.ConfigRenderer

public class ConfigRenderer
extends javax.faces.render.Renderer

A renderer that renders an AbstractConfigurationComponent component as XHTML.

Author:
Ian Springer

Field Summary
protected static String GROUP_DESCRIPTION_PANEL_STYLE_CLASS
           
protected static String GROUP_DESCRIPTION_TEXT_PANEL_STYLE_CLASS
           
protected static String NOTE_PANEL_STYLE_CLASS
           
protected static String PROPERTY_GROUP_BODY_STYLE_CLASS
           
protected static String PROPERTY_GROUP_HEADER_STYLE_CLASS
           
static String PROPERTY_SET_COMPONENT_ID
           
protected static String REQUIRED_MARKER_TEXT_STYLE_CLASS
           
protected static String UNGROUPED_PROPERTIES_STYLE_CLASS
           
 
Constructor Summary
ConfigRenderer()
           
 
Method Summary
 void addChildComponents(AbstractConfigurationComponent configurationComponent)
           
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Decode request parameters for the given ConfigUIComponent.
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Encode the beginning of the given ConfigUIComponent.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_SET_COMPONENT_ID

public static final String PROPERTY_SET_COMPONENT_ID
See Also:
Constant Field Values

NOTE_PANEL_STYLE_CLASS

protected static final String NOTE_PANEL_STYLE_CLASS
See Also:
Constant Field Values

PROPERTY_GROUP_HEADER_STYLE_CLASS

protected static final String PROPERTY_GROUP_HEADER_STYLE_CLASS
See Also:
Constant Field Values

PROPERTY_GROUP_BODY_STYLE_CLASS

protected static final String PROPERTY_GROUP_BODY_STYLE_CLASS
See Also:
Constant Field Values

UNGROUPED_PROPERTIES_STYLE_CLASS

protected static final String UNGROUPED_PROPERTIES_STYLE_CLASS
See Also:
Constant Field Values

REQUIRED_MARKER_TEXT_STYLE_CLASS

protected static final String REQUIRED_MARKER_TEXT_STYLE_CLASS
See Also:
Constant Field Values

GROUP_DESCRIPTION_PANEL_STYLE_CLASS

protected static final String GROUP_DESCRIPTION_PANEL_STYLE_CLASS
See Also:
Constant Field Values

GROUP_DESCRIPTION_TEXT_PANEL_STYLE_CLASS

protected static final String GROUP_DESCRIPTION_TEXT_PANEL_STYLE_CLASS
See Also:
Constant Field Values
Constructor Detail

ConfigRenderer

public ConfigRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent component)
Decode request parameters for the given ConfigUIComponent.

Overrides:
decode in class javax.faces.render.Renderer
Parameters:
facesContext - the JSF context for the current request
component - the ConfigUIComponent for which request parameters should be decoded

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent component)
                 throws IOException
Encode the beginning of the given ConfigUIComponent.

Overrides:
encodeBegin in class javax.faces.render.Renderer
Parameters:
facesContext - the JSF context for the current request
component - the ConfigUIComponent to be encoded
Throws:
IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
IOException

addChildComponents

public void addChildComponents(AbstractConfigurationComponent configurationComponent)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.