© 2006-2007 ETH Zurich

org.ximtec.igesture.io
Interface IDeviceManagerView

All Known Implementing Classes:
DeviceManagerView

public interface IDeviceManagerView

This interface defines the methods the view of the device manager should support.

Author:
Bjorn Puype, bpuype@gmail.com

Method Summary
 void addDevice(DeviceUserAssociation association)
          Add a association between a device and a user.
 void addUser(IUser user)
          Add a user.
 void clear()
          Clear the view.
 Collection<DeviceUserAssociation> getDevices()
          Get all device-user associations.
 DeviceUserAssociation getSelectedDevice()
          Get the currently selected device-user association.
 IUser getSelectedUser()
          Get the currently selected user.
 void removeDevice()
          Remove a device and the corresponding association.
 void removeUser()
          Remove a user
 void updateDevice(Object value, int column, DeviceUserAssociation object)
          Update a device-user association.
 

Method Detail

addUser

void addUser(IUser user)
Add a user.

Parameters:
user -

addDevice

void addDevice(DeviceUserAssociation association)
Add a association between a device and a user.

Parameters:
association -

removeDevice

void removeDevice()
Remove a device and the corresponding association.


removeUser

void removeUser()
Remove a user


getDevices

Collection<DeviceUserAssociation> getDevices()
Get all device-user associations.

Returns:
A collection of DeviceUserAssociation.

updateDevice

void updateDevice(Object value,
                  int column,
                  DeviceUserAssociation object)
Update a device-user association.

Parameters:
value - The new value.
column - The field that should be updated.
object - The object that should be updated

getSelectedDevice

DeviceUserAssociation getSelectedDevice()
Get the currently selected device-user association.

Returns:
The selected association.

getSelectedUser

IUser getSelectedUser()
Get the currently selected user.

Returns:
The selected user.

clear

void clear()
Clear the view.


© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.