@Deprecated public abstract class IlpStyleValueModifier extends IlpAbstractStyleValueProvider implements StyleChangeListener
IlpStyleValueProvider
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected IlpStyleValueProvider |
provider
Deprecated.
This is the original style value provider.
|
dependentStyles, styleListeners, supportNotification
Constructor and Description |
---|
IlpStyleValueModifier(IlpStyleValueProvider provider)
Deprecated.
IlpStyleValueModifier constructor. |
Modifier and Type | Method and Description |
---|---|
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.
|
addDependentStyle, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeDependentStyle, setSupportNotification
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStringValue, getValueType
protected IlpStyleValueProvider provider
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.public abstract Object modifyValue(IlpKey key, IlpStyle style, Object value)
public Object getValue(IlpKey key, IlpStyle style)
getValue
in interface IlpStyleValueProvider
key
- The remote style key.style
- The style context used to resolve the value.public IlpStyleValueProvider getValueProvider()
public String toString()
public boolean equals(Object other)
protected void specificAddDependentStyle(IlpKey key, IlpStyle style)
specificAddDependentStyle
in class IlpAbstractStyleValueProvider
key
- 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 IlpAbstractStyleValueProvider
key
- Key that is dependent on this style value providerstyle
- Style where the key is dependentpublic void addStyleChangeListener(StyleChangeListener l)
addStyleChangeListener
in interface IlpStyleValueProvider
addStyleChangeListener
in class IlpAbstractStyleValueProvider
l
- Listener to style changespublic void removeStyleChangeListener(StyleChangeListener l)
removeStyleChangeListener
in interface IlpStyleValueProvider
removeStyleChangeListener
in class IlpAbstractStyleValueProvider
l
- Listener to style changespublic void styleChanged(StyleChangeEvent e)
styleChanged
in interface StyleChangeListener
styleChanged
in class IlpAbstractStyleValueProvider
e
- Style change event indicating which key has changed.public Object clone() throws CloneNotSupportedException
clone
in class IlpAbstractStyleValueProvider
CloneNotSupportedException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.