|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phidgets.Manager
public class Manager
This class represents a Phidget Manager. The Phidget manager is a way to keep track of attached phidgets, it will send Attach and Detach events as Phidgets are added and removed fromt the system.
The Phidget manager deals in base Phidget objects. These objects are not actually connected to opened Phidgets but can be used to get serial number, name, version, etc.
Constructor Summary | |
---|---|
Manager()
The default constructor. |
Method Summary | |
---|---|
void |
addAttachListener(AttachListener l)
Adds an attach listener. |
void |
addDetachListener(DetachListener l)
Adds a detach listener. |
void |
close()
Shuts down the Phidget Manager. |
java.util.Vector |
getPhidgets()
Returns a list of Phidgets attached to the host computer. |
void |
removeAttachListener(AttachListener l)
Removes an attach listener. |
void |
removeDetachListener(DetachListener l)
Removes a detach listener. |
void |
start()
Starts the PhidgetManager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Manager()
start
still needs to be called
to actually recieve event notifications.
Method Detail |
---|
public final void start() throws PhidgetException
close
is called.
PhidgetException
public final void close() throws PhidgetException
PhidgetException
public final void addAttachListener(AttachListener l)
There is no limit on the number of attach handlers that can be registered for a particular Phidget.
l
- An implemetation of the AttachListener
interfacepublic final void removeAttachListener(AttachListener l)
public final void addDetachListener(DetachListener l)
There is no limit on the number of detach handlers that can be registered for a particular Phidget.
l
- An implemetation of the DetachListener
interfacepublic final void removeDetachListener(DetachListener l)
public java.util.Vector getPhidgets()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |