Class UserListPane

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----UserListPane

public class UserListPane
extends JPanel
UserListPane - Displays the list of users connected to the server.

Author:
Paul Kronenwetter, Jayme Manning

Paul Kronenwetter
Jayme Manning
Trade Secrets and/or Confidential
Commercial or Financial Information
Exempt From Disclosure Under the Freedom
of Information Act (5 USC 552(b)(3)
and 5 USC 552(b)(4)) and Under 18 USC 1905

Proprietary Information Notice
This document contains information proprietary to, and is the sole property of, Paul Kronenwetter and Jayme Manning. It shall not be reproduced, used or disclosed in any manner or for any purpose not authorized in writing by both Paul Kronenwetter and Jayme Manning, and except, as retention may be so authorized, it shall be returned to Paul Kronenwetter or Jayme Manning upon request.

© 1998 by Paul Kronenwetter and Jayme Manning
All Rights Reserved


Constructor Index

 o UserListPane()
Void constructor that calls realCtor.

Method Index

 o addActionListener(ActionListener)
addActionListener - Method used to attach an ActionListener to the signOffButton.
 o addUser(String)
addUser - Method used to add a user to the List.
 o getPreferredSize()
Replies to requests for this component's preferred size.
 o getSelections()
getSelections - Method that will return an array of Strings that represent the currently selected user names from the list.
 o isAvailable()
isAvailable - Method that returns true or false based on the availability of a selection.
 o removeAllUsers()
removeAllUsers - Method used to clear the list in preparation to start over.
 o removeUser(String)
removeUser - Method used to remove a user from the List.
 o reset()
Method to re-initialize panel.

Constructors

 o UserListPane
 public UserListPane()
Void constructor that calls realCtor.

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Replies to requests for this component's preferred size.

Returns:
The preferred size of this panel in a Dimension.
Overrides:
getPreferredSize in class JComponent
 o reset
 public void reset()
Method to re-initialize panel. Probably not needed, except for debugging purposes.

 o isAvailable
 public boolean isAvailable()
isAvailable - Method that returns true or false based on the availability of a selection.

Returns:
boolean - Whether or not there are any selections available.
 o getSelections
 public String[] getSelections()
getSelections - Method that will return an array of Strings that represent the currently selected user names from the list.

Parameters:
String[] - - The selected user names.
 o addActionListener
 public void addActionListener(ActionListener al)
addActionListener - Method used to attach an ActionListener to the signOffButton.

Parameters:
al - The ActionListener to attach.
 o addUser
 public void addUser(String user)
addUser - Method used to add a user to the List.

Parameters:
user - - String with the username.
 o removeUser
 public boolean removeUser(String user)
removeUser - Method used to remove a user from the List.

Parameters:
user - - String with the username.
 o removeAllUsers
 public void removeAllUsers()
removeAllUsers - Method used to clear the list in preparation to start over.