@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, valueType
dependentStyles, 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, toString
addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeStyleChangeListener, setSupportNotification, specificAddDependentStyle, specificRemoveDependentStyle, styleChanged
protected 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 IlpStyleValueProvider
addDependentStyle
in class IlpAbstractStyleValueProvider
key
- 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 IlpStyleValueProvider
removeDependentStyle
in class IlpAbstractStyleValueProvider
key
- 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 AttributeValueListener
public Object getAttributeValue(IlpStyleContext styleContext)
getAttributeValue
in class IlpAttributeStyleValueProvider
styleContext
- Style context.public String getStringValue()
null
.getStringValue
in interface IlpStyleValueProvider
getStringValue
in class IlpAttributeStyleValueProvider
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.