|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.util.HtmlUtil
public class HtmlUtil
This is helper utility class for HTML and XHTML renderers
Field Summary | |
---|---|
static java.lang.String |
ABSOLUTE
|
static java.lang.String |
BACKGROUND_COLOR
|
static java.lang.String |
BOLD
|
static java.lang.String |
BOTTOM
|
static int |
checkRoot
|
static java.lang.String |
CLASS
|
static java.lang.String |
COLON
|
static java.lang.String |
COLOR
|
static java.lang.String |
FIXED
|
static java.lang.String |
FONT_FAMILY
|
static java.lang.String |
FONT_SIZE
|
static java.lang.String |
FONT_STYLE
|
static java.lang.String |
FONT_WEIGHT
|
static java.lang.String |
HEIGHT
|
static java.lang.String |
ID
|
static java.lang.String |
ITALIC
|
static java.lang.String |
JAVASCRIPT
|
static java.lang.String |
JAVASCRIPT_CLIENTSIDE
|
static java.lang.String |
LEFT
|
static java.lang.String |
OVERFLOW
|
static java.lang.String |
PARAGRAPH
|
static java.lang.String |
POSITION
|
static java.lang.String |
PT
|
static java.lang.String |
PX
|
static java.lang.String |
RELATIVE
|
static java.lang.String |
RIGHT
|
static java.lang.String |
SEMI_COLON
|
static java.lang.String |
SPAN
|
static java.lang.String |
STATIC
|
static java.lang.String |
STYLE
|
static java.lang.String |
STYLECLASS
|
static java.lang.String |
TimeZoneCookie
|
static java.lang.String |
TOP
|
static int |
useHTML
|
static int |
useXHTML
|
static java.lang.String |
VERTICAL_ALIGN
|
static java.lang.String |
WIDTH
|
static java.lang.String |
Z_INDEX
|
Constructor Summary | |
---|---|
HtmlUtil()
|
Method Summary | |
---|---|
static void |
addCssStyle(java.lang.String cssProperty,
java.lang.String cssValue,
java.lang.StringBuilder sBuf)
|
static java.util.TimeZone |
computeClientTimeZone(java.lang.String valueCookie)
|
static java.lang.String |
extractProperty(java.lang.String style,
java.lang.String property)
|
static int |
extractPropertyInt(java.lang.String style,
java.lang.String property)
|
static boolean |
isUserId(java.lang.String id)
Return true if this id was user defined |
static java.lang.Object |
readEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c)
Read the value stored during encodeBegin. |
static java.lang.Object |
readEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c,
boolean remove)
|
static java.lang.Object |
readEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c,
java.lang.String prop)
|
static java.lang.Object |
readEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c,
java.lang.String prop,
boolean remove)
|
static void |
removeEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c)
|
static void |
removeEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c,
java.lang.String prop)
|
static void |
storeEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c,
java.lang.Object value)
Store a value during the encodeBegin method, and reuse it during encodeEnd. |
static void |
storeEncodeParameter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent c,
java.lang.String prop,
java.lang.Object value)
|
static java.lang.String |
toHTMLContentString(java.lang.String s,
boolean replaceSpaces)
Converts a Java string to an HTML one, with internal entities into a Java string. |
static java.lang.String |
toHTMLContentString(java.lang.String s,
boolean replaceSpaces,
int forceHtml)
|
static void |
writeIdAttribute(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Write user defined id attribute for the specified component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
public static final java.lang.String COLON
public static final java.lang.String SEMI_COLON
public static final java.lang.String STYLE
public static final java.lang.String STYLECLASS
public static final java.lang.String CLASS
public static final java.lang.String SPAN
public static final java.lang.String PARAGRAPH
public static final java.lang.String FONT_FAMILY
public static final java.lang.String FONT_SIZE
public static final java.lang.String FONT_STYLE
public static final java.lang.String FONT_WEIGHT
public static final java.lang.String BOLD
public static final java.lang.String ITALIC
public static final java.lang.String COLOR
public static final java.lang.String BACKGROUND_COLOR
public static final java.lang.String JAVASCRIPT
public static final java.lang.String JAVASCRIPT_CLIENTSIDE
public static final java.lang.String TOP
public static final java.lang.String LEFT
public static final java.lang.String BOTTOM
public static final java.lang.String RIGHT
public static final java.lang.String OVERFLOW
public static final java.lang.String POSITION
public static final java.lang.String VERTICAL_ALIGN
public static final java.lang.String Z_INDEX
public static final java.lang.String WIDTH
public static final java.lang.String HEIGHT
public static final java.lang.String STATIC
public static final java.lang.String ABSOLUTE
public static final java.lang.String RELATIVE
public static final java.lang.String FIXED
public static final java.lang.String PX
public static final java.lang.String PT
public static int checkRoot
public static int useHTML
public static int useXHTML
public static final java.lang.String TimeZoneCookie
Constructor Detail |
---|
public HtmlUtil()
Method Detail |
---|
public static void storeEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c, java.lang.Object value)
public static void storeEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c, java.lang.String prop, java.lang.Object value)
public static void removeEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c)
public static void removeEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c, java.lang.String prop)
public static java.lang.Object readEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c)
public static java.lang.Object readEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c, boolean remove)
public static java.lang.Object readEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c, java.lang.String prop)
public static java.lang.Object readEncodeParameter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent c, java.lang.String prop, boolean remove)
public static boolean isUserId(java.lang.String id)
public static void writeIdAttribute(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
java.io.IOException
public static void addCssStyle(java.lang.String cssProperty, java.lang.String cssValue, java.lang.StringBuilder sBuf)
public static java.lang.String extractProperty(java.lang.String style, java.lang.String property)
public static int extractPropertyInt(java.lang.String style, java.lang.String property)
public static java.lang.String toHTMLContentString(java.lang.String s, boolean replaceSpaces)
s
- the Java string
public static java.lang.String toHTMLContentString(java.lang.String s, boolean replaceSpaces, int forceHtml)
forceHtml
- 0 indicates to check the viewRoot, 1 indicates to use HTML, 2
indicates to use XHTML.public static java.util.TimeZone computeClientTimeZone(java.lang.String valueCookie)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |