|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.core.DefaultPropertyChangeNotifier
org.ximtec.igesture.core.DefaultDataObject
org.ximtec.igesture.io.DeviceUserAssociation
public class DeviceUserAssociation
This class defines an association between a IUser and a AbstractGestureDevice.
Both objects are saved in the association. It extends DefaultDataObject so the association can be serialized.
It also implements the Device interface.
| Field Summary |
|---|
| Fields inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
PROPERTY_ID |
| Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
propertyChangeSupport |
| Constructor Summary | |
|---|---|
DeviceUserAssociation(AbstractGestureDevice<?,?> device,
IUser user)
Constructor |
|
| Method Summary | |
|---|---|
void |
connect()
|
void |
disconnect()
|
boolean |
getConnected()
Check whether the device is connected or not. |
String |
getConnectionType()
|
String |
getDeviceClass()
|
String |
getDeviceID()
|
AbstractGestureDevice<?,?> |
getDeviceItem()
Get the device of this association. |
String |
getDeviceType()
|
String |
getName()
|
String |
getUser()
Get a String representation of the user. |
IUser |
getUserItem()
Get the associated User. |
boolean |
isConnectable()
|
boolean |
isConnected()
|
boolean |
isDefaultDevice()
|
boolean |
isDisconnectable()
|
void |
setConnected(boolean isConnected)
Change the connection status of the device. |
void |
setConnectionType(String connectionType)
|
void |
setDefaultDevice(boolean isDefault)
|
void |
setDeviceID(String id)
|
void |
setIsConnected(boolean isConnected)
|
void |
setName(String name)
|
void |
setUser(User user)
Set the associated user. |
String |
toString()
|
| Methods inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
accept, getId, setId |
| Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public DeviceUserAssociation(AbstractGestureDevice<?,?> device,
IUser user)
device - The device.user - The user to associate with the device.| Method Detail |
|---|
public void connect()
public void disconnect()
public String getConnectionType()
public String getDeviceID()
public String getDeviceType()
public String getName()
public boolean isConnectable()
public boolean isDisconnectable()
public void setConnectionType(String connectionType)
public void setDeviceID(String id)
public void setName(String name)
public void setUser(User user)
user - The user to associate.public String getUser()
public AbstractGestureDevice<?,?> getDeviceItem()
public IUser getUserItem()
public boolean isDefaultDevice()
public void setDefaultDevice(boolean isDefault)
public boolean isConnected()
public void setIsConnected(boolean isConnected)
public boolean getConnected()
isConnected()public void setConnected(boolean isConnected)
isConnected - The new connection status.setIsConnected(boolean)public String toString()
toString in class Objectpublic String getDeviceClass()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||