org.apache.myfaces.tobago.renderkit.html.util
Class HtmlRendererUtils

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

public final class HtmlRendererUtils
extends Object


Method Summary
static void addAcceleratorKey(FacesContext facesContext, String func, char key)
           
static void addAcceleratorKey(FacesContext facesContext, String func, char key, String modifier)
           
static void addClickAcceleratorKey(FacesContext facesContext, String clientId, char key)
           
static void addClickAcceleratorKey(FacesContext facesContext, String clientId, char key, String modifier)
           
static String addTip(String title, Object tip)
           
static void checkForCommandFacet(UIComponent component, FacesContext facesContext, TobagoResponseWriter writer)
           
static void checkForCommandFacet(UIComponent component, List<String> clientIds, FacesContext facesContext, TobagoResponseWriter writer)
           
static String createAcceleratorKeyJsStatement(String func, char key, String modifier)
           
static void createCssClass(FacesContext facesContext, UIComponent component)
           
static void createHeaderAndBodyStyles(FacesContext facesContext, UIComponent component)
          Deprecated. 
static void createHeaderAndBodyStyles(FacesContext facesContext, UIComponent component, boolean width)
          Deprecated. 
static String createOnclickAcceleratorKeyJsStatement(String clientId, char key, String modifier)
           
static String createSrc(String src, String ext)
           
static String createSubmitAction(String clientId, boolean transition, String target, String focus)
           
static void encodeContextMenu(FacesContext facesContext, TobagoResponseWriter writer, UIComponent parent)
           
static String getComponentId(FacesContext context, UIComponent component, String componentId)
           
static String getComponentIds(FacesContext context, UIComponent component, String[] componentId)
           
static String getJavascriptArray(String[] list)
           
static String getJavascriptString(String str)
           
static String getRenderedPartiallyJavascriptArray(FacesContext facesContext, UICommand command)
           
static String getRenderedPartiallyJavascriptArray(FacesContext facesContext, UIComponent searchBase, SupportsRenderedPartially supportsRenderedPartially)
           
static String getRendererName(FacesContext facesContext, UIComponent component)
           
static String getTitleFromTipAndMessages(FacesContext facesContext, UIComponent component)
           
static TobagoResponseWriter getTobagoResponseWriter(FacesContext facesContext)
           
static void removeStyleAttribute(UIComponent component, String name)
          Deprecated. Please use setter;
static void removeStyleClasses(UIComponent cell)
          Deprecated. since Tobago 1.5.0. Please use Classes.
static void renderDojoDndItem(UIComponent component, TobagoResponseWriter writer, boolean addStyle)
           
static void renderDojoDndSource(FacesContext context, UIComponent component)
           
static void renderFocusId(FacesContext facesContext, UIComponent component)
           
static void renderFocusId(FacesContext facesContext, UIInput component)
           
static void renderImageTip(UIComponent component, TobagoResponseWriter writer)
          Deprecated. since Tobago 1.5.0. Please use getTitleFromTipAndMessages and write it out.
static void renderSelectItems(UIInput component, List<SelectItem> items, Object[] values, TobagoResponseWriter writer, FacesContext facesContext)
           
static void renderTip(UIComponent component, TobagoResponseWriter writer)
          Deprecated. since Tobago 1.5.0. Please use getTitleFromTipAndMessages and write it out.
static void setDefaultTransition(FacesContext facesContext, boolean transition)
           
static String toStyleString(String key, Integer value)
          Deprecated. since Tobago 1.5.0.
static String toStyleString(String key, String value)
          Deprecated. since Tobago 1.5.0.
static void writeLabelWithAccessKey(TobagoResponseWriter writer, LabelWithAccessKey label)
           
static void writeScriptLoader(FacesContext facesContext, String script)
           
static void writeScriptLoader(FacesContext facesContext, String[] scripts, String[] afterLoadCmds)
           
static void writeStyleLoader(FacesContext facesContext, 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 IOException
Throws:
IOException

renderFocusId

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

createCssClass

public static void createCssClass(FacesContext facesContext,
                                  UIComponent component)

getRendererName

public static String getRendererName(FacesContext facesContext,
                                     UIComponent component)

writeLabelWithAccessKey

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

setDefaultTransition

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

addClickAcceleratorKey

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

addClickAcceleratorKey

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

addAcceleratorKey

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

addAcceleratorKey

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

createOnclickAcceleratorKeyJsStatement

public static String createOnclickAcceleratorKeyJsStatement(String clientId,
                                                            char key,
                                                            String modifier)

createAcceleratorKeyJsStatement

public static String createAcceleratorKeyJsStatement(String func,
                                                     char key,
                                                     String modifier)

removeStyleAttribute

@Deprecated
public static void removeStyleAttribute(UIComponent component,
                                                   String name)
Deprecated. Please use setter;


createHeaderAndBodyStyles

@Deprecated
public static void createHeaderAndBodyStyles(FacesContext facesContext,
                                                        UIComponent component)
Deprecated. 


createHeaderAndBodyStyles

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


createSrc

public static String createSrc(String src,
                               String ext)

getTobagoResponseWriter

public static TobagoResponseWriter getTobagoResponseWriter(FacesContext facesContext)

writeScriptLoader

public static void writeScriptLoader(FacesContext facesContext,
                                     String script)
                              throws IOException
Throws:
IOException

writeScriptLoader

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

writeStyleLoader

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

getTitleFromTipAndMessages

public static String getTitleFromTipAndMessages(FacesContext facesContext,
                                                UIComponent component)

addTip

public static String addTip(String title,
                            Object tip)

renderSelectItems

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

getComponentIds

public static String getComponentIds(FacesContext context,
                                     UIComponent component,
                                     String[] componentId)

getComponentId

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

toStyleString

@Deprecated
public static String toStyleString(String key,
                                              Integer value)
Deprecated. since Tobago 1.5.0.


toStyleString

@Deprecated
public static String toStyleString(String key,
                                              String value)
Deprecated. since Tobago 1.5.0.


renderTip

@Deprecated
public static void renderTip(UIComponent component,
                                        TobagoResponseWriter writer)
                      throws IOException
Deprecated. since Tobago 1.5.0. Please use getTitleFromTipAndMessages and write it out.

Throws:
IOException

renderImageTip

public static void renderImageTip(UIComponent component,
                                  TobagoResponseWriter writer)
                           throws IOException
Deprecated. since Tobago 1.5.0. Please use getTitleFromTipAndMessages and write it out.

Throws:
IOException

getJavascriptString

public static String getJavascriptString(String str)

getRenderedPartiallyJavascriptArray

public static String getRenderedPartiallyJavascriptArray(FacesContext facesContext,
                                                         UICommand command)

getRenderedPartiallyJavascriptArray

public static String getRenderedPartiallyJavascriptArray(FacesContext facesContext,
                                                         UIComponent searchBase,
                                                         SupportsRenderedPartially supportsRenderedPartially)

getJavascriptArray

public static String getJavascriptArray(String[] list)

renderDojoDndSource

public static void renderDojoDndSource(FacesContext context,
                                       UIComponent component)
                                throws IOException
Throws:
IOException

renderDojoDndItem

public static void renderDojoDndItem(UIComponent component,
                                     TobagoResponseWriter writer,
                                     boolean addStyle)
                              throws IOException
Throws:
IOException

checkForCommandFacet

public static void checkForCommandFacet(UIComponent component,
                                        FacesContext facesContext,
                                        TobagoResponseWriter writer)
                                 throws IOException
Throws:
IOException

checkForCommandFacet

public static void checkForCommandFacet(UIComponent component,
                                        List<String> clientIds,
                                        FacesContext facesContext,
                                        TobagoResponseWriter writer)
                                 throws IOException
Throws:
IOException

createSubmitAction

public static String createSubmitAction(String clientId,
                                        boolean transition,
                                        String target,
                                        String focus)

removeStyleClasses

@Deprecated
public static void removeStyleClasses(UIComponent cell)
Deprecated. since Tobago 1.5.0. Please use Classes.


encodeContextMenu

public static void encodeContextMenu(FacesContext facesContext,
                                     TobagoResponseWriter writer,
                                     UIComponent parent)
                              throws IOException
Throws:
IOException


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