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

Quick Search    Search Deep

Source code: com/voytechs/html/event/ListenerRequest.java


1   /*
2    * File: ListenerRequest.java
3    * Auth: Mark Bednarczyk
4    * Date: DATE
5    *   Id: $Id: ListenerRequest.java,v 1.1.1.1 2002/01/23 23:52:47 voytechs Exp $
6    ********************************************
7    * $Log: ListenerRequest.java,v $
8    * Revision 1.1.1.1  2002/01/23 23:52:47  voytechs
9    * Initial public release, BETA 1.0 - voytechs
10   *
11   */
12  package com.voytechs.html.event;
13  
14  import java.lang.*;
15  
16  /**
17   *  Special object which holds a single listener request for
18   * binding to the dispatcher. Usually utilized by DispatcherBroker.
19   */
20  public class ListenerRequest {
21    /* Internal attributes */
22  
23    private ListenerIf listener = null;
24    private Object data = null;
25    private Object source = null;
26  
27    /**
28     *
29     * @param
30     * @exception
31     */
32    public ListenerRequest(ListenerIf listener, Object data, Object source) {
33      this.listener = listener;
34      this.data = data;
35      this.source = source;
36    }
37  
38    /**
39     * Get listener.
40     */
41    public ListenerIf getListener() {
42      return(listener);
43    }
44  
45    /**
46     * Get data.
47     */
48    public Object getData() {
49      return(data);
50    }
51  
52    /**
53     * Get source object.
54     */
55    public Object getSource() {
56      return(source);
57    }
58  
59    /**
60     * Compares Listner objects to see if they are equal.
61     */
62    public boolean equals(Object right) {
63      ListenerRequest r = (ListenerRequest)right;
64  
65      if(r.listener == this.listener)
66        return(true);
67      else
68        return(false);
69    }
70  
71    /**
72     * Test function for ListenerRequest
73     * @param args command line arguments
74     */
75    public static void main(String [] args) {
76    }
77  
78  } /* END OF: ListenerRequest */