|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.emn.reactiveinput.AbstractFolder
This is an abstract folder in which you can add devices and subfolders.
| Field Summary | |
protected java.util.Vector |
children
|
protected java.util.Vector |
devices
|
protected java.lang.String |
name
|
protected DeviceFolderContainer |
parent
|
| Constructor Summary | |
AbstractFolder(java.lang.String name)
|
|
| Method Summary | |
void |
add(Device d)
Adds a device to the folder. |
void |
add(DeviceFolder folder)
Adds a folder. |
void |
add(int index,
DeviceFolder folder)
|
boolean |
canAdd(Device d)
Returns whether the device d matches the default folder descriptor. |
AbstractFolder |
findFolder(java.lang.String name)
Find a DeviceFolder from its name. |
java.lang.String |
getName()
|
DeviceFolderContainer |
getParent()
Allows this folder to be added to a parent folder. |
Device[] |
getPrototypes()
Returns all available prototypes from this folder for the current environment. |
DeviceFolder[] |
getSubfolders()
|
void |
remove(DeviceFolder folder)
|
void |
setParent(DeviceFolderContainer parent)
Allows this folder to be added to a parent folder (don't call this method, instead use parent's "add" method). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.emn.reactiveinput.DeviceFolder |
getDefaultDescriptor, getDefaultDescriptor |
| Field Detail |
protected java.lang.String name
protected java.util.Vector devices
protected java.util.Vector children
protected DeviceFolderContainer parent
| Constructor Detail |
public AbstractFolder(java.lang.String name)
| Method Detail |
public void add(Device d)
public void add(DeviceFolder folder)
add in interface DeviceFolderContainer
public void add(int index,
DeviceFolder folder)
public boolean canAdd(Device d)
public java.lang.String getName()
getName in interface DeviceFolderpublic DeviceFolderContainer getParent()
getParent in interface DeviceFolderpublic Device[] getPrototypes()
DeviceFolderPrototype devices include copiable devices and static devices. Copiable devices must be copied before using them.
Note: This method must not return devices that do not match the getDefaultDescriptor(void) method.
getPrototypes in interface DeviceFolderpublic DeviceFolder[] getSubfolders()
getSubfolders in interface DeviceFolderContainerpublic void remove(DeviceFolder folder)
remove in interface DeviceFolderContainerpublic AbstractFolder findFolder(java.lang.String name)
name - the DeviceFolder name
DeviceFolder or null.public void setParent(DeviceFolderContainer parent)
setParent in interface DeviceFolder
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||