org.apache.myfaces.tobago.renderkit.util
Class RenderUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.renderkit.util.RenderUtils

public class RenderUtils
extends java.lang.Object


Field Summary
static java.lang.String COMPONENT_IN_REQUEST
           
 
Method Summary
static Measure calculateStringWidth(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.String text)
           
static Measure calculateStringWidth2(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.String text)
           
static boolean contains(java.lang.Object[] list, java.lang.Object value)
           
static java.lang.String currentValue(javax.faces.component.UIComponent component)
           
static void encode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
static void encode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.util.List<? extends java.lang.Class<? extends javax.faces.component.UIComponent>> only)
           
static void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent panel)
           
static void encodeChildrenWithoutLayout(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent container)
           
static java.lang.String getFormattedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
static java.lang.String getFormattedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object currentValue)
           
static java.util.List<javax.faces.model.SelectItem> getItems(javax.faces.component.UIInput component)
           
static java.util.List<javax.faces.model.SelectItem> getItemsToRender(javax.faces.component.UISelectMany component)
           
static java.util.List<javax.faces.model.SelectItem> getItemsToRender(javax.faces.component.UISelectOne component)
           
static java.util.List<javax.faces.model.SelectItem> getSelectItems(javax.faces.component.UIComponent component)
           
static void prepareRendererAll(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_IN_REQUEST

public static final java.lang.String COMPONENT_IN_REQUEST
See Also:
Constant Field Values
Method Detail

contains

public static boolean contains(java.lang.Object[] list,
                               java.lang.Object value)

encodeChildren

public static void encodeChildren(javax.faces.context.FacesContext facesContext,
                                  javax.faces.component.UIComponent panel)
                           throws java.io.IOException
Throws:
java.io.IOException

encodeChildrenWithoutLayout

public static void encodeChildrenWithoutLayout(javax.faces.context.FacesContext facesContext,
                                               javax.faces.component.UIComponent container)
                                        throws java.io.IOException
Throws:
java.io.IOException

encode

public static void encode(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIComponent component)
                   throws java.io.IOException
Throws:
java.io.IOException

encode

public static void encode(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIComponent component,
                          java.util.List<? extends java.lang.Class<? extends javax.faces.component.UIComponent>> only)
                   throws java.io.IOException
Throws:
java.io.IOException

prepareRendererAll

public static void prepareRendererAll(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UIComponent component)
                               throws java.io.IOException
Throws:
java.io.IOException

getFormattedValue

public static java.lang.String getFormattedValue(javax.faces.context.FacesContext facesContext,
                                                 javax.faces.component.UIComponent component)

getFormattedValue

public static java.lang.String getFormattedValue(javax.faces.context.FacesContext context,
                                                 javax.faces.component.UIComponent component,
                                                 java.lang.Object currentValue)
                                          throws javax.faces.convert.ConverterException
Throws:
javax.faces.convert.ConverterException

calculateStringWidth

public static Measure calculateStringWidth(javax.faces.context.FacesContext facesContext,
                                           javax.faces.component.UIComponent component,
                                           java.lang.String text)

calculateStringWidth2

public static Measure calculateStringWidth2(javax.faces.context.FacesContext facesContext,
                                            javax.faces.component.UIComponent component,
                                            java.lang.String text)

getItemsToRender

public static java.util.List<javax.faces.model.SelectItem> getItemsToRender(javax.faces.component.UISelectOne component)

getItemsToRender

public static java.util.List<javax.faces.model.SelectItem> getItemsToRender(javax.faces.component.UISelectMany component)

getItems

public static java.util.List<javax.faces.model.SelectItem> getItems(javax.faces.component.UIInput component)

currentValue

public static java.lang.String currentValue(javax.faces.component.UIComponent component)

getSelectItems

public static java.util.List<javax.faces.model.SelectItem> getSelectItems(javax.faces.component.UIComponent component)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.