|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataManagerService
A service for managing loaded Data
objects.
DataManagerListener
s may be registered to be notified of changes
in the data manager.
Application developers are encouraged to use this service for managing the
models they have loaded into memory. Algorithm developers are encouraged not
to use this service as it is not guaranteed to be available like the standard
CIShell services are.
Method Summary | |
---|---|
void |
addData(Data data)
Adds a Data object to the manager |
void |
addDataManagerListener(DataManagerListener listener)
Adds a DataManagerListener that will be notified as Data objects
are added, removed, and selected |
Data[] |
getAllData()
Returns all of the Data objects loaded into the manager |
String |
getLabel(Data data)
Returns the label for a stored Data object |
Data[] |
getSelectedData()
Returns The Data objects that have been selected in the manager |
void |
removeData(Data data)
Removes a Data object from the manager |
void |
removeDataManagerListener(DataManagerListener listener)
Removes the DataManagerListener from the listener group and will
no longer notify it of events |
void |
setLabel(Data data,
String label)
Set the label to be used for the Data object. |
void |
setSelectedData(Data[] data)
Sets which Data objects are selected in the manager. |
Method Detail |
---|
void addData(Data data)
data
- The data objectvoid removeData(Data data)
data
- The data objectvoid setSelectedData(Data[] data)
data
- The data objects to selectData[] getSelectedData()
Data[] getAllData()
void addDataManagerListener(DataManagerListener listener)
DataManagerListener
that will be notified as Data objects
are added, removed, and selected
listener
- The listener to be notified of eventsvoid removeDataManagerListener(DataManagerListener listener)
DataManagerListener
from the listener group and will
no longer notify it of events
listener
- The listener to be removedString getLabel(Data data)
data
- The Data object
void setLabel(Data data, String label)
data
- The Datalabel
- The new label for the data model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |