Class GuiServer


public class GuiServer
extends GuiObject

A GuiObject that represents a server.

$Revision: $

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

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.
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


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.


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


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


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.


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


public GuiServer(Server srvr)


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


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


public javax.swing.JPopupMenu createPopupMenu()