org.relayirc.swingui
Class GuiChannel

java.lang.Object
  |
  +--org.relayirc.swingutil.GuiObject
        |
        +--org.relayirc.swingui.GuiChannel

public class GuiChannel
extends GuiObject

A GuiObject that represents a channel.

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

Field Summary
static java.lang.String ADD_CHANNEL
          Action name for the ADD_CHANNEL action.
static java.lang.String JOIN
          Action name for the JOIN action.
static java.lang.String PART
          Action name for the PART action.
static java.lang.String REMOVE_CHANNEL
          Action name for the REMOVE_CHANNEL action.
static java.lang.String SHOW_PROPERTIES
          Action name for the SHOW_PROPERTIES action.
 
Constructor Summary
GuiChannel(Channel chan)
           
GuiChannel(Channel chan, javax.swing.Icon icon)
           
 
Method Summary
 javax.swing.JPopupMenu createPopupMenu()
           
 IChatAction getAction(java.lang.String actionName)
          Get action by name.
 
Methods inherited from class org.relayirc.swingutil.GuiObject
getIcon, getObject, getString, setIcon, setObject, setString, setStringLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JOIN

public static final java.lang.String JOIN
Action name for the JOIN action. If you put a property named Channel with a Channel object as its value to this Action, then the action will connect to the specified server. Otherwise, it will pop up the Join Dialog (JoinDlg).

PART

public static final java.lang.String PART
Action name for the PART action.

SHOW_PROPERTIES

public static final java.lang.String SHOW_PROPERTIES
Action name for the SHOW_PROPERTIES action.

ADD_CHANNEL

public static final java.lang.String ADD_CHANNEL
Action name for the ADD_CHANNEL action.

REMOVE_CHANNEL

public static final java.lang.String REMOVE_CHANNEL
Action name for the REMOVE_CHANNEL action. Requires a property named Channel with a Channel as its value.
Constructor Detail

GuiChannel

public GuiChannel(Channel chan)

GuiChannel

public GuiChannel(Channel chan,
                  javax.swing.Icon icon)
Method Detail

getAction

public IChatAction getAction(java.lang.String actionName)
Get action by name.

createPopupMenu

public javax.swing.JPopupMenu createPopupMenu()