oracle.cabo.ui.composite
Class TemplateUIExtension
java.lang.Object
|
+--oracle.cabo.ui.composite.TemplateUIExtension
- All Implemented Interfaces:
- UIExtension
- Direct Known Subclasses:
- StrutsTemplateUIExtension
- public class TemplateUIExtension
- extends java.lang.Object
- implements UIExtension
The TemplateUIExtension allows developers to turn a template library file into a RendererFactory and ParserFactory that can be registered by developers with a single API. This allows templates to be used in UIX files without any need for explict imports, but as importantly allows UIX templates to be used in non-XML scenarios - including Java code or JSP tag libraries.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateUIExtension
public TemplateUIExtension(TemplateLibrary library)
- Create a TemplateUIExtension.
TemplateUIExtension
public TemplateUIExtension(TemplateLibrary[] libraries)
- Create a TemplateUIExtension.
isLenient
public boolean isLenient()
- Returns whether the template extension is lenient in its parsing. Specifically, lenient extensions will explicitly raise errors when unknown elements are encountered. This defaults to false.
setLenient
public void setLenient(boolean lenient)
- Sets whether the template extension is lenient in its parsing. Specifically, lenient extensions will explicitly raise errors when unknown elements are encountered. This defaults to true.
registerSelf
public void registerSelf(LookAndFeel laf)
- Registers the extension explicitly on a LookAndFeel.
-
- Specified by:
registerSelf
in interface UIExtension
registerSelf
public void registerSelf(ParserManager manager)
- Registers the extension explicitly on a ParserManager.
-
- Specified by:
registerSelf
in interface UIExtension
registerRendererFactory
protected void registerRendererFactory(RendererManager manager,
java.lang.String namespaceURI,
RendererFactoryImpl factory)
registerUINodeParserFactory
protected void registerUINodeParserFactory(ParserManager manager,
java.lang.String namespaceURI,
java.util.Dictionary types)