@Deprecated public class IlpStyleValueTypeConverter extends IlpStyleValueModifier
IlpStyleValueProvider
,
IlpTypeConverter
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected IlpContext |
context
Deprecated.
Context used to retrieve the type converter
|
protected IlpTypeConverter |
converter
Deprecated.
|
protected Class |
valueType
Deprecated.
Target type used to convert the retrieved value
|
provider
dependentStyles, styleListeners, supportNotification
Constructor and Description |
---|
IlpStyleValueTypeConverter(IlpContext context,
IlpStyleValueProvider provider,
Class target)
Deprecated.
IlpStyleValueTypeConverter constructor. |
IlpStyleValueTypeConverter(IlpStyleValueProvider provider,
Class target)
Deprecated.
IlpStyleValueTypeConverter 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.
|
protected IlpTypeConverter |
getTypeConverter(IlpStyle style)
Deprecated.
Returns the type converter that will be used by this instance.
|
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.
Modifies the given value; for example, converts it
to another type, formats it, or maps it to
another value.
|
void |
setContext(IlpContext c)
Deprecated.
Sets the context used by this instance, should only be
called after deserialization.
|
String |
toString()
Deprecated.
|
addStyleChangeListener, getValue, getValueProvider, removeStyleChangeListener, specificAddDependentStyle, specificRemoveDependentStyle, styleChanged
addDependentStyle, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeDependentStyle, setSupportNotification
protected IlpContext context
protected IlpTypeConverter converter
protected Class valueType
public IlpStyleValueTypeConverter(IlpContext context, IlpStyleValueProvider provider, Class target)
IlpStyleValueTypeConverter
constructor.
This instance will convert the value retrieved from the original style value provider to the target type. The conversion will be achieved using the default type converter implementation.
context
- Application context that contains the IlpTypeConverter
used by this instance.provider
- The original style value provider.target
- The target type.public IlpStyleValueTypeConverter(IlpStyleValueProvider provider, Class target)
IlpStyleValueTypeConverter
constructor.
This instance will convert the value retrieved from the original style value provider to the target type.
provider
- The original style value provider.target
- The target type.protected IlpTypeConverter getTypeConverter(IlpStyle style)
public Object modifyValue(IlpKey key, IlpStyle style, Object value)
modifyValue
in class IlpStyleValueModifier
public 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 String toString()
toString
in class IlpStyleValueModifier
public void setContext(IlpContext c)
public boolean equals(Object other)
equals
in class IlpStyleValueModifier
public Object clone() throws CloneNotSupportedException
clone
in class IlpStyleValueModifier
CloneNotSupportedException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.