UIX 2.2.16

oracle.cabo.ui.laf.xml
Class LookAndFeelUtils

java.lang.Object
  |
  +--oracle.cabo.ui.laf.xml.LookAndFeelUtils

public class LookAndFeelUtils
extends java.lang.Object

Utility functions for creating LookAndFeels from look and feel XML configuration files.


Method Summary
static ParserManager createDefaultManager()
          Creates a ParserManager pre-registered witih all the default ParserFactories needed to create a LookAndFeel.
static LookAndFeelExtension createLookAndFeelExtension(LookAndFeelManager lookAndFeelManager, XMLProvider provider, NameResolver resolver, ErrorLog log, org.xml.sax.InputSource source)
          Create a LookAndFeelExtension off a generic SAX input source, using the default parsing manager.
static LookAndFeelExtension createLookAndFeelExtension(LookAndFeelManager lookAndFeelManager, XMLProvider provider, NameResolver resolver, ErrorLog log, org.xml.sax.InputSource source, ParserManager parserManager)
          Create a LookAndFeelExtension off a generic SAX input source, using a custom parsing manager.
static LookAndFeel getLookAndFeel(ParseContext context, java.lang.String id)
          Returns the LookAndFeel with the specified id for the current LookAndFeelManager.
static LookAndFeelManager getLookAndFeelManager(ParseContext context)
          Returns the current LookAndFeelManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLookAndFeelExtension

public static LookAndFeelExtension createLookAndFeelExtension(LookAndFeelManager lookAndFeelManager,
                                                              XMLProvider provider,
                                                              NameResolver resolver,
                                                              ErrorLog log,
                                                              org.xml.sax.InputSource source)
                                                       throws java.io.IOException,
                                                              org.xml.sax.SAXException
Create a LookAndFeelExtension off a generic SAX input source, using the default parsing manager.

Parameters:
lookAndFeelManager - The LookAndFeelManager that will be used to obtain references to LookAndFeel instances that this LookAndFeelExtension depends on, such as the base LookAndFeel.
provider - an XMLProvider implementation
resolver - A NameResolver that can be used to locate resources, such as source images for colorized icons.
log - the error log for ouputting errors
source - the SAX input source to load the LookAndFeel contents from

createLookAndFeelExtension

public static LookAndFeelExtension createLookAndFeelExtension(LookAndFeelManager lookAndFeelManager,
                                                              XMLProvider provider,
                                                              NameResolver resolver,
                                                              ErrorLog log,
                                                              org.xml.sax.InputSource source,
                                                              ParserManager parserManager)
                                                       throws java.io.IOException,
                                                              org.xml.sax.SAXException
Create a LookAndFeelExtension off a generic SAX input source, using a custom parsing manager.

Parameters:
lookAndFeelManager - The LookAndFeelManager that will be used to obtain references to LookAndFeel instances that this LookAndFeelExtension depends on, such as the base LookAndFeel.
provider - an XMLProvider implementation
resolver - A NameResolver that can be used to locate resources, such as source images for colorized icons.
log - the error log for ouputting errors
source - the SAX input source to load the LookAndFeel contents from
manager - the ParserManager to use for parsing

createDefaultManager

public static ParserManager createDefaultManager()
Creates a ParserManager pre-registered witih all the default ParserFactories needed to create a LookAndFeel.

getLookAndFeel

public static LookAndFeel getLookAndFeel(ParseContext context,
                                         java.lang.String id)
Returns the LookAndFeel with the specified id for the current LookAndFeelManager.
Parameters:
context - The current ParseContext
id - The id of the LookAndFeel to retrieve.

getLookAndFeelManager

public static LookAndFeelManager getLookAndFeelManager(ParseContext context)
Returns the current LookAndFeelManager.
Parameters:
context - The current ParseContext

UIX 2.2.16