|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataContext
This interface defines the context in which
the collection of data classes (e.g., DataChoice,
DirectDataChoice, DerivedDataDescriptor,
DataSource etc.) exist. For now the DataContext is
the IntegratedDataViewer
(IDV). It is mostly used by the DerivedDataChoice
to have the user select the DataChoice operands needed
when evaluating the DerivedDataChoice.
| Method Summary | |
|---|---|
void |
dataSourceChanged(DataSource source)
This method gets called when something changed in the data source. |
List |
getAllDataSources()
Return the list of DataSource objects currently held, including
the formula data source |
List |
getDataSources()
Return the list of DataSource objects currently held |
IntegratedDataViewer |
getIdv()
Get the reference to the idv |
JythonManager |
getJythonManager()
Return the JythonManager. |
XmlObjectStore |
getObjectStore()
Return the XmlObjectStore that is used
to get and store persistent user state. |
Object |
getPreference(String pref)
Get the given user preference |
IdvResourceManager |
getResourceManager()
Return the IdvResourceManager. |
boolean |
loadDataSource(DataSource dataSource)
Add the given DataSource. |
List |
selectDataChoices(List labels)
Select a set of DataChoice-s, one for each label (String)
contained within the labels List. |
String |
selectDataType(Object definingObject)
Ask the user what data type to use |
String |
selectDataType(Object definingObject,
String label)
Ask the user what data type to use |
List |
selectUserChoices(String msg,
List userChoices)
Select a set of Strings, one for each label (String) contained within the userChoices List. |
| Methods inherited from interface ucar.unidata.idv.IdvContext |
|---|
getColorProperty, getProperty, getProperty |
| Method Detail |
|---|
IntegratedDataViewer getIdv()
List getDataSources()
DataSource objects currently held
List getAllDataSources()
DataSource objects currently held, including
the formula data source
List selectDataChoices(List labels)
DataChoice-s, one for each label (String)
contained within the labels List. This may return null
to denote a user cancellation.
labels - labels to associate with choices
Object getPreference(String pref)
pref - The name of the preference
List selectUserChoices(String msg,
List userChoices)
msg - message promptuserChoices - list of user choices
void dataSourceChanged(DataSource source)
source - The data source that changedboolean loadDataSource(DataSource dataSource)
DataSource. For the IDV this entails
displaying the DataSource in the jtrees and menus, etc.
dataSource - the DataSource to load
JythonManager getJythonManager()
JythonManager.
This is the class that manages the
set of jython interpreters, etc.,
IdvResourceManager getResourceManager()
IdvResourceManager.
This is the class that manages the
set of idv resources etc.,
XmlObjectStore getObjectStore()
XmlObjectStore that is used
to get and store persistent user state.
String selectDataType(Object definingObject)
definingObject - defines the data source to be created
String selectDataType(Object definingObject,
String label)
definingObject - defines the data source to be createdlabel - the label
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||