ilog.cpl.model
Class IlpAttributeValueChangeSupport

java.lang.Object
  extended by ilog.cpl.model.IlpAttributeValueChangeSupport
Direct Known Subclasses:
IlpAttributeValueHolderSupport

public class IlpAttributeValueChangeSupport
extends Object

This class provides support for storing AttributeValueListeners and sending them events.

Since:
JTGO 3.0

Constructor Summary
IlpAttributeValueChangeSupport(IlpAttributeValueHolder source)
          Constructor
 
Method Summary
 void addAttributeValueListener(AttributeValueListener l)
          Adds a listener to attribute value changes.
 void fireAttributeChange(IlpAttribute attribute, Object newValue, Object oldValue)
          Fires an attribute value change event.
 void fireEvent(AttributeValueEvent ev)
          Notify events to listeners
protected  IlpAttributeValueHolder getSource()
          Returns the real object.
protected  boolean hasAttributeValueNotification()
          Returns true if fireEvent is required to be called for attribute value changes.
 void removeAttributeValueListener(AttributeValueListener l)
          Removes the given listener from the attribute value change notifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpAttributeValueChangeSupport

public IlpAttributeValueChangeSupport(IlpAttributeValueHolder source)
Constructor

Parameters:
source - The real object
Method Detail

getSource

protected IlpAttributeValueHolder getSource()
Returns the real object.

Returns:
Attribute value holder
Since:
JViews 7.5

hasAttributeValueNotification

protected boolean hasAttributeValueNotification()
Returns true if fireEvent is required to be called for attribute value changes. Returns false if fireEvent is guaranteed to do nothing.

Internal method or field: do not use!

addAttributeValueListener

public void addAttributeValueListener(AttributeValueListener l)
Adds a listener to attribute value changes.


removeAttributeValueListener

public void removeAttributeValueListener(AttributeValueListener l)
Removes the given listener from the attribute value change notifications.


fireEvent

public void fireEvent(AttributeValueEvent ev)
Notify events to listeners

Parameters:
ev - Event

fireAttributeChange

public void fireAttributeChange(IlpAttribute attribute,
                                Object newValue,
                                Object oldValue)
Fires an attribute value change event.

Parameters:
attribute - Business Attribute
newValue - New attribute value
oldValue - Old attribute value
Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.