org.apache.myfaces.tobago.renderkit.html
Class HtmlRendererUtil

java.lang.Object
  extended by org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil

public final class HtmlRendererUtil
extends java.lang.Object


Method Summary
static void addAcceleratorKey(FacesContext facesContext, java.lang.String func, char key)
           
static void addAcceleratorKey(FacesContext facesContext, java.lang.String func, char key, java.lang.String modifier)
           
static void addClickAcceleratorKey(FacesContext facesContext, java.lang.String clientId, char key)
           
static void addClickAcceleratorKey(FacesContext facesContext, java.lang.String clientId, char key, java.lang.String modifier)
           
static void addCssClass(UIComponent component, java.lang.String clazz)
          Deprecated. Please use StyleClasses.ensureStyleClasses(component).add(clazz);
static void addImageSources(FacesContext facesContext, TobagoResponseWriter writer, java.lang.String src, java.lang.String id)
           
static void addMarkupClass(UIComponent component, java.lang.String rendererName, java.lang.String subComponent, java.lang.StringBuilder tobagoClass)
          Deprecated. Please use StyleClasses.addMarkupClass()
static void addMarkupClass(UIComponent component, java.lang.String rendererName, StyleClasses classes)
          Deprecated. Please use StyleClasses.addMarkupClass()
static java.lang.String addTip(java.lang.String title, java.lang.Object tip)
           
static java.lang.String createAcceleratorKeyJsStatement(java.lang.String func, char key, java.lang.String modifier)
           
static void createCssClass(FacesContext facesContext, UIComponent component)
           
static void createHeaderAndBodyStyles(FacesContext facesContext, UIComponent component)
           
static void createHeaderAndBodyStyles(FacesContext facesContext, UIComponent component, boolean width)
           
static java.lang.String createOnclickAcceleratorKeyJsStatement(java.lang.String clientId, char key, java.lang.String modifier)
           
static java.lang.String createSrc(java.lang.String src, java.lang.String ext)
           
static void endJavascript(ResponseWriter writer)
          Deprecated. use TobagoResponseWriter.writeJavascript()
static java.lang.String getComponentId(FacesContext context, UIComponent component, java.lang.String componentId)
           
static java.lang.String getJavascriptArray(java.lang.String[] list)
           
static java.lang.String getJavascriptString(java.lang.String str)
           
static java.lang.String getLayoutSpaceStyle(UIComponent component)
           
static java.lang.String getRenderedPartiallyJavascriptArray(FacesContext facesContext, UICommand command)
           
static java.lang.String getRendererName(FacesContext facesContext, UIComponent component)
           
static java.lang.Integer getStyleAttributeIntValue(HtmlStyleMap style, java.lang.String name)
           
static java.lang.String getStyleAttributeValue(java.lang.String style, java.lang.String name)
           
static java.lang.String getTitleFromTipAndMessages(FacesContext facesContext, UIComponent component)
           
static TobagoResponseWriter getTobagoResponseWriter(FacesContext facesContext)
           
static void layoutHeight(FacesContext facesContext, UIComponent component)
           
static void layoutSpace(FacesContext facesContext, UIComponent component, boolean width)
           
static void layoutWidth(FacesContext facesContext, UIComponent component)
           
static HtmlStyleMap prepareInnerStyle(UIComponent component)
           
static void prepareRender(FacesContext facesContext, UIComponent component)
           
static java.lang.String removeStyleAttribute(java.lang.String style, java.lang.String name)
          Deprecated.  
static void removeStyleAttribute(UIComponent component, java.lang.String name)
           
static void removeStyleClasses(UIComponent cell)
           
static void renderFocusId(FacesContext facesContext, UIComponent component)
           
static void renderFocusId(FacesContext facesContext, UIInput component)
           
static void renderImageTip(UIComponent component, TobagoResponseWriter writer)
           
static void renderSelectItems(UIInput component, java.util.List<SelectItem> items, java.lang.Object[] values, TobagoResponseWriter writer, FacesContext facesContext)
           
static void renderTip(UIComponent component, TobagoResponseWriter writer)
           
static java.lang.String replaceStyleAttribute(java.lang.String style, java.lang.String name, java.lang.String value)
          Deprecated.  
static void replaceStyleAttribute(UIComponent component, java.lang.String styleAttribute, int value)
           
static void replaceStyleAttribute(UIComponent component, java.lang.String styleAttribute, java.lang.String value)
           
static void replaceStyleAttribute(UIComponent component, java.lang.String attribute, java.lang.String styleAttribute, int value)
           
static void replaceStyleAttribute(UIComponent component, java.lang.String attribute, java.lang.String styleAttribute, java.lang.String value)
           
static void setDefaultTransition(FacesContext facesContext, boolean transition)
           
static void startJavascript(ResponseWriter writer)
          Deprecated. use TobagoResponseWriter.writeJavascript()
static java.lang.String toStyleString(java.lang.String key, java.lang.Integer value)
           
static java.lang.String toStyleString(java.lang.String key, java.lang.String value)
           
static void updateClassAttribute(java.lang.String cssClass, java.lang.String rendererName, UIComponent component)
          Deprecated. Please use StyleClasses.ensureStyleClasses(component).updateClassAttribute(renderer, component);
static void writeJavascript(ResponseWriter writer, java.lang.String script)
          Deprecated. use TobagoResponseWriter.writeJavascript()
static void writeLabelWithAccessKey(TobagoResponseWriter writer, LabelWithAccessKey label)
           
static void writeScriptLoader(FacesContext facesContext, java.lang.String script)
           
static void writeScriptLoader(FacesContext facesContext, java.lang.String[] scripts, java.lang.String[] afterLoadCmds)
           
static void writeStyleLoader(FacesContext facesContext, java.lang.String[] styles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderFocusId

public static void renderFocusId(FacesContext facesContext,
                                 UIComponent component)
                          throws java.io.IOException
Throws:
java.io.IOException

renderFocusId

public static void renderFocusId(FacesContext facesContext,
                                 UIInput component)
                          throws java.io.IOException
Throws:
java.io.IOException

prepareRender

public static void prepareRender(FacesContext facesContext,
                                 UIComponent component)

prepareInnerStyle

public static HtmlStyleMap prepareInnerStyle(UIComponent component)

createCssClass

public static void createCssClass(FacesContext facesContext,
                                  UIComponent component)

getRendererName

public static java.lang.String getRendererName(FacesContext facesContext,
                                               UIComponent component)

writeLabelWithAccessKey

public static void writeLabelWithAccessKey(TobagoResponseWriter writer,
                                           LabelWithAccessKey label)
                                    throws java.io.IOException
Throws:
java.io.IOException

setDefaultTransition

public static void setDefaultTransition(FacesContext facesContext,
                                        boolean transition)
                                 throws java.io.IOException
Throws:
java.io.IOException

addClickAcceleratorKey

public static void addClickAcceleratorKey(FacesContext facesContext,
                                          java.lang.String clientId,
                                          char key)
                                   throws java.io.IOException
Throws:
java.io.IOException

addClickAcceleratorKey

public static void addClickAcceleratorKey(FacesContext facesContext,
                                          java.lang.String clientId,
                                          char key,
                                          java.lang.String modifier)
                                   throws java.io.IOException
Throws:
java.io.IOException

addAcceleratorKey

public static void addAcceleratorKey(FacesContext facesContext,
                                     java.lang.String func,
                                     char key)
                              throws java.io.IOException
Throws:
java.io.IOException

addAcceleratorKey

public static void addAcceleratorKey(FacesContext facesContext,
                                     java.lang.String func,
                                     char key,
                                     java.lang.String modifier)
                              throws java.io.IOException
Throws:
java.io.IOException

createOnclickAcceleratorKeyJsStatement

public static java.lang.String createOnclickAcceleratorKeyJsStatement(java.lang.String clientId,
                                                                      char key,
                                                                      java.lang.String modifier)

createAcceleratorKeyJsStatement

public static java.lang.String createAcceleratorKeyJsStatement(java.lang.String func,
                                                               char key,
                                                               java.lang.String modifier)

getLayoutSpaceStyle

public static java.lang.String getLayoutSpaceStyle(UIComponent component)

getStyleAttributeIntValue

public static java.lang.Integer getStyleAttributeIntValue(HtmlStyleMap style,
                                                          java.lang.String name)

getStyleAttributeValue

public static java.lang.String getStyleAttributeValue(java.lang.String style,
                                                      java.lang.String name)

replaceStyleAttribute

public static void replaceStyleAttribute(UIComponent component,
                                         java.lang.String styleAttribute,
                                         java.lang.String value)

replaceStyleAttribute

public static void replaceStyleAttribute(UIComponent component,
                                         java.lang.String attribute,
                                         java.lang.String styleAttribute,
                                         java.lang.String value)

replaceStyleAttribute

public static void replaceStyleAttribute(UIComponent component,
                                         java.lang.String styleAttribute,
                                         int value)

replaceStyleAttribute

public static void replaceStyleAttribute(UIComponent component,
                                         java.lang.String attribute,
                                         java.lang.String styleAttribute,
                                         int value)

replaceStyleAttribute

public static java.lang.String replaceStyleAttribute(java.lang.String style,
                                                     java.lang.String name,
                                                     java.lang.String value)
Deprecated. 


removeStyleAttribute

public static java.lang.String removeStyleAttribute(java.lang.String style,
                                                    java.lang.String name)
Deprecated. 


removeStyleAttribute

public static void removeStyleAttribute(UIComponent component,
                                        java.lang.String name)

addCssClass

@Deprecated
public static void addCssClass(UIComponent component,
                                          java.lang.String clazz)
Deprecated. Please use StyleClasses.ensureStyleClasses(component).add(clazz);


layoutWidth

public static void layoutWidth(FacesContext facesContext,
                               UIComponent component)

layoutHeight

public static void layoutHeight(FacesContext facesContext,
                                UIComponent component)

layoutSpace

public static void layoutSpace(FacesContext facesContext,
                               UIComponent component,
                               boolean width)

createHeaderAndBodyStyles

public static void createHeaderAndBodyStyles(FacesContext facesContext,
                                             UIComponent component)

createHeaderAndBodyStyles

public static void createHeaderAndBodyStyles(FacesContext facesContext,
                                             UIComponent component,
                                             boolean width)

updateClassAttribute

@Deprecated
public static void updateClassAttribute(java.lang.String cssClass,
                                                   java.lang.String rendererName,
                                                   UIComponent component)
Deprecated. Please use StyleClasses.ensureStyleClasses(component).updateClassAttribute(renderer, component);


addMarkupClass

@Deprecated
public static void addMarkupClass(UIComponent component,
                                             java.lang.String rendererName,
                                             java.lang.String subComponent,
                                             java.lang.StringBuilder tobagoClass)
Deprecated. Please use StyleClasses.addMarkupClass()


addMarkupClass

@Deprecated
public static void addMarkupClass(UIComponent component,
                                             java.lang.String rendererName,
                                             StyleClasses classes)
Deprecated. Please use StyleClasses.addMarkupClass()


addImageSources

public static void addImageSources(FacesContext facesContext,
                                   TobagoResponseWriter writer,
                                   java.lang.String src,
                                   java.lang.String id)
                            throws java.io.IOException
Throws:
java.io.IOException

createSrc

public static java.lang.String createSrc(java.lang.String src,
                                         java.lang.String ext)

getTobagoResponseWriter

public static TobagoResponseWriter getTobagoResponseWriter(FacesContext facesContext)

writeJavascript

@Deprecated
public static void writeJavascript(ResponseWriter writer,
                                              java.lang.String script)
                            throws java.io.IOException
Deprecated. use TobagoResponseWriter.writeJavascript()

Throws:
java.io.IOException

startJavascript

@Deprecated
public static void startJavascript(ResponseWriter writer)
                            throws java.io.IOException
Deprecated. use TobagoResponseWriter.writeJavascript()

Throws:
java.io.IOException

endJavascript

@Deprecated
public static void endJavascript(ResponseWriter writer)
                          throws java.io.IOException
Deprecated. use TobagoResponseWriter.writeJavascript()

Throws:
java.io.IOException

writeScriptLoader

public static void writeScriptLoader(FacesContext facesContext,
                                     java.lang.String script)
                              throws java.io.IOException
Throws:
java.io.IOException

writeScriptLoader

public static void writeScriptLoader(FacesContext facesContext,
                                     java.lang.String[] scripts,
                                     java.lang.String[] afterLoadCmds)
                              throws java.io.IOException
Throws:
java.io.IOException

writeStyleLoader

public static void writeStyleLoader(FacesContext facesContext,
                                    java.lang.String[] styles)
                             throws java.io.IOException
Throws:
java.io.IOException

getTitleFromTipAndMessages

public static java.lang.String getTitleFromTipAndMessages(FacesContext facesContext,
                                                          UIComponent component)

addTip

public static java.lang.String addTip(java.lang.String title,
                                      java.lang.Object tip)

renderSelectItems

public static void renderSelectItems(UIInput component,
                                     java.util.List<SelectItem> items,
                                     java.lang.Object[] values,
                                     TobagoResponseWriter writer,
                                     FacesContext facesContext)
                              throws java.io.IOException
Throws:
java.io.IOException

getComponentId

public static java.lang.String getComponentId(FacesContext context,
                                              UIComponent component,
                                              java.lang.String componentId)

toStyleString

public static java.lang.String toStyleString(java.lang.String key,
                                             java.lang.Integer value)

toStyleString

public static java.lang.String toStyleString(java.lang.String key,
                                             java.lang.String value)

renderTip

public static void renderTip(UIComponent component,
                             TobagoResponseWriter writer)
                      throws java.io.IOException
Throws:
java.io.IOException

renderImageTip

public static void renderImageTip(UIComponent component,
                                  TobagoResponseWriter writer)
                           throws java.io.IOException
Throws:
java.io.IOException

getJavascriptString

public static java.lang.String getJavascriptString(java.lang.String str)

getRenderedPartiallyJavascriptArray

public static java.lang.String getRenderedPartiallyJavascriptArray(FacesContext facesContext,
                                                                   UICommand command)

getJavascriptArray

public static java.lang.String getJavascriptArray(java.lang.String[] list)

removeStyleClasses

public static void removeStyleClasses(UIComponent cell)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.