|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.tool.core.DefaultController
org.ximtec.igesture.tool.view.devicemanager.DeviceManagerController
public class DeviceManagerController
This class is an implementation of the controller of the Device Manager. It implements the IDeviceManager interface.
It also extends DefaultController to allow easy instantion by the main controller of the workbench.
| Constructor Summary | |
|---|---|
DeviceManagerController(Controller parentController,
String key,
org.sigtec.graphix.GuiBundle guiBundle)
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.ximtec.igesture.tool.core.DefaultController |
|---|
addAction, addController, execute, getAction, getControllers, getLocator, getParent, isRoot, propertyChange, removeAllControllers, removeController, setLocator, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceManagerController(Controller parentController,
String key,
org.sigtec.graphix.GuiBundle guiBundle)
parentController - key - guiBundle - | Method Detail |
|---|
public boolean getEnableAddDevicesAction()
public TabbedView getView()
Controller
getView in interface Controller
public void addDevice(AbstractGestureDevice<?,?> device,
IUser user)
IDeviceManager
addDevice in interface IDeviceManagerdevice - The device to add.user - The user to associate with the device.public void addUser(IUser user)
IDeviceManager
addUser in interface IDeviceManagerpublic IUser getDefaultUser()
IDeviceManager
getDefaultUser in interface IDeviceManagerpublic Set<AbstractGestureDevice<?,?>> getDevices()
IDeviceManager
getDevices in interface IDeviceManagerpublic Set<IUser> getUsers()
IDeviceManager
getUsers in interface IDeviceManagerpublic void removeDevice(AbstractGestureDevice<?,?> device)
IDeviceManager
removeDevice in interface IDeviceManagerdevice - The device to remove.public void removeUser(IUser user)
IDeviceManager
removeUser in interface IDeviceManager
public void associateUser(AbstractGestureDevice<?,?> device,
IUser user)
IDeviceManager
associateUser in interface IDeviceManagerdevice - The device.user - The user to associate with the device.public void showView(Point p)
IDeviceManager
showView in interface IDeviceManagerp - The desired pointpublic void saveConfiguration(File file)
IDeviceManager
saveConfiguration in interface IDeviceManagerfile - The file to save to.public void loadConfiguration(File file)
IDeviceManager
loadConfiguration in interface IDeviceManagerfile - The file to load from.public Map<String,DeviceDiscoveryService> getDiscoveryMapping()
IDeviceManager
getDiscoveryMapping in interface IDeviceManagerpublic void addDeviceManagerListener(DeviceManagerListener listener)
addDeviceManagerListener in interface IDeviceManagerpublic void removeDeviceManagerListener(DeviceManagerListener listener)
removeDeviceManagerListener in interface IDeviceManagerpublic void removeAllDeviceManagerListener()
removeAllDeviceManagerListener in interface IDeviceManager
public void notifyDeviceManagerListener(int operation,
AbstractGestureDevice<?,?> device)
notifyDeviceManagerListener in interface IDeviceManagerpublic IUser getAssociatedUser(GestureDevice<?,?> device)
IDeviceManager
getAssociatedUser in interface IDeviceManagerpublic boolean areInitialsValid(String initials)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||