oracle.dss.thin.beans.gridView
Class CSSStyleDefaultsImpl
java.lang.Object
|
+--oracle.dss.thin.beans.gridView.CSSStyleDefaultsImpl
- All Implemented Interfaces:
- CSSStyleDefaults
- public class CSSStyleDefaultsImpl
- extends java.lang.Object
- implements CSSStyleDefaults
The CSSStyleDefaultsImpl is a CSSStyleDefaults implementation which provides thin views and Java client views with CSS style property values specified in a XSS document. This method will change the default styles for the Thin beans, so that the styles on the Thin bean components will reflect the actual styles that are being rendered.
Thin beans by default will render the correct CSS style properties, even if this method is not called. This is due to the fact that the default styles for thin views are located in bistyles.xss, an XML-based definition for CSS styles. See oracle.cabo.ui.beans.StyleSheetBean
for information on how to dynamically generate UIX stylesheets.
- See Also:
CSSStyleDefaults
Constructor Summary |
CSSStyleDefaultsImpl(oracle.cabo.ui.RenderingContext context)
|
CSSStyleDefaultsImpl(java.lang.String source, java.lang.String target, java.util.Locale locale, int direction, int browser, java.lang.String version, int platform)
This constructor is used to provide thick beans with CSS style property values specified in a XSS document. |
CSSStyleDefaultsImpl(oracle.cabo.style.StyleMap styleMap)
|
Method Summary |
int[] |
getComponentIDs()
Get the array of component IDs for which style defaults are specified. |
ViewStyle |
getCSSDefaults(int compID)
Get a ViewStyle specifying the new default property values for the component identified by the given component ID. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSSStyleDefaultsImpl
public CSSStyleDefaultsImpl(java.lang.String source,
java.lang.String target,
java.util.Locale locale,
int direction,
int browser,
java.lang.String version,
int platform)
- This constructor is used to provide thick beans with CSS style property values specified in a XSS document.
-
- Parameters:
source
- The path of the source XSS document. The specified file must be a valid XSS document. If the specified file does not exists, an IllegalArgumentException is thrown.
target
- The path of the target directory. Generated CSS files are stored in this directory. If the directory does not exist and can not be created, an IllegalArgumentException is thrown.
locale
- Locale to be used.
direction
- See reading direction defined in oracle.bali.share.nls.LocaleUtils
browser
- Application constant for the browser. See oracle.cabo.share.agent.Agent for a list of valid values
version
- Version number for the browser.
platform
- See oracle.cabo.share.agent.Agent for a list of valid values
CSSStyleDefaultsImpl
public CSSStyleDefaultsImpl(oracle.cabo.ui.RenderingContext context)
CSSStyleDefaultsImpl
public CSSStyleDefaultsImpl(oracle.cabo.style.StyleMap styleMap)
getComponentIDs
public int[] getComponentIDs()
- Get the array of component IDs for which style defaults are specified. When a CSSStyleDefaults is applied to a view, the view will call this method. For each component ID in the returned array, the view will call getCSSDefaults, passing in one of the component IDs in the array to get the defaults for the specified component.
-
- Specified by:
getComponentIDs
in interface CSSStyleDefaults
-
- Returns:
- an array of component IDs for which defaults will be specified
getCSSDefaults
public ViewStyle getCSSDefaults(int compID)
- Get a ViewStyle specifying the new default property values for the component identified by the given component ID. When a CSSStyleDefaults is applied to a view, the view will call this method once for each ID contained in the array returned by getComponentIDs. Each ViewStyle returned should have its used bits set only for those properties whose values should be the new defaults for the specified component. The only ViewStyle properties that may be applied to the component are:
- Background
- FontBold
- FontItalic
- FontNamef
- FontSize
- Foreground
- HorizontalAlignment
- Underline
-
- Specified by:
getCSSDefaults
in interface CSSStyleDefaults
- Following copied from interface:
oracle.dss.dataView.CSSStyleDefaults
-
- Parameters:
compID
- The ID of the component whose ViewStyle
to get.
- Returns:
- The
ViewStyle
for the specified component. The used bits should be set only for those properties whose values should be the new defaults for the specified component.
Copyright © 2003, Oracle. All Rights Reserved.