org.apache.batik.css.event
Class CSSPropertyChangeEvent

java.lang.Object
  |
  +--org.apache.batik.css.event.CSSPropertyChangeEvent

public class CSSPropertyChangeEvent
extends java.lang.Object

This class represents the events which get fired whenever a CSS property value is changed.


Field Summary
protected  CSSValue newValue
          The CSS property new value.
protected  CSSValue oldValue
          The CSS property old value.
protected  java.lang.String propertyName
          The CSS property name.
protected  java.lang.Object source
          The source of this event.
 
Constructor Summary
CSSPropertyChangeEvent(java.lang.Object source, java.lang.String property, CSSValue before, CSSValue after)
          Creates a new CSSPropertyChangeEvent object.
 
Method Summary
 CSSValue getNewValue()
          Returns the value of the property after the change.
 CSSValue getOldValue()
          Returns the value of the property before the change.
 java.lang.String getPropertyName()
          Returns the name of the changing property.
 java.lang.Object getSource()
          Returns the event source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected java.lang.Object source
The source of this event.

propertyName

protected java.lang.String propertyName
The CSS property name.

oldValue

protected CSSValue oldValue
The CSS property old value.

newValue

protected CSSValue newValue
The CSS property new value.
Constructor Detail

CSSPropertyChangeEvent

public CSSPropertyChangeEvent(java.lang.Object source,
                              java.lang.String property,
                              CSSValue before,
                              CSSValue after)
Creates a new CSSPropertyChangeEvent object.
Parameters:
source - The source of this event.
property - The property name.
before - The property value before the change.
after - The property value after the change.
Method Detail

getSource

public java.lang.Object getSource()
Returns the event source.

getPropertyName

public java.lang.String getPropertyName()
Returns the name of the changing property.

getOldValue

public CSSValue getOldValue()
Returns the value of the property before the change.

getNewValue

public CSSValue getNewValue()
Returns the value of the property after the change.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.