public class IlpAttributeValueChangeSupport extends Object
AttributeValueListener
s and
sending them events.Constructor and Description |
---|
IlpAttributeValueChangeSupport(IlpAttributeValueHolder source)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public IlpAttributeValueChangeSupport(IlpAttributeValueHolder source)
source
- The real objectprotected IlpAttributeValueHolder getSource()
protected boolean hasAttributeValueNotification()
fireEvent
is required to be called for
attribute value changes. Returns false if fireEvent
is
guaranteed to do nothing.public void addAttributeValueListener(AttributeValueListener l)
public void removeAttributeValueListener(AttributeValueListener l)
public void fireEvent(AttributeValueEvent ev)
ev
- Eventpublic void fireAttributeChange(IlpAttribute attribute, Object newValue, Object oldValue)
attribute
- Business AttributenewValue
- New attribute valueoldValue
- Old attribute value© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.