public interface DataContext extends IdvContext
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.Modifier and Type | Method and Description |
---|---|
void |
dataSourceChanged(DataSource source)
This method gets called when something changed in the data source.
|
java.util.List |
getAllDataSources()
Return the list of
DataSource objects currently held, including
the formula data source |
java.util.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. |
java.lang.Object |
getPreference(java.lang.String pref)
Get the given user preference
|
IdvResourceManager |
getResourceManager()
Return the
IdvResourceManager . |
boolean |
loadDataSource(DataSource dataSource)
Add the given
DataSource . |
java.util.List |
selectDataChoices(java.util.List labels)
Select a set of
DataChoice -s, one for each label (String)
contained within the labels List. |
java.lang.String |
selectDataType(java.lang.Object definingObject)
Ask the user what data type to use
|
java.lang.String |
selectDataType(java.lang.Object definingObject,
java.lang.String label)
Ask the user what data type to use
|
java.util.List |
selectUserChoices(java.lang.String msg,
java.util.List userChoices)
Select a set of Strings, one for each label (String)
contained within the userChoices List.
|
getColorProperty, getProperty, getProperty
IntegratedDataViewer getIdv()
java.util.List getDataSources()
DataSource
objects currently heldjava.util.List getAllDataSources()
DataSource
objects currently held, including
the formula data sourcejava.util.List selectDataChoices(java.util.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 choicesjava.lang.Object getPreference(java.lang.String pref)
pref
- The name of the preferencejava.util.List selectUserChoices(java.lang.String msg, java.util.List userChoices)
msg
- message promptuserChoices
- list of user choicesvoid 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 loadJythonManager 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.java.lang.String selectDataType(java.lang.Object definingObject)
definingObject
- defines the data source to be createdjava.lang.String selectDataType(java.lang.Object definingObject, java.lang.String label)
definingObject
- defines the data source to be createdlabel
- the label