|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.style.IlpAbstractStyleValueProvider
ilog.cpl.style.IlpAttributeStyleValueProvider
ilog.cpl.style.IlpBoundAttributeStyleValueProvider
public class IlpBoundAttributeStyleValueProvider
Returns the value of an attribute in a specific instance
of IlpAttributeValueHolder.
Attribute value changes are automatically notified to the style, where this instance is registered.
Note that instances of this class are not persistent.
| Field Summary | |
|---|---|
protected WeakReference |
attributeHolderReference
Deprecated. The object that holds the attribute values |
| Fields inherited from class ilog.cpl.style.IlpAttributeStyleValueProvider |
|---|
valueAttribute, valueType |
| Fields inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
dependentStyles, styleListeners, supportNotification |
| Constructor Summary | |
|---|---|
IlpBoundAttributeStyleValueProvider(IlpAttribute attr,
IlpAttributeValueHolder holder)
Deprecated. IlpBoundAttributeStyleValueProvider constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.cpl.style.IlpAttributeStyleValueProvider |
|---|
clone, getValue, getValueAttribute, getValueType, toString |
| Methods inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeStyleChangeListener, setSupportNotification, specificAddDependentStyle, specificRemoveDependentStyle, styleChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WeakReference attributeHolderReference
| Constructor Detail |
|---|
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 attributes| Method Detail |
|---|
protected 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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||