|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlUtils
public class XhtmlUtils
XHTML rendering utilities.
Field Summary | |
---|---|
static java.lang.String |
CORE_LIB
Library key for the locale lib |
Constructor Summary | |
---|---|
XhtmlUtils()
|
Method Summary | |
---|---|
static void |
addLib(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.Object libKey)
|
static java.lang.String |
escapeJS(java.lang.String inString)
Handle escaping '/', and single quotes, plus escaping text inside of quotes with just a String for input. |
static java.lang.String |
escapeJS(java.lang.String inString,
boolean inQuotes)
Handle escaping '/', and single quotes, plus escaping text inside of quotes with just a String for input. |
static void |
escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString)
Handle escaping '/', and single quotes, plus escaping text inside of quotes. |
static void |
escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString,
boolean inQuotes)
Handle escaping '/', and single quotes, plus escaping text inside of quotes. |
static void |
escapeJS(java.lang.StringBuffer outBuffer,
java.lang.String inString,
boolean inQuotes,
int escapeCount)
Handle escaping '/', and single quotes, plus escaping text inside of quotes. |
static java.lang.String |
getChainedJS(java.lang.String evh1,
java.lang.String evh2,
boolean shortCircuit)
Return the chained JavaScript |
static java.lang.String |
getCompositeId(java.lang.String baseid,
java.lang.String suffix)
Returns a composite ID based on a base and a suffix. |
static java.lang.String |
getFormattedString(java.lang.String pattern,
java.lang.String[] parameters)
|
static java.lang.String |
getJSIdentifier(java.lang.String clientId)
|
static javax.faces.component.UIComponent |
getStructuralParent(javax.faces.component.UIComponent component)
Skip over pure iteration components to find a "structural" parent. |
static void |
registerScriptlet(java.lang.Object key,
Scriptlet scriptlet)
Registers a scriptlet. |
static boolean |
supportsSeparateWindow(org.apache.myfaces.trinidad.context.Agent agent)
Returns true if the agent has enough support for Trinidad to launch separate windows. |
static void |
writeLibImport(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.Object libURL)
Write out a script element importing a library. |
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 CORE_LIB
Constructor Detail |
---|
public XhtmlUtils()
Method Detail |
---|
public static javax.faces.component.UIComponent getStructuralParent(javax.faces.component.UIComponent component)
public static final boolean supportsSeparateWindow(org.apache.myfaces.trinidad.context.Agent agent)
public static java.lang.String getCompositeId(java.lang.String baseid, java.lang.String suffix)
public static void registerScriptlet(java.lang.Object key, Scriptlet scriptlet)
public static void addLib(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.Object libKey) throws java.io.IOException
java.io.IOException
public static void writeLibImport(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.Object libURL) throws java.io.IOException
java.io.IOException
public static java.lang.String getChainedJS(java.lang.String evh1, java.lang.String evh2, boolean shortCircuit)
public static java.lang.String escapeJS(java.lang.String inString)
public static java.lang.String escapeJS(java.lang.String inString, boolean inQuotes)
public static void escapeJS(java.lang.StringBuffer outBuffer, java.lang.String inString)
public static void escapeJS(java.lang.StringBuffer outBuffer, java.lang.String inString, boolean inQuotes)
public static void escapeJS(java.lang.StringBuffer outBuffer, java.lang.String inString, boolean inQuotes, int escapeCount)
public static java.lang.String getJSIdentifier(java.lang.String clientId)
public static java.lang.String getFormattedString(java.lang.String pattern, java.lang.String[] parameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |