Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.style.util
Class StyleUtils

java.lang.Object
  |
  +--oracle.cabo.style.util.StyleUtils

public class StyleUtils
extends java.lang.Object

Generic style utilities.


Constructor Summary
StyleUtils()
           
 
Method Summary
static java.util.Dictionary getShortStyleClasses(StyleContext context, StyleProvider provider)
          Returns a Dictionary which maps style class names to equivalent shorter names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleUtils

public StyleUtils()
Method Detail

getShortStyleClasses

public static java.util.Dictionary getShortStyleClasses(StyleContext context,
                                                        StyleProvider provider)
Returns a Dictionary which maps style class names to equivalent shorter names.

Some StyleProvider implementations, such as the FileSystemStyleCache, automatically provide compressed versions style class names. The short style classes can be used instead of the full style class names to reduce the overall size of generated content.

Note: The returned Dictionary uses String keys to represent the full class names. However, the short style class values may not necessarily be type java.lang.String. Clients must avoid explicitly casting the values contained in the Dictionary to type String. Instead, such values should be passed directly to the OutputMethod API to be rendered. Or, if the String representation is required, toString() should be called on the value.

Parameters:
context - The StyleContext
provider - The StyleProvider
Returns:
A Dictionary which maps the full style class names to the shorter equivalents.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.