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 Folder
NoSuchFolderException
public 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 Folder
NoSuchFolderException
public void unsubscribe(Stack<String> path, Object tag) throws NoSuchFolderException
unsubscribe
in interface Folder
NoSuchFolderException
public void clearListeners()
public boolean hasSubscribers()
true
if there are active subscriberspublic int size()
public void added()
Folder
public void removed()
Folder
public void clear()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.