|
||||||||||
| 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.IlpStyleValueModifier
public abstract class IlpStyleValueModifier
Models an object that is responsible for modifying the value retrieved from a style value provider. This value may be modified in many ways, such as by converting it to another type, formatting it to text, or mapping the given value to another.
IlpStyleValueProvider,
Serialized Form| Field Summary | |
|---|---|
protected IlpStyleValueProvider |
provider
Deprecated. This is the original style value provider. |
| Fields inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
dependentStyles, styleListeners, supportNotification |
| Constructor Summary | |
|---|---|
IlpStyleValueModifier(IlpStyleValueProvider provider)
Deprecated. IlpStyleValueModifier constructor. |
|
| Method Summary | |
|---|---|
void |
addStyleChangeListener(StyleChangeListener l)
Deprecated. Registers a listener to style value provider change notifications. |
Object |
clone()
Deprecated. |
boolean |
equals(Object other)
Deprecated. This method is needed to search instances in collections. |
Object |
getValue(IlpKey key,
IlpStyle style)
Deprecated. Returns the value of the remote key on the remote style. |
IlpStyleValueProvider |
getValueProvider()
Deprecated. Returns the Style value provider encapsulated by this instance. |
abstract Object |
modifyValue(IlpKey key,
IlpStyle style,
Object value)
Deprecated. Modifies the given value; for example, converts it to another type, formats it, or maps it to another value. |
void |
removeStyleChangeListener(StyleChangeListener l)
Deprecated. Removes a listener of style value provider changes. |
protected void |
specificAddDependentStyle(IlpKey key,
IlpStyle style)
Deprecated. This method can be overwritten in the subclasses to execute an specific behavior when a dependent style and key is set to this provider. |
protected void |
specificRemoveDependentStyle(IlpKey key,
IlpStyle style)
Deprecated. This method can be overwritten in the subclasses to execute an specific behavior when a dependent style and key is removed. |
void |
styleChanged(StyleChangeEvent e)
Deprecated. Called when the inner style value provider has its value changed somehow. |
String |
toString()
Deprecated. |
| Methods inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
addDependentStyle, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeDependentStyle, setSupportNotification |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.cpl.style.IlpStyleValueProvider |
|---|
getStringValue, getValueType |
| Field Detail |
|---|
protected IlpStyleValueProvider provider
| Constructor Detail |
|---|
public IlpStyleValueModifier(IlpStyleValueProvider provider)
IlpStyleValueModifier constructor.
Creates a new instance that will modify the value
retrieved from the given style value provider in one way or another.
provider - The original style value provider.| Method Detail |
|---|
public abstract Object modifyValue(IlpKey key,
IlpStyle style,
Object value)
public Object getValue(IlpKey key,
IlpStyle style)
getValue in interface IlpStyleValueProviderkey - The remote style key.style - The style context used to resolve the value.
public IlpStyleValueProvider getValueProvider()
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Object
protected void specificAddDependentStyle(IlpKey key,
IlpStyle style)
specificAddDependentStyle in class IlpAbstractStyleValueProviderkey - The key that is dependent on this style value provider.style - The style with the dependent key.
protected void specificRemoveDependentStyle(IlpKey key,
IlpStyle style)
specificRemoveDependentStyle in class IlpAbstractStyleValueProviderkey - Key that is dependent on this style value providerstyle - Style where the key is dependentpublic void addStyleChangeListener(StyleChangeListener l)
addStyleChangeListener in interface IlpStyleValueProvideraddStyleChangeListener in class IlpAbstractStyleValueProviderl - Listener to style changespublic void removeStyleChangeListener(StyleChangeListener l)
removeStyleChangeListener in interface IlpStyleValueProviderremoveStyleChangeListener in class IlpAbstractStyleValueProviderl - Listener to style changespublic void styleChanged(StyleChangeEvent e)
styleChanged in interface StyleChangeListenerstyleChanged in class IlpAbstractStyleValueProvidere - Style change event indicating which key has changed.
public Object clone()
throws CloneNotSupportedException
clone in class IlpAbstractStyleValueProviderCloneNotSupportedException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||