|
||||||||||
| 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 rc,
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.StringBuilder outBuilder,
java.lang.String inString)
Handle escaping '/', and single quotes, plus escaping text inside of quotes. |
static void |
escapeJS(java.lang.StringBuilder outBuilder,
java.lang.String inString,
boolean inQuotes)
Handle escaping '/', and single quotes, plus escaping text inside of quotes. |
static void |
escapeJS(java.lang.StringBuilder outBuilder,
java.lang.String inString,
boolean inQuotes,
int escapeCount)
Handle escaping '/', and single quotes, plus escaping text inside of quotes. |
static java.lang.String |
getChainedJS(boolean shortCircuit,
java.lang.String... scripts)
Return the chained JavaScript |
static java.lang.String |
getChainedJS(java.lang.String evh1,
java.lang.String evh2,
boolean shortCircuit)
Return the chained JavaScript |
static java.lang.String |
getClientEventHandler(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.String eventName,
java.lang.String secondaryEventName,
java.lang.String userHandlerScript,
java.lang.String eventHandlerScript)
Build a client event handler (onfocus for example) including any associated client behaviors for the event. |
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 |
getEncodedNameAttribute(java.lang.String[] param)
|
static java.lang.String |
getEncodedParameter(java.lang.String param)
|
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 rc,
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 rc,
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 rc,
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 getChainedJS(boolean shortCircuit,
java.lang.String... scripts)
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.StringBuilder outBuilder,
java.lang.String inString)
public static void escapeJS(java.lang.StringBuilder outBuilder,
java.lang.String inString,
boolean inQuotes)
public static void escapeJS(java.lang.StringBuilder outBuilder,
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)
public static java.lang.String getEncodedParameter(java.lang.String param)
public static java.lang.String getEncodedNameAttribute(java.lang.String[] param)
public static java.lang.String getClientEventHandler(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.String eventName,
java.lang.String secondaryEventName,
java.lang.String userHandlerScript,
java.lang.String eventHandlerScript)
facesContext - The faces contextcomponent - The componenteventName - The event, without the "on*" prefix, to rendersecondaryEventName - If applicable, the secondary event name. For command components,
"click" and "action" behaviors are included together and for input components, "change" and
"valueChange" are included together.eventHandlerScript - Script to be executed after the behaviors. May be nulluserHandlerScript - user event handler to be executed before the event handler script and
any client behavior scripts. May be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||