edu.rit.slides
Class ScreenDiscoveryObject

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface edu.rit.slides.ScreenDiscovery
LEASE_TIME
 
Constructor Summary
ScreenDiscoveryObject(ScreenDiscoveryListener theListener)
          Construct a new screen discovery object.
 
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
 

Constructor Detail

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

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.