Commit 99010ccb by Michael Koch Committed by Michael Koch

BeanContextEvent.java: Reformated.

2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/beans/beancontext/BeanContextEvent.java:
	Reformated.

From-SVN: r64778
parent b099daeb
2003-03-24 Michael Koch <konqueror@gmx.de>
* java/beans/beancontext/BeanContextEvent.java:
Reformated.
2003-03-23 Eric Blake <ebb9@email.byu.edu> 2003-03-23 Eric Blake <ebb9@email.byu.edu>
* java/lang/natStringBuffer.cc (regionMatches): New function. * java/lang/natStringBuffer.cc (regionMatches): New function.
......
...@@ -44,60 +44,67 @@ import java.util.EventObject; ...@@ -44,60 +44,67 @@ import java.util.EventObject;
* Generic superclass for events fired by <code>BeanContext</code>s. * Generic superclass for events fired by <code>BeanContext</code>s.
* *
* @author John Keiser * @author John Keiser
* @since JDK1.2 * @since 1.2
*/ */
public abstract class BeanContextEvent extends EventObject public abstract class BeanContextEvent extends EventObject
{ {
/** private static final long serialVersionUID = 7267998073569045052L;
* The <code>BeanContext</code> that most recently passed this
* event on. /**
*/ * The <code>BeanContext</code> that most recently passed this
protected BeanContext propagatedFrom; * event on.
*/
protected BeanContext propagatedFrom;
/** /**
* Create a new event, from the specified <code>BeanContext</code>. * Create a new event, from the specified <code>BeanContext</code>.
* <code>propagatedFrom</code> will be initialized to * <code>propagatedFrom</code> will be initialized to
* <code>null</code>. * <code>null</code>.
* *
* @param source the source of the event. * @param source the source of the event.
*/ */
protected BeanContextEvent(BeanContext source) { protected BeanContextEvent(BeanContext source)
super(source); {
} super(source);
}
/** /**
* Get the <code>BeanContext</code> that originated this event. * Get the <code>BeanContext</code> that originated this event.
* @return the originator of this event. * @return the originator of this event.
*/ */
public BeanContext getBeanContext() { public BeanContext getBeanContext()
return (BeanContext)getSource(); {
} return (BeanContext)getSource();
}
/** /**
* Get the most recent propagator of this event. * Get the most recent propagator of this event.
* If this value is <code>null</code>, you have received the event * If this value is <code>null</code>, you have received the event
* straight from the source. * straight from the source.
* *
* @return the most recent propagator of this event. * @return the most recent propagator of this event.
*/ */
public BeanContext getPropagatedFrom() { public BeanContext getPropagatedFrom()
return propagatedFrom; {
} return propagatedFrom;
}
/** /**
* Tell whether this event has been propagated. * Tell whether this event has been propagated.
* @return <code>true</code> iff <code>getPropagatedFrom() != null</code>. * @return <code>true</code> iff <code>getPropagatedFrom() != null</code>.
*/ */
public boolean isPropagated() { public boolean isPropagated()
return propagatedFrom != null; {
} return propagatedFrom != null;
}
/** /**
* Set the most recent propagator of this event. * Set the most recent propagator of this event.
* @param propagator the most recent propagator of this event. * @param propagator the most recent propagator of this event.
*/ */
public void setPropagatedFrom(BeanContext propagator) { public void setPropagatedFrom(BeanContext propagator)
propagatedFrom = propagator; {
} propagatedFrom = propagator;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment