@Deprecated public abstract class IlpAbstractStyleValueProvider extends Object implements IlpStyleValueProvider, StyleChangeListener, Cloneable
Modifier and Type | Field and Description |
---|---|
protected Map<IlpStyle,List<IlpKey>> |
dependentStyles
Deprecated.
All the styles that dependent on this value provider
|
protected Map<StyleChangeListener,Integer> |
styleListeners
Deprecated.
Style change listeners
|
protected boolean |
supportNotification
Deprecated.
Indicates if this instance will support style notification or not
|
Modifier | Constructor and Description |
---|---|
protected |
IlpAbstractStyleValueProvider(boolean supportNotification)
Deprecated.
Creates a value provider indicating whether it is going to provide
notification support to its dependent styles.
|
Modifier and Type | Method and Description |
---|---|
void |
addDependentStyle(IlpKey key,
IlpStyle style)
Deprecated.
Indicates that the given style is using this style value provider
for the given key.
|
void |
addStyleChangeListener(StyleChangeListener l)
Deprecated.
Registers a listener to style value provider change notifications.
|
Object |
clone()
Deprecated.
|
protected void |
fireStyleChangeEvent()
Deprecated.
Fires a style change event to all interested listeners.
|
protected void |
fireStyleChangeEvent(StyleChangeEvent ev)
Deprecated.
Fires the given event to all listeners.
|
boolean |
hasDependentStyles()
Deprecated.
Returns whether there are styles dependent on this style value provider.
|
void |
removeDependentStyle(IlpKey key,
IlpStyle style)
Deprecated.
Indicates that the given style is no longer using this style value
provider for the given key.
|
void |
removeStyleChangeListener(StyleChangeListener l)
Deprecated.
Removes a listener of style value provider changes.
|
protected void |
setSupportNotification(boolean support)
Deprecated.
Indicates whether this instance will provide notifications to all
dependent styles or not.
|
protected void |
specificAddDependentStyle(IlpKey key,
IlpStyle style)
Deprecated.
Executes a specific operation when this value provider is registered for
the given key in the given style.
|
protected void |
specificRemoveDependentStyle(IlpKey key,
IlpStyle style)
Deprecated.
Executes a specific operation when this value provider is no longer being
used by the given key in the style.
|
void |
styleChanged(StyleChangeEvent e)
Deprecated.
Called when the inner style value provider has its
value changed somehow.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStringValue, getValue, getValueType
protected boolean supportNotification
protected Map<IlpStyle,List<IlpKey>> dependentStyles
protected Map<StyleChangeListener,Integer> styleListeners
protected IlpAbstractStyleValueProvider(boolean supportNotification)
supportNotification
- Indicates whether this value provider is going
to support notifications to the dependent styles.protected void setSupportNotification(boolean support)
This method should be called at construction time.
support
- Indicates whether this style value provider will provide notifications
in case of changes in its value.public boolean hasDependentStyles()
public void addDependentStyle(IlpKey key, IlpStyle style)
This method is called whenever this instance is set in a style,
using IlpStyle.setValueProvider
.
addDependentStyle
in interface IlpStyleValueProvider
key
- The key which is dependent on this style value provider.style
- The style with the dependent key.IlpStyle.setValueProvider(ilog.cpl.style.key.IlpKey, ilog.cpl.style.IlpStyleValueProvider, boolean)
public void removeDependentStyle(IlpKey key, IlpStyle style)
This method is called whenever this instance is removed from a
style, calling either IlpStyle.resetToDefaultValue
or
IlpStyle.setValueProvider
.
removeDependentStyle
in interface IlpStyleValueProvider
key
- The key that was dependent on this style value provider.style
- The style with the dependent key.IlpStyle.setValueProvider(ilog.cpl.style.key.IlpKey, ilog.cpl.style.IlpStyleValueProvider, boolean)
public void addStyleChangeListener(StyleChangeListener l)
addStyleChangeListener
in interface IlpStyleValueProvider
l
- Listener to style changespublic void removeStyleChangeListener(StyleChangeListener l)
removeStyleChangeListener
in interface IlpStyleValueProvider
l
- Listener to style changesprotected void fireStyleChangeEvent(StyleChangeEvent ev)
ev
- The style change event indicating the key which value
was changed.protected void fireStyleChangeEvent()
protected void specificAddDependentStyle(IlpKey key, IlpStyle style)
This method is called just after registering the style and key in the dependent list.
key
- The key that is dependent on this style value provider.style
- The style with the dependent key.protected void specificRemoveDependentStyle(IlpKey key, IlpStyle style)
This method is called just before removing the style and key from the dependent list.
key
- Key that is dependent on this style value providerstyle
- Style where the key is dependentpublic void styleChanged(StyleChangeEvent e)
styleChanged
in interface StyleChangeListener
e
- Style change event indicating which key has changed.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.