|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.laf.LookAndFeel | +--oracle.cabo.ui.laf.LookAndFeelExtension
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 |
public LookAndFeelExtension(LookAndFeel baseLookAndFeel, java.lang.String id, java.lang.String family)
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 toMethod Detail |
public LookAndFeel getBaseLookAndFeel()
public java.lang.String getId()
getId
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
LookAndFeelManager.getLookAndFeelById(java.lang.String)
public java.lang.String getFamily()
getFamily
in class LookAndFeel
public RendererManager getRendererManager()
getRendererManager
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
RendererManager
public RendererManager getRendererManager(java.lang.String facet)
getRendererManager
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
RendererManager
,
LookAndFeel.supportsFacet(java.lang.String)
public Agent getAgent(Agent baseAgent, java.lang.String facet)
getAgent
in class LookAndFeel
public java.util.Enumeration getSupportedFacets()
getSupportedFacets
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
LookAndFeel.supportsFacet(java.lang.String)
public ImageTypeManager getImageTypeManager()
getImageTypeManager
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
ImageTypeManager
public java.lang.String getStyleSheetName()
getStyleSheetName
in class LookAndFeel
setStyleSheetName(java.lang.String)
public java.lang.String getContentType(java.lang.String[] acceptedTypes)
getContentType
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
acceptedTypes
- the list of accepted types
identified by the agent. This parameter may be null.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
getOutputMethod
in class LookAndFeel
public void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, Renderer renderer)
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 Rendererpublic void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, java.lang.String className)
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 Rendererpublic void registerRenderer(java.lang.String namespace, java.lang.String name, java.lang.String facet, java.lang.Class resourceClass, java.lang.String templateName)
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 RendererresourceClass
- the class relative to which the template may
be foundtemplateName
- the name of the template file relative to the classpublic void registerIcon(java.lang.String namespace, java.lang.String iconName, Icon icon)
registerIcon
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
namespace
- The namespace of the icon.iconName
- The name of the icon.icon
- The Icon to register.public java.lang.Object getTranslatedValue(LocaleContext lContext, java.lang.String namespace, java.lang.String key) throws java.util.MissingResourceException
getTranslatedValue
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
lContext
- The LocaleContext which provides the translation Localenamespace
- The namespace of the UIExtension which provides the
translationkey
- The key of the translation to retrieve.public Icon getIcon(java.lang.String namespace, java.lang.String iconName)
getIcon
in class LookAndFeel
oracle.cabo.ui.laf.LookAndFeel
namespace
- The namespace of the component/UIExtension which
provides the icon.iconName
- The name of the icon to retrievepublic void setStyleSheetName(java.lang.String styleSheetName)
public StyleSheetDocument getStyleSheetDocument(StyleContext context)
getStyleSheetDocument
in class LookAndFeel
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |