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
-
UserListPane()
- Void constructor that calls realCtor.
-
addActionListener(ActionListener)
- addActionListener - Method used to attach an ActionListener to the
signOffButton.
-
addUser(String)
- addUser - Method used to add a user to the List.
-
getPreferredSize()
- Replies to requests for this component's preferred size.
-
getSelections()
- getSelections - Method that will return an array of Strings that represent
the currently selected user names from the list.
-
isAvailable()
- isAvailable - Method that returns true or false based on the availability
of a selection.
-
removeAllUsers()
- removeAllUsers - Method used to clear the list in preparation to start
over.
-
removeUser(String)
- removeUser - Method used to remove a user from the List.
-
reset()
- Method to re-initialize panel.
UserListPane
public UserListPane()
- Void constructor that calls realCtor.
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
reset
public void reset()
- Method to re-initialize panel. Probably not needed, except for
debugging purposes.
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.
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.
addActionListener
public void addActionListener(ActionListener al)
- addActionListener - Method used to attach an ActionListener to the
signOffButton.
- Parameters:
- al - The ActionListener to attach.
addUser
public void addUser(String user)
- addUser - Method used to add a user to the List.
- Parameters:
- user - - String with the username.
removeUser
public boolean removeUser(String user)
- removeUser - Method used to remove a user from the List.
- Parameters:
- user - - String with the username.
removeAllUsers
public void removeAllUsers()
- removeAllUsers - Method used to clear the list in preparation to start
over.