|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.style.IlpAbstractStyleValueProvider
ilog.cpl.style.IlpStyleValueModifier
ilog.cpl.style.IlpStyleValueTypeConverter
public class IlpStyleValueTypeConverter
Models an object that is responsible for converting the value received from a style value provider to another type.
IlpStyleValueProvider,
IlpTypeConverter,
Serialized Form| Field Summary | |
|---|---|
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 |
| Fields inherited from class ilog.cpl.style.IlpStyleValueModifier |
|---|
provider |
| Fields inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
dependentStyles, styleListeners, supportNotification |
| Constructor Summary | |
|---|---|
IlpStyleValueTypeConverter(IlpContext context,
IlpStyleValueProvider provider,
Class target)
Deprecated. IlpStyleValueTypeConverter constructor. |
|
IlpStyleValueTypeConverter(IlpStyleValueProvider provider,
Class target)
Deprecated. IlpStyleValueTypeConverter constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.cpl.style.IlpStyleValueModifier |
|---|
addStyleChangeListener, getValue, getValueProvider, removeStyleChangeListener, specificAddDependentStyle, specificRemoveDependentStyle, styleChanged |
| Methods inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
addDependentStyle, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeDependentStyle, setSupportNotification |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IlpContext context
protected IlpTypeConverter converter
protected Class valueType
| Constructor Detail |
|---|
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.| Method Detail |
|---|
protected IlpTypeConverter getTypeConverter(IlpStyle style)
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 String toString()
toString in class IlpStyleValueModifierpublic void setContext(IlpContext c)
public boolean equals(Object other)
equals in class IlpStyleValueModifier
public Object clone()
throws CloneNotSupportedException
clone in class IlpStyleValueModifierCloneNotSupportedException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||