org.relayirc.swingui
Class GuiServer

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

public class GuiServer
extends GuiObject

A GuiObject that represents a server.

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_SERVER
          Action name for the ADD_SERVER action.
static java.lang.String CONNECT
          Action name for CONNECT action.
static java.lang.String DISCONNECT
          Action name for the DISCONNECT action.
static java.lang.String REMOVE_SERVER
          Action name for the REMOVE_SERVER action.
static java.lang.String SHOW_PROPERTIES
          Action name for the SHOW_PROPERTIES action.
 
Constructor Summary
GuiServer(Server srvr)
           
GuiServer(Server srvr, 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

CONNECT

public static final java.lang.String CONNECT
Action name for CONNECT action. If you put a property named "Server" with a Server object as its value to this Action, then the action will connect to the specified server. Otherwise, it will pop up a dialog.

DISCONNECT

public static final java.lang.String DISCONNECT
Action name for the DISCONNECT action. This action will trigger a disconnect from the current server.

ADD_SERVER

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

REMOVE_SERVER

public static final java.lang.String REMOVE_SERVER
Action name for the REMOVE_SERVER action. Requires a property named Server with a Server as its value.

SHOW_PROPERTIES

public static final java.lang.String SHOW_PROPERTIES
Action name for the SHOW_PROPERTIES action. This action will pop-up the Propeties Dialog (PropDlg). Requires a property named ChatObject whose value is an IChatObject.
Constructor Detail

GuiServer

public GuiServer(Server srvr)

GuiServer

public GuiServer(Server srvr,
                 javax.swing.Icon icon)
Method Detail

getAction

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

createPopupMenu

public javax.swing.JPopupMenu createPopupMenu()