Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/cybertivity/powerjournal/framework/ViewEvent.java


1   /*
2    * Title:     Similated Intelligence
3    * Copyright: Copyright (c) 2001 Cybertivity
4    * Company:   <A HREF="http://www.cybertivity.com">Cybertivity</A>
5    * @author    <A HREF="mailto:chris.arrowood@cybertivity.com">Chris Arrowood</A>
6    * @version   $Id: ViewEvent.java,v 1.1.1.1 2001/11/24 03:51:34 arrowood Exp $
7    */
8   package com.cybertivity.powerjournal.framework;
9   
10  /**
11   *  Title: Simulated Intelligence Desc: Event raised by a View. Copyright:
12   *  Copyright (c) 2001 Chris Arrowood Company: <A
13   *  HREF="http://www.cybertivity.com">Cybertivity</A>
14   *
15   * @author     <A HREF="mailto:chris.arrowood@cybertivity.com">Chris Arrowood
16   *      </A>
17   * @created    May 2, 2001
18   * @version    $Id: ViewEvent.java,v 1.1.1.1 2001/11/24 03:51:34 arrowood Exp $
19   */
20  
21  public class ViewEvent {
22    private Object initiator = null;
23    private String field = "";
24    private Object value = "";
25  
26  
27    /**
28     *  Constructor for the ViewEvent object
29     *
30     * @param  initiator  Object that initiated the change
31     * @param  field      The field that has change
32     * @param  value      The new value of the field
33     */
34    public ViewEvent(Object initiator, String field, Object value) {
35      this.initiator = initiator;
36      this.field = field;
37      this.value = value;
38    }
39  
40  
41    /**
42     *  Gets the Initiator attribute of the ViewEvent object
43     *
44     * @return    The Initiator value
45     */
46    public Object getInitiator() {
47      return initiator;
48    }
49  
50  
51    /**
52     *  Gets the field attribute of the ViewEvent object
53     *
54     * @return    The field that is being changed
55     */
56    public String getField() {
57      return field;
58    }
59  
60  
61    /**
62     *  Gets the value attribute of the ViewEvent object
63     *
64     * @return    The new value pf the changed field
65     */
66    public Object getValue() {
67      return value;
68    }
69  }
70