public class DeviceManagerController extends DefaultController implements IDeviceManager
IDeviceManager interface.
It also extends DefaultController to allow easy instantion by the main controller of the workbench.| Constructor and Description |
|---|
DeviceManagerController(Controller parentController,
String key,
org.sigtec.graphix.GuiBundle guiBundle)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDevice(AbstractGestureDevice<?,?> device,
IUser user)
Add a device and associate it with a user.
|
void |
addDeviceManagerListener(DeviceManagerListener listener) |
void |
addUser(IUser user)
Add a user.
|
boolean |
areInitialsValid(String initials) |
void |
associateUser(AbstractGestureDevice<?,?> device,
IUser user)
Associate a user with a device.
|
IUser |
getAssociatedUser(GestureDevice<?,?> device)
Get the user that is associated with device
|
IUser |
getDefaultUser()
Get the default user of the system (aka system user).
|
Set<AbstractGestureDevice<?,?>> |
getDevices()
Get all devices registered with the controller.
|
Map<String,DeviceDiscoveryService> |
getDiscoveryMapping()
Get the mapping between connection types and discovery services.
|
boolean |
getEnableAddDevicesAction()
This method returns true if the add devices action should be enabled
|
Set<IUser> |
getUsers()
Get all users registered with the controller.
|
TabbedView |
getView()
Returns the view component for this specific controller.
|
void |
loadConfiguration(File file)
Load a user and device configuration from file.
|
void |
notifyDeviceManagerListener(int operation,
AbstractGestureDevice<?,?> device) |
void |
removeAllDeviceManagerListener() |
void |
removeDevice(AbstractGestureDevice<?,?> device)
Remove a device.
|
void |
removeDeviceManagerListener(DeviceManagerListener listener) |
void |
removeUser(IUser user)
Remove a user
|
void |
saveConfiguration(File file)
Save the current user and device configuration to file.
|
void |
showView(Point p)
Show the view at a certain point.
|
addAction, addController, execute, getAction, getControllers, getLocator, getParent, isRoot, propertyChange, removeAllControllers, removeController, setLocator, setParentpublic DeviceManagerController(Controller parentController, String key, org.sigtec.graphix.GuiBundle guiBundle)
parentController - key - guiBundle - public boolean getEnableAddDevicesAction()
public TabbedView getView()
ControllergetView in interface Controllerpublic void addDevice(AbstractGestureDevice<?,?> device, IUser user)
IDeviceManageraddDevice in interface IDeviceManagerdevice - The device to add.user - The user to associate with the device.public void addUser(IUser user)
IDeviceManageraddUser in interface IDeviceManagerpublic IUser getDefaultUser()
IDeviceManagergetDefaultUser in interface IDeviceManagerpublic Set<AbstractGestureDevice<?,?>> getDevices()
IDeviceManagergetDevices in interface IDeviceManagerpublic Set<IUser> getUsers()
IDeviceManagergetUsers in interface IDeviceManagerpublic void removeDevice(AbstractGestureDevice<?,?> device)
IDeviceManagerremoveDevice in interface IDeviceManagerdevice - The device to remove.public void removeUser(IUser user)
IDeviceManagerremoveUser in interface IDeviceManagerpublic void associateUser(AbstractGestureDevice<?,?> device, IUser user)
IDeviceManagerassociateUser in interface IDeviceManagerdevice - The device.user - The user to associate with the device.public void showView(Point p)
IDeviceManagershowView in interface IDeviceManagerp - The desired pointpublic void saveConfiguration(File file)
IDeviceManagersaveConfiguration in interface IDeviceManagerfile - The file to save to.public void loadConfiguration(File file)
IDeviceManagerloadConfiguration in interface IDeviceManagerfile - The file to load from.public Map<String,DeviceDiscoveryService> getDiscoveryMapping()
IDeviceManagergetDiscoveryMapping in interface IDeviceManagerpublic void addDeviceManagerListener(DeviceManagerListener listener)
addDeviceManagerListener in interface IDeviceManagerpublic void removeDeviceManagerListener(DeviceManagerListener listener)
removeDeviceManagerListener in interface IDeviceManagerpublic void removeAllDeviceManagerListener()
removeAllDeviceManagerListener in interface IDeviceManagerpublic void notifyDeviceManagerListener(int operation,
AbstractGestureDevice<?,?> device)
notifyDeviceManagerListener in interface IDeviceManagerpublic IUser getAssociatedUser(GestureDevice<?,?> device)
IDeviceManagergetAssociatedUser in interface IDeviceManagerpublic boolean areInitialsValid(String initials)
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.