|
||||||||||
| 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
ilog.cpl.style.IlpKeyStyleValueModifier
public abstract class IlpKeyStyleValueModifier
Models a basic style value modifier, which is dependent on a style and a key. This is the class that should be subclassed if you are interested in creating a new style value modifier that depends on remote values.
| Field Summary | |
|---|---|
protected IlpKey |
remoteKey
Deprecated. Remote key |
protected IlpStyle |
remoteStyle
Deprecated. Remote style |
| Fields inherited from class ilog.cpl.style.IlpStyleValueModifier |
|---|
provider |
| Fields inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
dependentStyles, styleListeners, supportNotification |
| Constructor Summary | |
|---|---|
IlpKeyStyleValueModifier(IlpStyleValueProvider provider,
IlpKey key,
IlpStyle style)
Deprecated. IlpKeyStyleValueModifier 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 |
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. |
IlpKey |
getRemoteKey()
Deprecated. Get remote key. |
IlpStyle |
getRemoteStyle()
Deprecated. Get remote style. |
void |
removeDependentStyle(IlpKey key,
IlpStyle style)
Deprecated. Indicates that the given style is no longer using this style value provider for the given key. |
void |
removeStyleChangeListener(StyleChangeListener l)
Deprecated. Removes a listener of style value provider changes. |
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.IlpStyleValueModifier |
|---|
getValue, getValueProvider, modifyValue, specificAddDependentStyle, specificRemoveDependentStyle |
| Methods inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, 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 IlpKey remoteKey
protected IlpStyle remoteStyle
| Constructor Detail |
|---|
public IlpKeyStyleValueModifier(IlpStyleValueProvider provider,
IlpKey key,
IlpStyle style)
IlpKeyStyleValueModifier constructor.
provider - The original style value provider.key - The key to retrieve the valuestyle - Style to retrieve the value or null if the
current style should be used.| Method Detail |
|---|
public IlpKey getRemoteKey()
public IlpStyle getRemoteStyle()
public String toString()
toString in class IlpStyleValueModifierpublic boolean equals(Object other)
equals in class IlpStyleValueModifier
public void addDependentStyle(IlpKey key,
IlpStyle style)
This method is called whenever this instance is set 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 this instance is removed 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 addStyleChangeListener(StyleChangeListener l)
addStyleChangeListener in interface IlpStyleValueProvideraddStyleChangeListener in class IlpStyleValueModifierl - Listener to style changespublic void removeStyleChangeListener(StyleChangeListener l)
removeStyleChangeListener in interface IlpStyleValueProviderremoveStyleChangeListener in class IlpStyleValueModifierl - Listener to style changespublic void styleChanged(StyleChangeEvent e)
styleChanged in interface StyleChangeListenerstyleChanged in class IlpStyleValueModifiere - Style change event indicating which key has changed.
public Object clone()
throws CloneNotSupportedException
clone in class IlpStyleValueModifierCloneNotSupportedException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||