|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.style.UserStyleSheet
The UserStyleSheet is used to specify user-specific style overrides which are merged with the styles defined by a StyleProvider.
Constructor Summary | |
UserStyleSheet(java.lang.String id,
java.util.Dictionary styles,
java.util.Dictionary namedStyles)
Creates a UserStyleSheet. |
|
UserStyleSheet(java.lang.String id,
UserStyleSheet styleSheet1,
UserStyleSheet styleSheet2)
Creates a UserStyleSheet by merging styles from two different UserStyleSheets. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests for equality. |
java.lang.String |
getID()
Returns the ID for this UserStyleSheet. |
Style |
getNamedStyle(java.lang.String name)
Returns the named Style associated with the specified name. |
java.util.Enumeration |
getNames()
Returns an Enumeration of the String names for the named Styles of this UserStyleSheet. |
java.util.Enumeration |
getSelectors()
Returns an Enumeration of the String selectors for the Styles of this UserStyleSheet. |
Style |
getStyle(java.lang.String selector)
Returns the Style associated with the specified selector. |
static UserStyleSheet |
getUserStyleSheet(StyleContext context)
Convenience method for retrieving a UserStyleSheet from a StyleContext. |
int |
hashCode()
Returns the hash code. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserStyleSheet(java.lang.String id, java.util.Dictionary styles, java.util.Dictionary namedStyles)
id
- A unique string which identifies this UserStyleSheetstyles
- A Dictionary of Style objects, hashed by selectornamedStyles
- A Dictionary or names Style objects, hashed by namepublic UserStyleSheet(java.lang.String id, UserStyleSheet styleSheet1, UserStyleSheet styleSheet2)
id
- A unique string which identifies the new UserStyleSheet.
If null, a unique name will be formed by concatenating the
ids from styleSheet1 and styleSheet2.styleSheet1
- The first style sheet from which styles should
be obtained. Style properties defined in this style sheet
take precedence over the same properties defined in
styleSheet2.styleSheet2
- The second style sheet from which styles should
be obtained.Method Detail |
public static UserStyleSheet getUserStyleSheet(StyleContext context)
public java.lang.String getID()
public java.util.Enumeration getSelectors()
getStyle(java.lang.String)
public java.util.Enumeration getNames()
getNamedStyle(java.lang.String)
public Style getStyle(java.lang.String selector)
public Style getNamedStyle(java.lang.String name)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |