org.apache.myfaces.tobago.renderkit.html
Class HtmlRendererUtil
java.lang.Object
org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil
public final class HtmlRendererUtil
- extends Object
User: weber
Date: Jan 11, 2005
Time: 4:59:36 PM
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 String |
addTip(String title,
String tip)
|
static StringBuffer |
createAcceleratorKeyJsStatement(String func,
char key,
String modifier)
|
static void |
createClassAttribute(UIComponent component,
String name)
|
static void |
createCssClass(FacesContext facesContext,
UIComponent component)
|
static void |
createHeaderAndBodyStyles(FacesContext facesContext,
UIComponent component)
|
static void |
createHeaderAndBodyStyles(FacesContext facesContext,
UIComponent component,
boolean width)
|
static StringBuffer |
createOnclickAcceleratorKeyJsStatement(String clientId,
char key,
String modifier)
|
static String |
createSrc(String src,
String ext)
|
static void |
endJavascript(ResponseWriter writer)
|
static String |
getLayoutSpaceStyle(UIComponent component)
|
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 |
main(String[] args)
|
static void |
prepareInnerStyle(UIComponent component)
|
static void |
prepareRender(FacesContext facesContext,
UIComponent component)
|
static String |
removeStyleAttribute(String style,
String name)
|
static void |
renderFocusId(FacesContext facesContext,
UIComponent component)
|
static String |
replaceStyleAttribute(String style,
String name,
String value)
|
static void |
replaceStyleAttribute(UIComponent component,
String styleAttribute,
String value)
|
static void |
startJavascript(ResponseWriter writer)
|
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 sctipt)
|
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)
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 StringBuffer createOnclickAcceleratorKeyJsStatement(String clientId,
char key,
String modifier)
createAcceleratorKeyJsStatement
public static StringBuffer createAcceleratorKeyJsStatement(String func,
char key,
String modifier)
getLayoutSpaceStyle
public static String getLayoutSpaceStyle(UIComponent component)
getStyleAttributeValue
public static String getStyleAttributeValue(String style,
String name)
replaceStyleAttribute
public static void replaceStyleAttribute(UIComponent component,
String styleAttribute,
String value)
replaceStyleAttribute
public static String replaceStyleAttribute(String style,
String name,
String value)
removeStyleAttribute
public static String removeStyleAttribute(String style,
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)
createClassAttribute
public static void createClassAttribute(UIComponent component,
String name)
updateClassAttribute
public static String updateClassAttribute(String cssClass,
String rendererName,
UIComponent component)
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 sctipt)
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)
main
public static void main(String[] args)
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.