org.apache.batik.css.event
Class CSSStyleDeclarationChangeSupport

java.lang.Object
  |
  +--org.apache.batik.css.event.CSSStyleDeclarationChangeSupport
Direct Known Subclasses:
CSSStyleRuleChangeSupport

public class CSSStyleDeclarationChangeSupport
extends java.lang.Object

This class provides methods to manage CSSStyleDeclarationChangeEvent.


Field Summary
protected  CSSStyleDeclarationChangeEvent event
          The fired CSSStyleDeclarationChangeEvent event.
protected  java.util.List listeners
          The listeners.
protected  java.lang.Object source
          The event source.
 
Constructor Summary
CSSStyleDeclarationChangeSupport(java.lang.Object source)
          Creates a new CSSStyleDeclarationChangeSupport object.
 
Method Summary
 void addCSSStyleDeclarationChangeListener(CSSStyleDeclarationChangeListener listener)
          Adds a CSSStyleDeclarationChangeListener to the listener list.
 void fireCSSPropertyChange(CSSPropertyChangeEvent evt)
          Fires an existing CSSPropertyChangeEvent to any registered listeners.
 void fireCSSPropertyChange(java.lang.String property, CSSValue oldValue, CSSValue newValue)
          Reports a bound property update to any registered listeners.
 void fireCSSStyleDeclarationChangeCancel()
          Reports the annulation of a CSSStyleDeclaration update to any registered listeners.
 void fireCSSStyleDeclarationChangeCancel(CSSStyleDeclarationChangeEvent evt)
          Fires an existing CSSStyleDeclarationChangeEvent that reports the annulation of a CSSStyleDeclaration update to any registered listeners.
 void fireCSSStyleDeclarationChangeEnd()
          Reports the end of a CSSStyleDeclaration update to any registered listeners.
 void fireCSSStyleDeclarationChangeEnd(CSSStyleDeclarationChangeEvent evt)
          Fires an existing CSSStyleDeclarationChangeEvent that reports the end of a CSSStyleDeclaration update to any registered listeners.
 void fireCSSStyleDeclarationChangeStart()
          Reports the start of a CSSStyleDeclaration update to any registered listeners.
 void fireCSSStyleDeclarationChangeStart(CSSStyleDeclarationChangeEvent evt)
          Fires an existing CSSStyleDeclarationChangeEvent that reports the start of a CSSStyleDeclaration update to any registered listeners.
 void removeCSSStyleDeclarationChangeListener(CSSStyleDeclarationChangeListener listener)
          Removes a CSSStyleDeclarationChangeListener from the listener list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event

protected CSSStyleDeclarationChangeEvent event
The fired CSSStyleDeclarationChangeEvent event.

source

protected java.lang.Object source
The event source.

listeners

protected java.util.List listeners
The listeners.
Constructor Detail

CSSStyleDeclarationChangeSupport

public CSSStyleDeclarationChangeSupport(java.lang.Object source)
Creates a new CSSStyleDeclarationChangeSupport object.
Parameters:
source - The source of the fired events.
Method Detail

addCSSStyleDeclarationChangeListener

public void addCSSStyleDeclarationChangeListener(CSSStyleDeclarationChangeListener listener)
Adds a CSSStyleDeclarationChangeListener to the listener list.
Parameters:
listener - The CSSStyleDeclarationChangeListener to be added

removeCSSStyleDeclarationChangeListener

public void removeCSSStyleDeclarationChangeListener(CSSStyleDeclarationChangeListener listener)
Removes a CSSStyleDeclarationChangeListener from the listener list.
Parameters:
listener - The CSSStyleDeclarationChangeListener to be removed

fireCSSStyleDeclarationChangeStart

public void fireCSSStyleDeclarationChangeStart()
Reports the start of a CSSStyleDeclaration update to any registered listeners.

fireCSSStyleDeclarationChangeStart

public void fireCSSStyleDeclarationChangeStart(CSSStyleDeclarationChangeEvent evt)
Fires an existing CSSStyleDeclarationChangeEvent that reports the start of a CSSStyleDeclaration update to any registered listeners.

fireCSSStyleDeclarationChangeCancel

public void fireCSSStyleDeclarationChangeCancel()
Reports the annulation of a CSSStyleDeclaration update to any registered listeners.

fireCSSStyleDeclarationChangeCancel

public void fireCSSStyleDeclarationChangeCancel(CSSStyleDeclarationChangeEvent evt)
Fires an existing CSSStyleDeclarationChangeEvent that reports the annulation of a CSSStyleDeclaration update to any registered listeners.

fireCSSStyleDeclarationChangeEnd

public void fireCSSStyleDeclarationChangeEnd()
Reports the end of a CSSStyleDeclaration update to any registered listeners.

fireCSSStyleDeclarationChangeEnd

public void fireCSSStyleDeclarationChangeEnd(CSSStyleDeclarationChangeEvent evt)
Fires an existing CSSStyleDeclarationChangeEvent that reports the end of a CSSStyleDeclaration update to any registered listeners.

fireCSSPropertyChange

public void fireCSSPropertyChange(java.lang.String property,
                                  CSSValue oldValue,
                                  CSSValue newValue)
Reports a bound property update to any registered listeners. No event is fired if old and new are equal.
Parameters:
property - The name of the property that was changed.
oldValue - The old value of the property.
newValue - The new value of the property.

fireCSSPropertyChange

public void fireCSSPropertyChange(CSSPropertyChangeEvent evt)
Fires an existing CSSPropertyChangeEvent to any registered listeners. No event is fired if the given event's old and new values are equal.
Parameters:
evt - The CSSPropertyChangeEvent object.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.