| Constructor and Description |
|---|
FolderCommon() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(Map<String,Folder> folders,
Map<String,DataItemInformation> items)
Bulk add items
|
boolean |
add(String name,
DataItemInformation itemInformation,
Map<String,Variant> attributes) |
boolean |
add(String name,
DataItem dataItem,
Map<String,Variant> attributes) |
boolean |
add(String name,
Folder folder,
Map<String,Variant> attributes) |
void |
added()
Called when the folder was added to the browser space
|
void |
clear()
clear all folder content at once
|
void |
clearListeners() |
String |
findEntry(DataItem item) |
String |
findEntry(Folder folder) |
boolean |
hasSubscribers()
Check if there are subscribers
|
Entry[] |
list(Stack<String> path) |
boolean |
remove(DataItem item) |
boolean |
remove(Folder folder) |
boolean |
remove(String name) |
void |
removed()
Called when the folder was removed from the browser space
|
int |
size()
Get the number of entries in this folder
|
void |
subscribe(Stack<String> path,
FolderListener listener,
Object tag) |
void |
unsubscribe(Stack<String> path,
Object tag) |
public Entry[] list(Stack<String> path) throws NoSuchFolderException
list in interface FolderNoSuchFolderExceptionpublic int add(Map<String,Folder> folders, Map<String,DataItemInformation> items)
folders - folders to register or null if no folders should
be registereditems - items to register or null if no item should be
registeredpublic boolean add(String name, DataItemInformation itemInformation, Map<String,Variant> attributes)
public boolean remove(String name)
public boolean remove(Folder folder)
public boolean remove(DataItem item)
public void subscribe(Stack<String> path, FolderListener listener, Object tag) throws NoSuchFolderException
subscribe in interface FolderNoSuchFolderExceptionpublic void unsubscribe(Stack<String> path, Object tag) throws NoSuchFolderException
unsubscribe in interface FolderNoSuchFolderExceptionpublic void clearListeners()
public boolean hasSubscribers()
true if there are active subscriberspublic int size()
public void added()
Folderpublic void removed()
Folderpublic void clear()