@Deprecated public class IlpStyleValueDefaultProvider extends IlpKeyStyleValueModifier
IlpStyleValueProvider,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Object |
defaultValue
Deprecated.
Default value defined.
|
remoteKey, remoteStyleproviderdependentStyles, styleListeners, supportNotification| Constructor and Description |
|---|
IlpStyleValueDefaultProvider(IlpStyleValueProvider provider,
IlpKey key,
IlpStyle style)
Deprecated.
IlpStyleValueDefaultProvider constructor. |
IlpStyleValueDefaultProvider(IlpStyleValueProvider provider,
Object defValue)
Deprecated.
IlpStyleValueDefaultProvider constructor. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Deprecated.
|
boolean |
equals(Object other)
Deprecated.
This method is needed to search instances in collections.
|
String |
getStringValue()
Deprecated.
Returns the value of the given style as a string.
|
Class |
getValueType()
Deprecated.
Returns the Java class of the value the style value provider is expected to
return.
|
Object |
modifyValue(IlpKey key,
IlpStyle style,
Object value)
Deprecated.
Returns the default value defined in this instance, if the value parameter
is not defined.
|
addDependentStyle, addStyleChangeListener, getRemoteKey, getRemoteStyle, removeDependentStyle, removeStyleChangeListener, styleChanged, toStringgetValue, getValueProvider, specificAddDependentStyle, specificRemoveDependentStylefireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, setSupportNotificationprotected Object defaultValue
IlpStyle.NotFound, then the
default value is returned.public IlpStyleValueDefaultProvider(IlpStyleValueProvider provider, Object defValue)
IlpStyleValueDefaultProvider constructor.
This instance returns the given default value, if the original style value provider is not able to return an appropriate value.
provider - The original style value provider.defValue - Default value of the providerpublic IlpStyleValueDefaultProvider(IlpStyleValueProvider provider, IlpKey key, IlpStyle style)
IlpStyleValueDefaultProvider constructor.
This instance returns the given default value, if the original style value provider is not able to return an appropriate value.
provider - The original style value provider.key - The key where the default value is stored. The key type must
correspond to the style value provider type.style - Style where the default value is stored.public Object modifyValue(IlpKey key, IlpStyle style, Object value)
modifyValue in class IlpStyleValueModifierpublic Class getValueType()
public String getStringValue()
IlpStyleValueProvider interface to provide
the data that should be stored when the style value provider is saved to
the persistent storage. Correspondingly, a string-based constructor for the
style value provider is needed to restore the value when reading it from
the stored styles.public boolean equals(Object other)
equals in class IlpKeyStyleValueModifierpublic Object clone() throws CloneNotSupportedException
clone in class IlpKeyStyleValueModifierCloneNotSupportedException© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.