@Deprecated public class IlpStyleValueFormatter extends IlpKeyStyleValueModifier
String
.Format
,
IlpStyleValueProvider
,
Serialized FormremoteKey, remoteStyle
provider
dependentStyles, styleListeners, supportNotification
Constructor and Description |
---|
IlpStyleValueFormatter(IlpStyleValueProvider provider,
IlpFormatKey key)
Deprecated.
IlpStyleValueFormatter constructor. |
IlpStyleValueFormatter(IlpStyleValueProvider provider,
IlpFormatKey key,
IlpStyle style)
Deprecated.
IlpStyleValueFormatter 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 for the given style as a string.
|
Class |
getValueType()
Deprecated.
Returns the
String class. |
Object |
modifyValue(IlpKey key,
IlpStyle style,
Object value)
Deprecated.
Formats the given value.
|
addDependentStyle, addStyleChangeListener, getRemoteKey, getRemoteStyle, removeDependentStyle, removeStyleChangeListener, styleChanged, toString
getValue, getValueProvider, specificAddDependentStyle, specificRemoveDependentStyle
fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, setSupportNotification
public IlpStyleValueFormatter(IlpStyleValueProvider provider, IlpFormatKey key)
IlpStyleValueFormatter
constructor.
This instance formats the value retrieved from the original style value provider using the format given by key and style.
provider
- The original style value provider.key
- The key to retrieve the formatFormat
,
IlpFormatKey
public IlpStyleValueFormatter(IlpStyleValueProvider provider, IlpFormatKey key, IlpStyle style)
IlpStyleValueFormatter
constructor.
This instance formats the value retrieved from the original style value provider using the format given by key and style.
provider
- The original style value provider.key
- The key to retrieve the format that will be applied.style
- Style where the format will be retrieved.public Object modifyValue(IlpKey key, IlpStyle style, Object value)
modifyValue
in class IlpStyleValueModifier
public Class getValueType()
String
class.
Formatted values are also converted to String
.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 IlpKeyStyleValueModifier
public Object clone() throws CloneNotSupportedException
clone
in class IlpKeyStyleValueModifier
CloneNotSupportedException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.