@Deprecated public class IlpBoundAttributeStyleValueProvider extends IlpAttributeStyleValueProvider implements AttributeValueListener
IlpAttributeValueHolder.
Attribute value changes are automatically notified to the style, where this instance is registered.
Note that instances of this class are not persistent.
| Modifier and Type | Field and Description |
|---|---|
protected WeakReference |
attributeHolderReference
Deprecated.
The object that holds the attribute values
|
valueAttribute, valueTypedependentStyles, styleListeners, supportNotification| Constructor and Description |
|---|
IlpBoundAttributeStyleValueProvider(IlpAttribute attr,
IlpAttributeValueHolder holder)
Deprecated.
IlpBoundAttributeStyleValueProvider constructor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependentStyle(IlpKey key,
IlpStyle style)
Deprecated.
Indicates that the given style is using this style value provider
for the given key.
|
void |
attributeValueChange(AttributeValueEvent ev)
Deprecated.
Listens to attribute value changes, and notifies it to the listeners.
|
Object |
getAttributeValue(IlpStyleContext styleContext)
Deprecated.
Returns the current value of the attribute in the local attribute
value holder.
|
protected IlpAttributeValueHolder |
getHolder()
Deprecated.
Returns the attribute value holder where we look for the attribute value.
|
String |
getStringValue()
Deprecated.
Returns the value of the given style as a string.
|
void |
removeDependentStyle(IlpKey key,
IlpStyle style)
Deprecated.
Indicates that the given style is no longer using this style value
provider for the given key.
|
clone, getValue, getValueAttribute, getValueType, toStringaddStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeStyleChangeListener, setSupportNotification, specificAddDependentStyle, specificRemoveDependentStyle, styleChangedprotected WeakReference attributeHolderReference
public IlpBoundAttributeStyleValueProvider(IlpAttribute attr, IlpAttributeValueHolder holder)
IlpBoundAttributeStyleValueProvider constructor.
Creates a value provider which listens to attribute value changes in the
given IlpAttributeValueHolder. These changes are notified
to all the dependent styles.attr - Attribute being listenedholder - Object which contains the attributesprotected IlpAttributeValueHolder getHolder()
public void addDependentStyle(IlpKey key, IlpStyle style)
This method is called whenever we set this instance in a style,
using IlpStyle.setValueProvider.
addDependentStyle in interface IlpStyleValueProvideraddDependentStyle in class IlpAbstractStyleValueProviderkey - The key which is dependent on this style value provider.style - The style with the dependent key.IlpStyle.setValueProvider(ilog.cpl.style.key.IlpKey, ilog.cpl.style.IlpStyleValueProvider, boolean)public void removeDependentStyle(IlpKey key, IlpStyle style)
This method is called whenever we remove this instance from a
style, either calling IlpStyle.resetToDefaultValue or
IlpStyle.setValueProvider.
removeDependentStyle in interface IlpStyleValueProviderremoveDependentStyle in class IlpAbstractStyleValueProviderkey - The key that was dependent on this style value provider.style - The style with the dependent key.IlpStyle.setValueProvider(ilog.cpl.style.key.IlpKey, ilog.cpl.style.IlpStyleValueProvider, boolean)public void attributeValueChange(AttributeValueEvent ev)
attributeValueChange in interface AttributeValueListenerpublic Object getAttributeValue(IlpStyleContext styleContext)
getAttributeValue in class IlpAttributeStyleValueProviderstyleContext - Style context.public String getStringValue()
null.getStringValue in interface IlpStyleValueProvidergetStringValue in class IlpAttributeStyleValueProvider© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.