All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.devtools.SIPNoTE.SNWatch
java.lang.Object
|
+----com.ibm.devtools.SIPNoTE.SNWatch
- public class SNWatch
- extends Object
This class represents the GUI which is presented to the user to
monitor logged on users and their locations, and as a front end
for originating messages.
The GUI presented is a listbox which contains instance names and
currently logged on user names. The items which may be included
in the list are read in from the .snwatch file, which contains
id & alias pairs. The alias, if present, will be displayed instead
of the actual id. The user can select one or more entries in the
listbox, and then either double click, or press ctrl-s to bring
up a window in which to type their message. If this window is
closed, then the SNClient will exit.
This class utilizes Swing version 1.0 for the GUI components.
- See Also:
- JSendWnd, SNClient
-
SNWatch()
- Create a new SNWatch window, and intialize its contents.
-
addAlias(String)
- Add a user to the displayed list.
-
main(String[])
-
-
poll()
- Cause the SNWatch to poll for logged on users by sending a LOCATE
message.
-
removeAlias(String)
- Remove a user from the displayed list.
SNWatch
public SNWatch() throws Exception
- Create a new SNWatch window, and intialize its contents.
- Throws: Exception
- Initialization failed.
removeAlias
public void removeAlias(String alias)
- Remove a user from the displayed list.
- Parameters:
- alias - The user id to remove from the list. (This is not the displayed alias.)
addAlias
public void addAlias(String alias)
- Add a user to the displayed list.
- Parameters:
- alias - The user id to add to the list. (This is not necessarily the displayed name.)
poll
public void poll()
- Cause the SNWatch to poll for logged on users by sending a LOCATE
message. This will then update the list if necessary.
main
public static void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index