|
||||||||||
| 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.IlpAttributeStyleValueProvider
public class IlpAttributeStyleValueProvider
Returns the value of an attribute in a specific instance
of IlpAttributeValueHolder. By default, the attribute used is
obtained from the style identifier, but a custom attribute may also be
specifically provided.
If no attribute is provided and the style identifier does not contain one,
null will be returned.
Attribute value changes are not automatically notified to the style where this instance is registered.
| Field Summary | |
|---|---|
protected IlpAttribute |
valueAttribute
Deprecated. Value attribute |
protected Class |
valueType
Deprecated. Value type |
| Fields inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
dependentStyles, styleListeners, supportNotification |
| Constructor Summary | |
|---|---|
IlpAttributeStyleValueProvider(Class valueType)
Deprecated. IlpAttributeStyleValueProvider constructor. |
|
IlpAttributeStyleValueProvider(IlpAttribute valueAttribute)
Deprecated. IlpAttributeStyleValueProvider constructor. |
|
IlpAttributeStyleValueProvider(IlpAttribute valueAttribute,
Class valueType)
Deprecated. IlpAttributeStyleValueProvider constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
Deprecated. |
Object |
getAttributeValue(IlpStyleContext styleContext)
Deprecated. Returns the current value of the attribute. |
String |
getStringValue()
Deprecated. Returns the value of the given style as a string. |
Object |
getValue(IlpKey key,
IlpStyle style)
Deprecated. Returns the current value of the attribute (as returned by getAttributeValue()),
after converting it to a string. |
IlpAttribute |
getValueAttribute()
Deprecated. Returns the currently specified attribute, if one has been specified for the value provider. |
Class |
getValueType()
Deprecated. Returns the Java class of the value which the attribute style value provider is expected to return. |
String |
toString()
Deprecated. |
| Methods inherited from class ilog.cpl.style.IlpAbstractStyleValueProvider |
|---|
addDependentStyle, addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeDependentStyle, removeStyleChangeListener, setSupportNotification, specificAddDependentStyle, specificRemoveDependentStyle, styleChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IlpAttribute valueAttribute
protected Class valueType
| Constructor Detail |
|---|
public IlpAttributeStyleValueProvider(Class valueType)
IlpAttributeStyleValueProvider constructor. No specific attribute is given,
so the attribute is taken from the context instead.
valueType - Class of the value handled by the value provider.public IlpAttributeStyleValueProvider(IlpAttribute valueAttribute)
IlpAttributeStyleValueProvider constructor. The given attribute is used
instead of the one from the style context.
valueAttribute - Specific attribute to use.
public IlpAttributeStyleValueProvider(IlpAttribute valueAttribute,
Class valueType)
IlpAttributeStyleValueProvider constructor. The given attribute is used
instead of the one from the style context.
valueAttribute - Specific attribute to use.valueType - Class of the value handled by the value provider.| Method Detail |
|---|
public Object getValue(IlpKey key,
IlpStyle style)
getAttributeValue()),
after converting it to a string.
key - Style key whose value is being queriedstyle - Style where the value has been initialize requested
public Object getAttributeValue(IlpStyleContext styleContext)
null is returned.
If a specific attribute was provided, it is used to obtain the value.
Otherwise, the attribute stored in the style identifier is used, if there is one.
If not, null is returned
styleContext - Style context.
public IlpAttribute getValueAttribute()
null if none has been specified.
public Class getValueType()
public String getStringValue()
null.
public String toString()
toString in class Object
public Object clone()
throws CloneNotSupportedException
clone in class IlpAbstractStyleValueProviderCloneNotSupportedException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||