UIX 2.2.16

oracle.cabo.ui.laf
Class LookAndFeelExtension

java.lang.Object
  |
  +--oracle.cabo.ui.laf.LookAndFeel
        |
        +--oracle.cabo.ui.laf.LookAndFeelExtension

public class LookAndFeelExtension
extends LookAndFeel

A LookAndFeel which extends another LookAndFeel, possibly adding customizations.


Constructor Summary
LookAndFeelExtension(LookAndFeel baseLookAndFeel, java.lang.String id, java.lang.String family)
          Creates a LookAndFeel which extends the specified base LookAndFeel.
 
Method Summary
 Agent getAgent(Agent baseAgent, java.lang.String facet)
          Implementation of LookAndFeel.getAgent() which delegates to the base LookAndFeel.
 LookAndFeel getBaseLookAndFeel()
          Returns the base LookAndFeel which this custom LookAndFeel "extends".
 java.lang.String getContentType(java.lang.String[] acceptedTypes)
          Implementation of LookAndFeel.getContentType() which delegates to the base LookAndFeel.
 java.lang.String getFamily()
          Returns the name of the look and feel family that this LookAndFeelExtension belongs to.
 Icon getIcon(java.lang.String namespace, java.lang.String iconName)
          Override of LookAndFeel.getIcon() which supports pulling translations from component providers as well as the base LookAndFeel.
 java.lang.String getId()
          Returns the id of this custom LookAndFeel.
 ImageTypeManager getImageTypeManager()
          Implementation of LookAndFeel.getImageTypeManager() which delegates to the base LookAndFeel.
 OutputMethod getOutputMethod(java.io.PrintWriter outWriter, java.io.OutputStream stream, java.lang.String contentType, java.lang.String characterEncoding, ErrorLog log)
          Implementation of LookAndFeel.getOutputMethod() which delegates to the base LookAndFeel.
 RendererManager getRendererManager()
          Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.
 RendererManager getRendererManager(java.lang.String facet)
          Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.
 StyleSheetDocument getStyleSheetDocument(StyleContext context)
          Override of LookAndFeel.getStyleSheetDocument() which merges styles from the base LookAndFeel's style sheet and the LookAndFeelExtension's style sheet.
 java.lang.String getStyleSheetName()
          Returns the name of the style sheet for this LookAndFeel if one has been set.
 java.util.Enumeration getSupportedFacets()
          Implementation of LookAndFeel.getSupportedFacets() which delegates to the base LookAndFeel.
 java.lang.Object getTranslatedValue(LocaleContext lContext, java.lang.String namespace, java.lang.String key)
          Override of LookAndFeel.getTranslatedValue() which supports pulling translations from component providers as well as the base LookAndFeel.
 void registerIcon(java.lang.String namespace, java.lang.String iconName, Icon icon)
          Override of LookAndFeel.registerIcon().
 void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, java.lang.Class resourceClass, java.lang.String templateName)
          Registers a template-based Renderer for the specified component.
 void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, Renderer renderer)
          Registers a custom Renderer for the specified component namespace/name.
 void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, java.lang.String className)
          Registers a custom Renderer for the specified component using the Renderer class name.
 void setStyleSheetName(java.lang.String styleSheetName)
          Sets the name of the style sheet for this look and feel.
 
Methods inherited from class oracle.cabo.ui.laf.LookAndFeel
getBundleName, getProperty, getTranslatedString, getTranslatedValue, registerBundle, registerStyleSheet, setProperty, supportsFacet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookAndFeelExtension

public LookAndFeelExtension(LookAndFeel baseLookAndFeel,
                            java.lang.String id,
                            java.lang.String family)
Creates a LookAndFeel which extends the specified base LookAndFeel.
Parameters:
baseLookAndFeel - The base LookAndFeel that this custom LookAndFeel "extends".
id - A string which can be used to uniquely identify the custom LookAndFeel implementation.
family - The look and feel family name that this LookAndFeelExtension belongs to
Method Detail

getBaseLookAndFeel

public LookAndFeel getBaseLookAndFeel()
Returns the base LookAndFeel which this custom LookAndFeel "extends".

getId

public java.lang.String getId()
Returns the id of this custom LookAndFeel.
Overrides:
getId in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
See Also:
LookAndFeelManager.getLookAndFeelById(java.lang.String)

getFamily

public java.lang.String getFamily()
Returns the name of the look and feel family that this LookAndFeelExtension belongs to.
Overrides:
getFamily in class LookAndFeel

getRendererManager

public RendererManager getRendererManager()
Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.
Overrides:
getRendererManager in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
See Also:
RendererManager

getRendererManager

public RendererManager getRendererManager(java.lang.String facet)
Implementation of LookAndFeel.getRendererManager() which delegates to the base LookAndFeel.
Overrides:
getRendererManager in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
See Also:
RendererManager, LookAndFeel.supportsFacet(java.lang.String)

getAgent

public Agent getAgent(Agent baseAgent,
                      java.lang.String facet)
Implementation of LookAndFeel.getAgent() which delegates to the base LookAndFeel.
Overrides:
getAgent in class LookAndFeel

getSupportedFacets

public java.util.Enumeration getSupportedFacets()
Implementation of LookAndFeel.getSupportedFacets() which delegates to the base LookAndFeel.
Overrides:
getSupportedFacets in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
See Also:
LookAndFeel.supportsFacet(java.lang.String)

getImageTypeManager

public ImageTypeManager getImageTypeManager()
Implementation of LookAndFeel.getImageTypeManager() which delegates to the base LookAndFeel.
Overrides:
getImageTypeManager in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
See Also:
ImageTypeManager

getStyleSheetName

public java.lang.String getStyleSheetName()
Returns the name of the style sheet for this LookAndFeel if one has been set. Otherwise, delegates to the base LookAndFeel.
Overrides:
getStyleSheetName in class LookAndFeel
See Also:
setStyleSheetName(java.lang.String)

getContentType

public java.lang.String getContentType(java.lang.String[] acceptedTypes)
Implementation of LookAndFeel.getContentType() which delegates to the base LookAndFeel.
Overrides:
getContentType in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
Parameters:
acceptedTypes - the list of accepted types identified by the agent. This parameter may be null.

getOutputMethod

public OutputMethod getOutputMethod(java.io.PrintWriter outWriter,
                                    java.io.OutputStream stream,
                                    java.lang.String contentType,
                                    java.lang.String characterEncoding,
                                    ErrorLog log)
                             throws java.io.IOException
Implementation of LookAndFeel.getOutputMethod() which delegates to the base LookAndFeel.
Overrides:
getOutputMethod in class LookAndFeel

registerRenderer

public void registerRenderer(java.lang.String namespace,
                             java.lang.String name,
                             java.lang.String facet,
                             Renderer renderer)
Registers a custom Renderer for the specified component namespace/name. This Renderer will be used in place of the Renderer provided by the base Look And Feel.
Parameters:
namespace - The namespace of the component for which the custom Renderer should be used.
name - The name of the component for which the custom Renderer should be used.
facet - The name of the facet for which the custom Renderer should be used. If null, the Renderer will be registered for all supported facets.
Renderer - The custom Renderer

registerRenderer

public void registerRenderer(java.lang.String namespace,
                             java.lang.String name,
                             java.lang.String facet,
                             java.lang.String className)
Registers a custom Renderer for the specified component using the Renderer class name. The Renderer instance is instantiated the first time it is requested.
Parameters:
namespace - The namespace of the component for which the custom Renderer should be used.
name - The name of the component for which the custom Renderer should be used.
facet - The name of the facet for which the custom Renderer should be used. If null, the Renderer will be registered for all supported facets.
className - The clss name of the Renderer

registerRenderer

public void registerRenderer(java.lang.String namespace,
                             java.lang.String name,
                             java.lang.String facet,
                             java.lang.Class resourceClass,
                             java.lang.String templateName)
Registers a template-based Renderer for the specified component. The template will be loaded and instantiated the first time the renderer is needed.
Parameters:
namespace - The namespace of the component for which the custom Renderer should be used.
name - The name of the component for which the custom Renderer should be used.
facet - The name of the facet for which the custom Renderer should be used. If null, the Renderer will be registered for all supported facets.
className - The clss name of the Renderer
resourceClass - the class relative to which the template may be found
templateName - the name of the template file relative to the class

registerIcon

public void registerIcon(java.lang.String namespace,
                         java.lang.String iconName,
                         Icon icon)
Override of LookAndFeel.registerIcon().
Overrides:
registerIcon in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
Parameters:
namespace - The namespace of the icon.
iconName - The name of the icon.
icon - The Icon to register.

getTranslatedValue

public java.lang.Object getTranslatedValue(LocaleContext lContext,
                                           java.lang.String namespace,
                                           java.lang.String key)
                                    throws java.util.MissingResourceException
Override of LookAndFeel.getTranslatedValue() which supports pulling translations from component providers as well as the base LookAndFeel.
Overrides:
getTranslatedValue in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
Parameters:
lContext - The LocaleContext which provides the translation Locale
namespace - The namespace of the UIExtension which provides the translation
key - The key of the translation to retrieve.

getIcon

public Icon getIcon(java.lang.String namespace,
                    java.lang.String iconName)
Override of LookAndFeel.getIcon() which supports pulling translations from component providers as well as the base LookAndFeel.
Overrides:
getIcon in class LookAndFeel
Following copied from class: oracle.cabo.ui.laf.LookAndFeel
Parameters:
namespace - The namespace of the component/UIExtension which provides the icon.
iconName - The name of the icon to retrieve

setStyleSheetName

public void setStyleSheetName(java.lang.String styleSheetName)
Sets the name of the style sheet for this look and feel.

getStyleSheetDocument

public StyleSheetDocument getStyleSheetDocument(StyleContext context)
Override of LookAndFeel.getStyleSheetDocument() which merges styles from the base LookAndFeel's style sheet and the LookAndFeelExtension's style sheet.
Overrides:
getStyleSheetDocument in class LookAndFeel

UIX 2.2.16