edu.rit.slides
Class ScreenDiscoveryObject
java.lang.Object
edu.rit.slides.ScreenDiscoveryObject
- All Implemented Interfaces:
- ScreenDiscovery
public class ScreenDiscoveryObject
- extends Object
- implements ScreenDiscovery
Class ScreenDiscoveryObject provides an exported screen discovery object in
the Slides application. A screen discovery object is used to discover groups
of
Screen
objects. See interface
ScreenDiscovery
for a description of the screen
discovery process.
An instance of class ScreenDiscoveryObject maintains a list of theatres it
has discovered out there. Whenever the list changes, a
ScreenDiscoveryListener
object is
notified; this notification can, for example, drive a GUI display of the
existing theatres.
Method Summary |
void |
report(Screen theHandle,
String theName)
Report that a theatre exists. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenDiscoveryObject
public ScreenDiscoveryObject(ScreenDiscoveryListener theListener)
- Construct a new screen discovery object. The object is exported to the
M2MI Layer so it can receive invocations on an omnihandle for interface
ScreenDiscovery
.
- Parameters:
theListener
- Screen discovery listener. If non-null, the listener will be notified
whenever the list of theatres changes.
report
public void report(Screen theHandle,
String theName)
- Report that a theatre exists.
- Specified by:
report
in interface ScreenDiscovery
- Parameters:
theHandle
- The
Screen
multihandle used for
performing method calls on all screen objects in the theatre.theName
- Theatre name.
Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark@cs.rit.edu.