@Deprecated public class IlpDefaultStyleManager extends Object implements IlpStyleManager
Modifier and Type | Field and Description |
---|---|
protected IlpContext |
context
Deprecated.
Context
|
protected static Set |
JAVACLASS_STYLES_BLACK_LIST
Deprecated.
|
protected ilog.cpl.style.internal.IlpStyleMap |
styles
Deprecated.
Style cache
IlpStyleContext->IlpStyle |
protected Collection |
stylesInProgress
Deprecated.
Logger for local access
|
Constructor and Description |
---|
IlpDefaultStyleManager()
Deprecated.
IlpDefaultStyleManager constructor. |
IlpDefaultStyleManager(IlpContext context)
Deprecated.
IlpDefaultStyleManager constructor. |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Deprecated.
Forces the Style Manager to clean up unnecessary styles,
or styles that correspond to objects that are no longer needed by
the application.
|
IlpStyle |
getExistingStyle(IlpStyleContext styleContext)
Deprecated.
Gets a style by style context.
|
IlpStyle |
getStyle(Class clazz)
Deprecated.
Gets a style by Java class.
|
IlpStyle |
getStyle(IlpAttribute attribute)
Deprecated.
Gets a style by attribute.
|
IlpStyle |
getStyle(IlpAttribute attribute,
IlpClass clazz)
Deprecated.
Gets a style by attribute.
|
IlpStyle |
getStyle(IlpClass clazz)
Deprecated.
Gets a style by
IlpClass . |
IlpStyle |
getStyle(IlpObject object)
Deprecated.
Gets a style by
IlpObject . |
IlpStyle |
getStyle(IlpStyleContext styleContext)
Deprecated.
Gets a style by style context.
|
IlpStyle |
getStyle(String name)
Deprecated.
Gets a style by name.
|
List |
getStyleContexts()
Deprecated.
Gets a list of all style contexts for available styles.
|
protected IlpStyle |
postCreateStyle(IlpStyle original,
IlpStyleContext styleContext)
Deprecated.
This method changes the given style, if this is a style for
JTGO - because we need to transform an IlpStyle to IltClassLegend,
IltObjectLegend and IltLegend for compatibility
|
protected IlpStyle |
prepareBizAttributeStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
attribute style.
|
protected IlpStyle |
prepareBizClassStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
IlpClass style. |
protected IlpStyle |
prepareBizObjectStyle(IlpStyleContext instanceContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
IlpObject style. |
protected IlpStyle |
prepareJavaClassStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
Java class style.
|
protected IlpStyle |
prepareStyle(IlpStyle style,
IlpStyleContext styleContext)
Deprecated.
Creates the style hierarchy for shared styles according to its category.
|
void |
recustomizeStyles()
Deprecated.
Updates the contents of the styles after the style sheets have changed.
|
boolean |
removeStyle(IlpStyleContext id)
Deprecated.
Removes a style from the currently buffered styles.
|
void |
resetStyles()
Deprecated.
Cleans the contents of all currently buffered styles.
|
protected IlpContext context
protected ilog.cpl.style.internal.IlpStyleMap styles
IlpStyleContext->IlpStyle
protected Collection stylesInProgress
protected static final Set JAVACLASS_STYLES_BLACK_LIST
public IlpDefaultStyleManager()
IlpDefaultStyleManager
constructor. The service context used
is the default retrieved from IlpSystem
. The style service to
be used is retrieved from the service context.public IlpDefaultStyleManager(IlpContext context)
IlpDefaultStyleManager
constructor.context
- Service context.public IlpStyle getStyle(String name)
getStyle
in interface IlpStyleManager
name
- Name of style to retrieve.null
if it was impossible to
get or create the style.public IlpStyle getStyle(IlpClass clazz)
IlpClass
. If the style does not exist it will be created.
The following default styles are set for an IlpClass
style:
IlpClass
(and therefore also its
superclasses, if any).
getStyle
in interface IlpStyleManager
clazz
- IlpClass
of style.null
if it was impossible to
get or create the style.public IlpStyle getStyle(IlpObject object)
IlpObject
. If the style does not exist it will be created.
The following default styles are set for an IlpObject
style:
IlpClass
style (and thereby also the IlpClass
parents)
getStyle
in interface IlpStyleManager
object
- The IlpObject
of the style.null
if it was impossible to
get or create the style.public IlpStyle getStyle(IlpAttribute attribute)
IlpClass
linked in the attribute
will be used.
The following default styles are set for an attribute style:
IlpClass
containing the attribute is NOT automatically
added as a default style.
A style cannot be retrieved for a custom attribute that does not belong to
an IlpClass
.
getStyle
in interface IlpStyleManager
attribute
- The IlpAttribute
of the style.null
if it was impossible to
get or create the style.public IlpStyle getStyle(IlpAttribute attribute, IlpClass clazz)
IlpClass
parameter must be the class where the attribute
was declared or one of its subclasses. Otherwise, this method returns
null
.
If the given class corresponds to the IlpClass
where the
attribute was declared, the resulting style will have the following
default styles :
If the given class is a subclass of the IlpClass
where
the attribute was declared, the resulting style will have the following
default styles:
IlpClass
superclass.
IlpClass
.getStyle
in interface IlpStyleManager
attribute
- The IlpAttribute
of the style.clazz
- The IlpClass
where the style was declared or one
of its subclasses.null
if it was impossible to
get or create the style.public IlpStyle getStyle(Class clazz)
The following default styles are set for a Java class style:
IlpRepresentationObject
, styles for this interface
and subinterfaces are also added.
IlpRepresentationObject
, no interface styles are
added as defaults.getStyle
in interface IlpStyleManager
clazz
- The class of the style.null
if it was impossible to
get or create the style.public IlpStyle getExistingStyle(IlpStyleContext styleContext)
getExistingStyle
in interface IlpStyleManager
styleContext
- The identifier of the style.null
if the style does not yet exist.
NOTE: The style returned by this method must not be modified.
public IlpStyle getStyle(IlpStyleContext styleContext)
If the style does not exist, it will be created. A style may be created with certain default styles automatically added, depending on the style type.
For details, see the getStyle
method for the corresponding style type.
getStyle
in interface IlpStyleManager
styleContext
- The style context of the style.null
if it was impossible to
get or create the style.public boolean removeStyle(IlpStyleContext id)
removeStyle
in interface IlpStyleManager
id
- The style context indentifying the style.public List getStyleContexts()
getStyleContexts
in interface IlpStyleManager
IlpStyleContext
s for all available styles.public void resetStyles()
Style keys which are used by other styles, outside this style manager, are not removed.
resetStyles
in interface IlpStyleManager
IlpStyle.resetValues()
public void recustomizeStyles()
recustomizeStyles
in interface IlpStyleManager
public void cleanup()
This method cleans up instance styles, mainly styles which are only removed when the objects are garbage collected.
cleanup
in interface IlpStyleManager
protected IlpStyle postCreateStyle(IlpStyle original, IlpStyleContext styleContext)
protected IlpStyle prepareStyle(IlpStyle style, IlpStyleContext styleContext)
protected IlpStyle prepareBizObjectStyle(IlpStyleContext instanceContext, IlpStyle style)
IlpObject
style.
The following default styles are set for an IlpObject
style:
IlpClass
style (and thereby also the IlpClass parents)
protected IlpStyle prepareJavaClassStyle(IlpStyleContext styleContext, IlpStyle style)
The following default styles are set for a Java class style:
IlpRepresentationObject
, styles for this interface
and subinterfaces are also added.
IlpRepresentationObject
, no interface styles are
added as defaults.protected IlpStyle prepareBizClassStyle(IlpStyleContext styleContext, IlpStyle style)
IlpClass
style.
The following default styles are set for an IlpClass
style:
IlpClass
(and thereby also its
superclasses, if any).
protected IlpStyle prepareBizAttributeStyle(IlpStyleContext styleContext, IlpStyle style)
The following default styles are set for an attribute style:
IlpClass
containing the attribute is NOT automatically
added as a default style.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.