01: /* Copyright 2002 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.layout;
07:
08: import org.jasig.portal.layout.node.IUserLayoutNodeDescription;
09:
10: /**
11: * A basic user layout event, involving just one node.
12: *
13: * @author Peter Kharchenko {@link <a href="mailto:pkharchenko@interactivebusiness.com"">pkharchenko@interactivebusiness.com"</a>}
14: * @version 1.0
15: */
16: public class LayoutEvent extends java.util.EventObject {
17: protected IUserLayoutNodeDescription node;
18:
19: /**
20: * Construct a <code>LayoutEvent</code> from a given source,
21: * and a given node.
22: *
23: * @param source an <code>Object</code> that generated the event
24: * @param node an <code>UserLayoutNodeDescription</code> of the node that was involved
25: */
26: public LayoutEvent(Object source, IUserLayoutNodeDescription node) {
27: super (source);
28: this .node = node;
29: }
30:
31: /**
32: * Obtain a description of a node involved in the event.
33: *
34: * @return an <code>UserLayoutNodeDescription</code> value
35: */
36: public IUserLayoutNodeDescription getNodeDescription() {
37: return this.node;
38: }
39: }
|