org.geebis.books.ui.faces.component.util
Class Util

java.lang.Object
  extended by org.geebis.books.ui.faces.component.util.Util

public class Util
extends java.lang.Object


Field Summary
protected static java.lang.String[] passthroughAttributes
          An array of all the HTML pass-through attributes.
 
Constructor Summary
Util()
           
 
Method Summary
static void addAttribute(javax.faces.application.Application app, javax.faces.component.UIComponent component, java.lang.String key, java.lang.Object value)
           
static boolean canModifyValue(javax.faces.component.UIComponent component)
           
static boolean getBooleanProperty(javax.faces.component.UIComponent component, java.lang.Boolean property, java.lang.String key, boolean defaultValue)
           
static boolean getBooleanValue(java.lang.Object attributeValue, boolean valueIfNull)
           
static java.lang.Object getObjectProperty(javax.faces.component.UIComponent component, java.lang.Object property, java.lang.String key, java.lang.Object defaultValue)
           
static java.lang.String getStringProperty(javax.faces.component.UIComponent component, java.lang.String property, java.lang.String key, java.lang.String defaultValue)
           
static boolean isBindingExpression(java.lang.Object value)
           
static void writePassthroughAttributes(java.util.Map componentAttributes, javax.faces.context.ResponseWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passthroughAttributes

protected static java.lang.String[] passthroughAttributes
An array of all the HTML pass-through attributes. The "class" attribute is left out, since it's a special case.

Constructor Detail

Util

public Util()
Method Detail

addAttribute

public static void addAttribute(javax.faces.application.Application app,
                                javax.faces.component.UIComponent component,
                                java.lang.String key,
                                java.lang.Object value)

isBindingExpression

public static boolean isBindingExpression(java.lang.Object value)

writePassthroughAttributes

public static void writePassthroughAttributes(java.util.Map componentAttributes,
                                              javax.faces.context.ResponseWriter writer)
                                       throws java.io.IOException
Throws:
java.io.IOException

canModifyValue

public static boolean canModifyValue(javax.faces.component.UIComponent component)

getBooleanValue

public static boolean getBooleanValue(java.lang.Object attributeValue,
                                      boolean valueIfNull)

getBooleanProperty

public static boolean getBooleanProperty(javax.faces.component.UIComponent component,
                                         java.lang.Boolean property,
                                         java.lang.String key,
                                         boolean defaultValue)

getStringProperty

public static java.lang.String getStringProperty(javax.faces.component.UIComponent component,
                                                 java.lang.String property,
                                                 java.lang.String key,
                                                 java.lang.String defaultValue)

getObjectProperty

public static java.lang.Object getObjectProperty(javax.faces.component.UIComponent component,
                                                 java.lang.Object property,
                                                 java.lang.String key,
                                                 java.lang.Object defaultValue)