View Javadoc

1   package org.ximtec.igesture.io;
2   
3   import java.util.Collection;
4   
5   /**
6    * This interface defines the methods the view of the device manager should support.
7    * @author Bjorn Puype, bpuype@gmail.com
8    *
9    */
10  public interface IDeviceManagerView {
11  
12  	/**
13  	 * Add a user.
14  	 * @param user
15  	 */
16  	public void addUser(IUser user);
17  	
18  	/**
19  	 * Add a association between a device and a user.
20  	 * @param association
21  	 */
22  	public void addDevice(DeviceUserAssociation association);
23  
24  	/**
25  	 * Remove a device and the corresponding association.
26  	 */
27  	public void removeDevice();
28  
29  	/**
30  	 * Remove a user
31  	 */
32  	public void removeUser();
33  	
34  	/**
35  	 * Get all device-user associations.
36  	 * @return A collection of DeviceUserAssociation.
37  	 */
38  	public Collection<DeviceUserAssociation> getDevices();
39  	
40  	/**
41  	 * Update a device-user association.
42  	 * @param value		The new value.
43  	 * @param column	The field that should be updated.
44  	 * @param object	The object that should be updated
45  	 */
46  	public void updateDevice(Object value, int column, DeviceUserAssociation object);
47  	
48  	/**
49  	 * Get the currently selected device-user association.
50  	 * @return The selected association.
51  	 */
52  	public DeviceUserAssociation getSelectedDevice();
53  	
54  	/**
55  	 * Get the currently selected user.
56  	 * @return The selected user.
57  	 */
58  	public IUser getSelectedUser();
59  	
60  	/**
61  	 * Clear the view.
62  	 */
63  	public void clear();
64  
65  }