org.relayirc.swingui
Class CustomListener

java.lang.Object
  |
  +--org.relayirc.swingui.CustomListener
All Implemented Interfaces:
java.io.Serializable

public class CustomListener
extends java.lang.Object
implements java.io.Serializable

Version:
$Revision: 1.4.2.4 $

The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

Original Code: Relay-JFC Chat Client
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
Author:
David M. Johnson
See Also:
Serialized Form

Field Summary
static int JAVA_CLASS
           
static int JPYTHON_SCRIPT
           
 
Constructor Summary
CustomListener(java.lang.String title, int type, java.lang.String subject, java.lang.String listener, java.lang.String imps)
          Construct CustomListener by specifying its title, type and listener string.
 
Method Summary
 java.lang.Object getListener()
           
 java.lang.String getListenerString()
           
 java.lang.String getSubject()
           
 java.lang.String getTitle()
           
 int getType()
           
 void setListenerString(java.lang.String s)
           
 void setSubject(java.lang.String s)
           
 void setTitle(java.lang.String t)
           
 void setType(int t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JPYTHON_SCRIPT

public static final int JPYTHON_SCRIPT

JAVA_CLASS

public static final int JAVA_CLASS
Constructor Detail

CustomListener

public CustomListener(java.lang.String title,
                      int type,
                      java.lang.String subject,
                      java.lang.String listener,
                      java.lang.String imps)
Construct CustomListener by specifying its title, type and listener string.
If type is JPYTHON_SCRIPT, then action must be the full path to a JPython script to be run.
If type is JAVA_CLASS, then action must be the fully qualified Java class name of a class that implements IRelayPlugin.
Parameters:
title - Name to be displayed on menus, lists, etc.
type - Type of command, see static final int fields.
subject - Name of object to be listened to.
listener - File name or class name or listener.
imps - Class name of listener interface implemented by listener.
Method Detail

setType

public void setType(int t)

getType

public int getType()

setTitle

public void setTitle(java.lang.String t)

getTitle

public java.lang.String getTitle()

setSubject

public void setSubject(java.lang.String s)

getSubject

public java.lang.String getSubject()

setListenerString

public void setListenerString(java.lang.String s)

getListenerString

public java.lang.String getListenerString()

getListener

public java.lang.Object getListener()