@Deprecated public class IlpAttributeStyleValueProvider extends IlpAbstractStyleValueProvider
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.
Modifier and Type | Field and Description |
---|---|
protected IlpAttribute |
valueAttribute
Deprecated.
Value attribute
|
protected Class |
valueType
Deprecated.
Value type
|
dependentStyles, styleListeners, supportNotification
Constructor and Description |
---|
IlpAttributeStyleValueProvider(Class valueType)
Deprecated.
IlpAttributeStyleValueProvider constructor. |
IlpAttributeStyleValueProvider(IlpAttribute valueAttribute)
Deprecated.
IlpAttributeStyleValueProvider constructor. |
IlpAttributeStyleValueProvider(IlpAttribute valueAttribute,
Class valueType)
Deprecated.
IlpAttributeStyleValueProvider constructor. |
Modifier and Type | Method and Description |
---|---|
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.
|
addDependentStyle, addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, hasDependentStyles, removeDependentStyle, removeStyleChangeListener, setSupportNotification, specificAddDependentStyle, specificRemoveDependentStyle, styleChanged
protected IlpAttribute valueAttribute
protected Class valueType
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.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 requestedpublic 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 returnedstyleContext
- Style context.public IlpAttribute getValueAttribute()
null
if none has been specified.public Class getValueType()
public String getStringValue()
null
.public String toString()
public Object clone() throws CloneNotSupportedException
clone
in class IlpAbstractStyleValueProvider
CloneNotSupportedException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.