|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.style.IlpAbstractStyleValueProvider
public abstract class IlpAbstractStyleValueProvider
Models an abstract style value provider that can provide notification support.
| Field Summary | |
|---|---|
protected Map |
dependentStyles
Deprecated. All the styles that dependent on this value provider |
protected Map |
styleListeners
Deprecated. Style change listeners |
protected boolean |
supportNotification
Deprecated. Indicates if this instance will support style notification or not |
| Constructor Summary | |
|---|---|
protected |
IlpAbstractStyleValueProvider(boolean supportNotification)
Deprecated. Creates a value provider indicating whether it is going to provide notification support to its dependent styles. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.style.IlpStyleValueProvider |
|---|
getStringValue, getValue, getValueType |
| Field Detail |
|---|
protected boolean supportNotification
protected Map dependentStyles
protected Map styleListeners
| Constructor Detail |
|---|
protected IlpAbstractStyleValueProvider(boolean supportNotification)
supportNotification - Indicates whether this value provider is going
to support notifications to the dependent styles.| Method Detail |
|---|
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 IlpStyleValueProviderkey - 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 IlpStyleValueProviderkey - 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 IlpStyleValueProviderl - Listener to style changespublic void removeStyleChangeListener(StyleChangeListener l)
removeStyleChangeListener in interface IlpStyleValueProviderl - 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 StyleChangeListenere - Style change event indicating which key has changed.
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||