| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.editor.language.StyleRegistry
public final class StyleRegistry
A StyleRegistry is a registry of all known styles
 for all known language modules.
| Field Summary | |
|---|---|
| static java.lang.String | PROPERTY_STYLE_CHANGEDName of the pseudo-property that the StyleRegistry uses to notify listeners (views) that settings in the registry have changed. | 
| Constructor Summary | |
|---|---|
| StyleRegistry()Constructs a new style registry. | |
| Method Summary | |
|---|---|
|  void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)Adds a PropertyChangeListenerto this registry
 to track changes to styles. | 
|  java.lang.Object | clone()Creates and returns a copy of this class. | 
|  BaseStyle | createStyle(java.lang.String styleName,
            java.lang.String presentationName,
            java.lang.String parentStyleName)Create a new BaseStylebased on the given parent
 style and inheriting all of its attributes from the parent. | 
|  BaseStyle | createStyle(java.lang.String styleName,
            java.lang.String presentationName,
            java.lang.String parentStyleName,
            java.awt.Color fgColor)Create a new BaseStylebased on the given parent
 style, with the specified overriding foreground color. | 
|  BaseStyle | createStyle(java.lang.String styleName,
            java.lang.String presentationName,
            java.lang.String parentStyleName,
            java.awt.Color fgColor,
            java.awt.Color bgColor,
            int fontStyle)Create a new BaseStylebased on the given parent
 style, but overriding all of its attributes. | 
|  BaseStyle | createStyle(java.lang.String styleName,
            java.lang.String presentationName,
            java.lang.String parentStyleName,
            java.awt.Color fgColor,
            int fontStyle)Create a new BaseStylebased on the given parent
 style, with the specified overriding foreground and font style. | 
|  BaseStyle | createStyle(java.lang.String styleName,
            java.lang.String presentationName,
            java.lang.String parentStyleName,
            int fontStyle)Create a new BaseStylebased on the given parent
 style, with the specified overriding font style. | 
|  java.util.Iterator | getStyleIterator()Fetch an Iteratorfor all of the styles within this
 registry. | 
|  BaseStyle | lookupStyle(java.lang.String styleName)Fetches the style with the given name. | 
|  void | modifyStyle(java.lang.String styleName,
            boolean useParentFG,
            java.awt.Color fgColor,
            boolean useParentBG,
            java.awt.Color bgColor,
            boolean useParentFontStyle,
            int fontStyle)Modifies this style's attributes. | 
|  void | modifyStyleBackground(java.lang.String styleName,
                      boolean useParentBG,
                      java.awt.Color bgColor)Modifies the style's background attributes. | 
|  void | modifyStyleFontStyle(java.lang.String styleName,
                     boolean useParentFontStyle,
                     int fontStyle)Modifies the style's font attributes. | 
|  void | modifyStyleForeground(java.lang.String styleName,
                      boolean useParentFG,
                      java.awt.Color fgColor)Modifies the style's foreground attributes. | 
|  void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)Removes a PropertyChangeListenerfrom this registry. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String PROPERTY_STYLE_CHANGED
| Constructor Detail | 
|---|
public StyleRegistry()
| Method Detail | 
|---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener to this registry
 to track changes to styles.
listener - the listener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener from this registry.
listener - the listener to be removedpublic java.util.Iterator getStyleIterator()
Iterator for all of the styles within this
 registry.  Note that some of these styles may not be completely
 initialized - clients that use this style list for the purposes
 of display a list of available styles should call lookupStyle()
 on each style to ensure that the given style has been initialized
 properly.
public java.lang.Object clone()
StyleRegistry with
 a copy of its own styles separate from this one.
clone in class java.lang.ObjectStyleRegistry
public BaseStyle createStyle(java.lang.String styleName,
                             java.lang.String presentationName,
                             java.lang.String parentStyleName)
BaseStyle based on the given parent
 style and inheriting all of its attributes from the parent.
styleName - the name of the stylepresentationName - the presentation or public name of the
        style that can be used for UI purposesparentStyleName - the name of the parent style
public BaseStyle createStyle(java.lang.String styleName,
                             java.lang.String presentationName,
                             java.lang.String parentStyleName,
                             java.awt.Color fgColor)
BaseStyle based on the given parent
 style, with the specified overriding foreground color.
styleName - the name of the stylepresentationName - the presentation or public name of the
        style that can be used for UI purposesparentStyleName - the name of the parent stylefgColor - the foreground color to use
public BaseStyle createStyle(java.lang.String styleName,
                             java.lang.String presentationName,
                             java.lang.String parentStyleName,
                             int fontStyle)
BaseStyle based on the given parent
 style, with the specified overriding font style.
styleName - the name of the stylepresentationName - the presentation or public name of the
        style that can be used for UI purposesparentStyleName - the name of the parent stylefontStyle - the font style to use
public BaseStyle createStyle(java.lang.String styleName,
                             java.lang.String presentationName,
                             java.lang.String parentStyleName,
                             java.awt.Color fgColor,
                             int fontStyle)
BaseStyle based on the given parent
 style, with the specified overriding foreground and font style.
styleName - the name of the stylepresentationName - the presentation or public name of the
        style that can be used for UI purposesparentStyleName - the name of the parent stylefgColor - the foreground color to usefontStyle - the font style to use
public BaseStyle createStyle(java.lang.String styleName,
                             java.lang.String presentationName,
                             java.lang.String parentStyleName,
                             java.awt.Color fgColor,
                             java.awt.Color bgColor,
                             int fontStyle)
BaseStyle based on the given parent
 style, but overriding all of its attributes.
styleName - the name of the stylepresentationName - the presentation or public name of the
        style that can be used for UI purposesparentStyleName - the name of the parent stylefgColor - the foreground color to usebgColor - the background color to usefontStyle - the font style to usepublic BaseStyle lookupStyle(java.lang.String styleName)
public void modifyStyleForeground(java.lang.String styleName,
                                  boolean useParentFG,
                                  java.awt.Color fgColor)
styleName - the name of the style to modifyuseParentFG - whether the style should inherit from the parentfgColor - the foreground color to use
public void modifyStyleBackground(java.lang.String styleName,
                                  boolean useParentBG,
                                  java.awt.Color bgColor)
styleName - the name of the style to modifyuseParentBG - whether the style should inherit from the parentbgColor - the background color to use
public void modifyStyleFontStyle(java.lang.String styleName,
                                 boolean useParentFontStyle,
                                 int fontStyle)
styleName - the name of the style to modifyuseParentFontStyle - whether the style should inherit from
        the parentfontStyle - the font style to use
public void modifyStyle(java.lang.String styleName,
                        boolean useParentFG,
                        java.awt.Color fgColor,
                        boolean useParentBG,
                        java.awt.Color bgColor,
                        boolean useParentFontStyle,
                        int fontStyle)
LanguageModule.
styleName - the name of the style to modifyuseParentFG - whether the style should inherit from the parentfgColor - the foreground color to useuseParentBG - whether the style should inherit from the parentbgColor - the background color to useuseParentFontStyle - whether the style should inherit from
        the parentfontStyle - the font style to use| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||