org.rhq.core.gui.configuration.helper
Class PropertyRenderingUtility

java.lang.Object
  extended by org.rhq.core.gui.configuration.helper.PropertyRenderingUtility

public class PropertyRenderingUtility
extends Object

A class that provides methods for rendering RHQ Propertys.

Author:
Ian Springer

Constructor Summary
PropertyRenderingUtility()
           
 
Method Summary
static void addInitInputsJavaScript(javax.faces.component.UIComponent parent, String componentId, boolean configFullyEditable, boolean postBack)
           
static void addMessageComponentForInput(javax.faces.component.UIComponent parent, javax.faces.component.UIInput input)
           
static void addPropertyDescription(javax.faces.component.UIComponent parent, org.rhq.core.domain.configuration.definition.PropertyDefinition propertyDefinition)
           
static void addPropertyDisplayName(javax.faces.component.UIComponent parent, org.rhq.core.domain.configuration.definition.PropertyDefinition propertyDefinition, org.rhq.core.domain.configuration.Property property, boolean configReadOnly)
           
static javax.faces.component.html.HtmlSelectBooleanCheckbox addUnsetControl(javax.faces.component.UIComponent parent, boolean isRequired, boolean isReadOnly, org.rhq.core.domain.configuration.PropertySimple propertySimple, Integer listIndex, javax.faces.component.UIInput valueInput, boolean isGroupConfig, boolean configReadOnly, boolean configFullyEditable)
           
static javax.faces.component.UIInput createInput(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propertyDefinitionSimple)
           
static javax.faces.component.UIInput createInputForDynamicProperty(org.rhq.core.domain.configuration.PropertyDefinitionDynamic propertyDefinitionDynamic, org.rhq.core.domain.configuration.PropertySimple property, javax.el.ValueExpression valueExpression, Integer listIndex, boolean isGroupConfig, boolean configReadOnly, boolean configFullyEditable, boolean prevalidate)
           
static javax.faces.component.UIInput createInputForSimpleProperty(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propertyDefinitionSimple, org.rhq.core.domain.configuration.PropertySimple propertySimple, javax.el.ValueExpression propertyValueExpression, Integer listIndex, boolean isGroupConfig, boolean configReadOnly, boolean configFullyEditable, boolean prevalidate, TemplateEngine templateEngine)
           
static javax.faces.component.UIInput createInputForSimpleProperty(org.rhq.core.domain.configuration.PropertySimple propertySimple, javax.el.ValueExpression valueExpression, boolean readOnly)
           
static List<String> getHtmlDomReferences(javax.faces.component.UIComponent component)
           
static boolean isGroupConfigWithDifferingValues(org.rhq.core.domain.configuration.PropertySimple propertySimple, boolean isGroupConfig)
           
static boolean isReadOnly(boolean isReadOnly, boolean isRequired, org.rhq.core.domain.configuration.PropertySimple propertySimple, boolean configReadOnly, boolean configFullyEditable)
           
static void putDynamicPropertyRetriever(org.rhq.core.domain.configuration.PropertyDynamicType type, DynamicPropertyRetriever retriever)
          Sets the object used to retrieve property values for dynamic properties of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyRenderingUtility

public PropertyRenderingUtility()
Method Detail

createInputForSimpleProperty

@NotNull
public static javax.faces.component.UIInput createInputForSimpleProperty(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propertyDefinitionSimple,
                                                                                 org.rhq.core.domain.configuration.PropertySimple propertySimple,
                                                                                 javax.el.ValueExpression propertyValueExpression,
                                                                                 Integer listIndex,
                                                                                 boolean isGroupConfig,
                                                                                 boolean configReadOnly,
                                                                                 boolean configFullyEditable,
                                                                                 boolean prevalidate,
                                                                                 TemplateEngine templateEngine)

createInputForDynamicProperty

public static javax.faces.component.UIInput createInputForDynamicProperty(org.rhq.core.domain.configuration.PropertyDefinitionDynamic propertyDefinitionDynamic,
                                                                          org.rhq.core.domain.configuration.PropertySimple property,
                                                                          javax.el.ValueExpression valueExpression,
                                                                          Integer listIndex,
                                                                          boolean isGroupConfig,
                                                                          boolean configReadOnly,
                                                                          boolean configFullyEditable,
                                                                          boolean prevalidate)

putDynamicPropertyRetriever

public static void putDynamicPropertyRetriever(org.rhq.core.domain.configuration.PropertyDynamicType type,
                                               DynamicPropertyRetriever retriever)
Sets the object used to retrieve property values for dynamic properties of the given type.

Parameters:
type - each type in the enum will only have one retriever associated with it at any given time
retriever - may not be null

createInput

public static javax.faces.component.UIInput createInput(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propertyDefinitionSimple)

createInputForSimpleProperty

@NotNull
public static javax.faces.component.UIInput createInputForSimpleProperty(org.rhq.core.domain.configuration.PropertySimple propertySimple,
                                                                                 javax.el.ValueExpression valueExpression,
                                                                                 boolean readOnly)

addMessageComponentForInput

public static void addMessageComponentForInput(javax.faces.component.UIComponent parent,
                                               javax.faces.component.UIInput input)

addUnsetControl

public static javax.faces.component.html.HtmlSelectBooleanCheckbox addUnsetControl(javax.faces.component.UIComponent parent,
                                                                                   boolean isRequired,
                                                                                   boolean isReadOnly,
                                                                                   org.rhq.core.domain.configuration.PropertySimple propertySimple,
                                                                                   Integer listIndex,
                                                                                   javax.faces.component.UIInput valueInput,
                                                                                   boolean isGroupConfig,
                                                                                   boolean configReadOnly,
                                                                                   boolean configFullyEditable)

addInitInputsJavaScript

public static void addInitInputsJavaScript(javax.faces.component.UIComponent parent,
                                           String componentId,
                                           boolean configFullyEditable,
                                           boolean postBack)

getHtmlDomReferences

public static List<String> getHtmlDomReferences(javax.faces.component.UIComponent component)

addPropertyDisplayName

public static void addPropertyDisplayName(javax.faces.component.UIComponent parent,
                                          org.rhq.core.domain.configuration.definition.PropertyDefinition propertyDefinition,
                                          org.rhq.core.domain.configuration.Property property,
                                          boolean configReadOnly)

addPropertyDescription

public static void addPropertyDescription(javax.faces.component.UIComponent parent,
                                          org.rhq.core.domain.configuration.definition.PropertyDefinition propertyDefinition)

isReadOnly

public static boolean isReadOnly(boolean isReadOnly,
                                 boolean isRequired,
                                 org.rhq.core.domain.configuration.PropertySimple propertySimple,
                                 boolean configReadOnly,
                                 boolean configFullyEditable)

isGroupConfigWithDifferingValues

public static boolean isGroupConfigWithDifferingValues(org.rhq.core.domain.configuration.PropertySimple propertySimple,
                                                       boolean isGroupConfig)


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