org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class AccessKeyUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.AccessKeyUtils

public class AccessKeyUtils
extends java.lang.Object

Utilities for working with access keys.


Constructor Summary
AccessKeyUtils()
           
 
Method Summary
static int getAccessKeyIndex(java.lang.Object textValue, char accessChar)
          Returns the index of the access key in the specified text.
static void renderAccessKeyText(javax.faces.context.FacesContext context, java.lang.Object textValue, char accessKey, java.lang.String highlightElement)
          Renders the text with the access key highlighted as appropriate.
static void renderAccessKeyText(javax.faces.context.FacesContext context, java.lang.Object textValue, int keyIndex)
          Renders the text with access key having default style of underline.
static void renderAccessKeyText(javax.faces.context.FacesContext context, java.lang.Object textValue, int keyIndex, java.lang.String accessKeyClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessKeyUtils

public AccessKeyUtils()
Method Detail

renderAccessKeyText

public static void renderAccessKeyText(javax.faces.context.FacesContext context,
                                       java.lang.Object textValue,
                                       int keyIndex)
                                throws java.io.IOException
Renders the text with access key having default style of underline.

Throws:
java.io.IOException

renderAccessKeyText

public static void renderAccessKeyText(javax.faces.context.FacesContext context,
                                       java.lang.Object textValue,
                                       int keyIndex,
                                       java.lang.String accessKeyClass)
                                throws java.io.IOException
Throws:
java.io.IOException

renderAccessKeyText

public static void renderAccessKeyText(javax.faces.context.FacesContext context,
                                       java.lang.Object textValue,
                                       char accessKey,
                                       java.lang.String highlightElement)
                                throws java.io.IOException
Renders the text with the access key highlighted as appropriate.

Throws:
java.io.IOException

getAccessKeyIndex

public static int getAccessKeyIndex(java.lang.Object textValue,
                                    char accessChar)
Returns the index of the access key in the specified text.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.