|
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
Defines the components which are used to implement a particular look and feel (for example, the Browser Look And Feel). The LookAndFeel can vary on a per-request basis, to allow rendering to vary based on the target Agent or a user preference.
LookAndFeelManager
,
RenderingContext.getLookAndFeel()
Constructor Summary | |
LookAndFeel()
|
Method Summary | |
Agent |
getAgent(Agent baseAgent,
java.lang.String facet)
Modifies the agent to account for a facet, if necessary. |
java.lang.String |
getBundleName(java.lang.String namespace)
Returns the name of the ResourceBundle that has been registered for the specified namespace. |
abstract java.lang.String |
getContentType(java.lang.String[] acceptedTypes)
Returns the content type. |
java.lang.String |
getFamily()
Returns the name of the look and feel "family" for this look and feel. |
Icon |
getIcon(java.lang.String namespace,
java.lang.String iconName)
Returns an Icon object that can be used to produce an icon URI for the icon identified with the specified name. |
java.lang.String |
getId()
Returns an string identifier which uniquely identies this LookAndFeel implementation. |
abstract ImageTypeManager |
getImageTypeManager()
Returns the ImageTypeManager for this LookAndFeel. |
abstract OutputMethod |
getOutputMethod(java.io.PrintWriter outWriter,
java.io.OutputStream stream,
java.lang.String contentType,
java.lang.String characterEncoding,
ErrorLog log)
Returns the output method that should be used for this look-and-feel. |
java.lang.Object |
getProperty(java.lang.Object key)
Retrieves a property that was set via a call to setProperty(). |
abstract RendererManager |
getRendererManager()
Returns the default RendererManager for this LookAndFeel. |
RendererManager |
getRendererManager(java.lang.String facet)
Returns the RendererManager for a particular facet of this LookAndFeel. |
StyleSheetDocument |
getStyleSheetDocument(StyleContext context)
Returns the StyleSheetDocument object which defines all of the styles for this LookAndFeel, including any styles that are contributed by UIExtensions. |
abstract java.lang.String |
getStyleSheetName()
Returns the name of the XSS style sheet for this LookAndFeel. |
java.util.Enumeration |
getSupportedFacets()
Returns an enumeration of all supported facets. |
java.lang.String |
getTranslatedString(LocaleContext lContext,
java.lang.String key)
Returns a translated String in the LocaleContext's translation Locale. |
java.lang.Object |
getTranslatedValue(LocaleContext lContext,
java.lang.String key)
Returns a translated value in the LocaleContext's translation Locale. |
java.lang.Object |
getTranslatedValue(LocaleContext lContext,
java.lang.String namespace,
java.lang.String key)
Returns a translated value in the LocaleContext's translation Locale. |
void |
registerBundle(java.lang.String namespace,
java.lang.String bundleName)
Registers a ResourceBundle to be used for obtaining translations for the specified component namespace. |
void |
registerIcon(java.lang.String namespace,
java.lang.String iconName,
Icon icon)
Registers an Icon for the specified namespace/icon name. |
void |
registerStyleSheet(java.lang.String namespace,
java.lang.String styleSheetName)
Registers a style sheet which defines UIExtension-specific styles. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Sets a value for the specified property key. |
boolean |
supportsFacet(java.lang.String facet)
Returns true if a given facet is supported. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LookAndFeel()
Method Detail |
public java.lang.String getId()
LookAndFeelManager.getLookAndFeelById(java.lang.String)
public java.lang.String getFamily()
public abstract RendererManager getRendererManager()
RendererManager
public RendererManager getRendererManager(java.lang.String facet)
RendererManager
,
supportsFacet(java.lang.String)
public Agent getAgent(Agent baseAgent, java.lang.String facet)
public java.util.Enumeration getSupportedFacets()
supportsFacet(java.lang.String)
public boolean supportsFacet(java.lang.String facet)
getSupportedFacets()
public abstract ImageTypeManager getImageTypeManager()
ImageTypeManager
public abstract java.lang.String getStyleSheetName()
public java.lang.String getTranslatedString(LocaleContext lContext, java.lang.String key) throws java.util.MissingResourceException
public java.lang.Object getTranslatedValue(LocaleContext lContext, java.lang.String key) throws java.util.MissingResourceException
public abstract java.lang.String getContentType(java.lang.String[] acceptedTypes)
acceptedTypes
- the list of accepted types
identified by the agent. This parameter may be null.public abstract OutputMethod getOutputMethod(java.io.PrintWriter outWriter, java.io.OutputStream stream, java.lang.String contentType, java.lang.String characterEncoding, ErrorLog log) throws java.io.IOException
public java.lang.Object getTranslatedValue(LocaleContext lContext, java.lang.String namespace, java.lang.String key) throws java.util.MissingResourceException
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 java.lang.String getBundleName(java.lang.String namespace)
namespace
- The namespace of a UIExtension which has registered
a bundle with this LookAndFeel.registerBundle(java.lang.String, java.lang.String)
public void registerBundle(java.lang.String namespace, java.lang.String bundleName)
namespace
- The namespace of the UIExtension which
provides this bundle.bundleName
- The fully-qualified class name of the bundle.public Icon getIcon(java.lang.String namespace, java.lang.String iconName)
namespace
- The namespace of the component/UIExtension which
provides the icon.iconName
- The name of the icon to retrievepublic void registerIcon(java.lang.String namespace, java.lang.String iconName, Icon icon)
namespace
- The namespace of the icon.iconName
- The name of the icon.icon
- The Icon to register.public void registerStyleSheet(java.lang.String namespace, java.lang.String styleSheetName)
namespace
- The namespace of the UIExtension which
provides this style sheet.styleSheetName
- The name of the style sheet which
defines the UIExtension's styles. This style sheet
should be installed under the directory specified by
Configuration.STYLES_DIRECTORY path.getStyleSheetDocument(oracle.cabo.style.StyleContext)
public StyleSheetDocument getStyleSheetDocument(StyleContext context)
public java.lang.Object getProperty(java.lang.Object key)
public void setProperty(java.lang.Object key, java.lang.Object value)
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |