@Deprecated public abstract class IlpKeyStyleValueModifier extends IlpStyleValueModifier
Modifier and Type | Field and Description |
---|---|
protected IlpKey |
remoteKey
Deprecated.
Remote key
|
protected IlpStyle |
remoteStyle
Deprecated.
Remote style
|
provider
dependentStyles, styleListeners, supportNotification
Constructor and Description |
---|
IlpKeyStyleValueModifier(IlpStyleValueProvider provider,
IlpKey key,
IlpStyle style)
Deprecated.
IlpKeyStyleValueModifier 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 |
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.
|
getValue, getValueProvider, modifyValue, specificAddDependentStyle, specificRemoveDependentStyle
fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, setSupportNotification
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStringValue, getValueType
protected IlpKey remoteKey
protected IlpStyle remoteStyle
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.public IlpKey getRemoteKey()
public IlpStyle getRemoteStyle()
public String toString()
toString
in class IlpStyleValueModifier
public 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 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 this instance is removed 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 addStyleChangeListener(StyleChangeListener l)
addStyleChangeListener
in interface IlpStyleValueProvider
addStyleChangeListener
in class IlpStyleValueModifier
l
- Listener to style changespublic void removeStyleChangeListener(StyleChangeListener l)
removeStyleChangeListener
in interface IlpStyleValueProvider
removeStyleChangeListener
in class IlpStyleValueModifier
l
- Listener to style changespublic void styleChanged(StyleChangeEvent e)
styleChanged
in interface StyleChangeListener
styleChanged
in class IlpStyleValueModifier
e
- Style change event indicating which key has changed.public Object clone() throws CloneNotSupportedException
clone
in class IlpStyleValueModifier
CloneNotSupportedException
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.