org.apache.myfaces.tobago.renderkit.html
Class HtmlRendererUtil
java.lang.Object
org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil
public final class HtmlRendererUtil
- 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 void |
addCssClass(UIComponent component,
String newClass)
|
static void |
addImageSources(FacesContext facesContext,
ResponseWriter writer,
String src,
String id)
|
static void |
addMarkupClass(UIComponent component,
String rendererName,
StringBuilder tobagoClass)
|
static void |
addMarkupClass(UIComponent component,
String rendererName,
String subComponent,
StringBuilder tobagoClass)
|
static String |
addTip(String title,
String tip)
|
static String |
appendConfirmationScript(String onclick,
UIComponent component,
FacesContext facesContext)
|
static StringBuilder |
createAcceleratorKeyJsStatement(String func,
char key,
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 String |
createOnClick(FacesContext facesContext,
UIComponent component)
|
static StringBuilder |
createOnclickAcceleratorKeyJsStatement(String clientId,
char key,
String modifier)
|
static String |
createSrc(String src,
String ext)
|
static void |
endJavascript(ResponseWriter writer)
|
static String |
getComponentId(FacesContext context,
UIComponent component,
String componentId)
|
static String |
getEmptyHref(FacesContext facesContext)
|
static String |
getLayoutSpaceStyle(UIComponent component)
|
static String |
getRendererName(FacesContext facesContext,
UIComponent component)
|
static Integer |
getStyleAttributeIntValue(HtmlStyleMap style,
String name)
|
static String |
getStyleAttributeValue(String style,
String name)
|
static void |
layoutHeight(FacesContext facesContext,
UIComponent component)
|
static void |
layoutSpace(FacesContext facesContext,
UIComponent component,
boolean width)
|
static void |
layoutWidth(FacesContext facesContext,
UIComponent component)
|
static void |
prepareInnerStyle(UIComponent component)
|
static String |
prepareOnClick(FacesContext facesContext,
UIComponent component)
|
static void |
prepareRender(FacesContext facesContext,
UIComponent component)
|
static String |
removeStyleAttribute(String style,
String name)
|
static void |
removeStyleAttribute(UIComponent component,
String name)
|
static void |
renderFocusId(FacesContext facesContext,
UIComponent component)
|
static void |
renderSelectItems(UIInput component,
List<SelectItem> items,
Object[] values,
TobagoResponseWriter writer,
FacesContext facesContext)
|
static String |
replaceStyleAttribute(String style,
String name,
String value)
|
static void |
replaceStyleAttribute(UIComponent component,
String styleAttribute,
int value)
|
static void |
replaceStyleAttribute(UIComponent component,
String styleAttribute,
String value)
|
static void |
replaceStyleAttribute(UIComponent component,
String attribute,
String styleAttribute,
int value)
|
static void |
replaceStyleAttribute(UIComponent component,
String attribute,
String styleAttribute,
String value)
|
static void |
startJavascript(ResponseWriter writer)
|
static String |
toStyleString(String key,
Integer value)
|
static String |
toStyleString(String key,
String value)
|
static String |
updateClassAttribute(String cssClass,
String rendererName,
UIComponent component)
|
static void |
writeJavascript(ResponseWriter writer,
String script)
|
static void |
writeLabelWithAccessKey(ResponseWriter 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 |
renderFocusId
public static void renderFocusId(FacesContext facesContext,
UIComponent component)
throws IOException
- Throws:
IOException
prepareRender
public static void prepareRender(FacesContext facesContext,
UIComponent component)
prepareInnerStyle
public static void prepareInnerStyle(UIComponent component)
createCssClass
public static void createCssClass(FacesContext facesContext,
UIComponent component)
getRendererName
public static String getRendererName(FacesContext facesContext,
UIComponent component)
writeLabelWithAccessKey
public static void writeLabelWithAccessKey(ResponseWriter writer,
LabelWithAccessKey label)
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 StringBuilder createOnclickAcceleratorKeyJsStatement(String clientId,
char key,
String modifier)
createAcceleratorKeyJsStatement
public static StringBuilder createAcceleratorKeyJsStatement(String func,
char key,
String modifier)
getLayoutSpaceStyle
public static String getLayoutSpaceStyle(UIComponent component)
getStyleAttributeIntValue
public static Integer getStyleAttributeIntValue(HtmlStyleMap style,
String name)
getStyleAttributeValue
public static String getStyleAttributeValue(String style,
String name)
replaceStyleAttribute
public static void replaceStyleAttribute(UIComponent component,
String styleAttribute,
String value)
replaceStyleAttribute
public static void replaceStyleAttribute(UIComponent component,
String attribute,
String styleAttribute,
String value)
replaceStyleAttribute
public static void replaceStyleAttribute(UIComponent component,
String styleAttribute,
int value)
replaceStyleAttribute
public static void replaceStyleAttribute(UIComponent component,
String attribute,
String styleAttribute,
int value)
replaceStyleAttribute
public static String replaceStyleAttribute(String style,
String name,
String value)
removeStyleAttribute
public static String removeStyleAttribute(String style,
String name)
removeStyleAttribute
public static void removeStyleAttribute(UIComponent component,
String name)
addCssClass
public static void addCssClass(UIComponent component,
String newClass)
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
public static String updateClassAttribute(String cssClass,
String rendererName,
UIComponent component)
addMarkupClass
public static void addMarkupClass(UIComponent component,
String rendererName,
String subComponent,
StringBuilder tobagoClass)
addMarkupClass
public static void addMarkupClass(UIComponent component,
String rendererName,
StringBuilder tobagoClass)
addImageSources
public static void addImageSources(FacesContext facesContext,
ResponseWriter writer,
String src,
String id)
throws IOException
- Throws:
IOException
createSrc
public static String createSrc(String src,
String ext)
writeJavascript
public static void writeJavascript(ResponseWriter writer,
String script)
throws IOException
- Throws:
IOException
startJavascript
public static void startJavascript(ResponseWriter writer)
throws IOException
- Throws:
IOException
endJavascript
public static void endJavascript(ResponseWriter writer)
throws IOException
- Throws:
IOException
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
addTip
public static String addTip(String title,
String tip)
renderSelectItems
public static void renderSelectItems(UIInput component,
List<SelectItem> items,
Object[] values,
TobagoResponseWriter writer,
FacesContext facesContext)
throws IOException
- Throws:
IOException
createOnClick
public static String createOnClick(FacesContext facesContext,
UIComponent component)
getComponentId
public static String getComponentId(FacesContext context,
UIComponent component,
String componentId)
prepareOnClick
public static String prepareOnClick(FacesContext facesContext,
UIComponent component)
appendConfirmationScript
public static String appendConfirmationScript(String onclick,
UIComponent component,
FacesContext facesContext)
getEmptyHref
public static String getEmptyHref(FacesContext facesContext)
toStyleString
public static String toStyleString(String key,
Integer value)
toStyleString
public static String toStyleString(String key,
String value)
Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.