public class DataTreeDialog
extends java.lang.Object
implements java.awt.event.ActionListener
DataTree
s
for when the user is choosing operands for a formula or when
a display is changing parameters.
This has a list of String labels and param names and constructs a gui consisting of one DataTree for each label/param name
Constructor and Description |
---|
DataTreeDialog(IntegratedDataViewer idv,
java.awt.Component src,
java.util.List operands,
java.util.List dataSources,
java.util.List selectedDataChoices)
Create the dialog
|
DataTreeDialog(IntegratedDataViewer idv,
java.awt.Component src,
java.util.List operands,
java.util.List dataSources,
java.util.List selectedDataChoices,
boolean includeDataSubsetWidget)
Create the dialog
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Handle UI actions
|
void |
addMultiple(java.lang.Integer index)
Add into the index'th list
|
void |
dispose()
Remove the data trees and close the window.
|
void |
doOk()
User pressed ok.
|
java.util.List |
getSelected()
Get the list of selected
DataChoice -s |
public DataTreeDialog(IntegratedDataViewer idv, java.awt.Component src, java.util.List operands, java.util.List dataSources, java.util.List selectedDataChoices)
idv
- Reference to the IDVsrc
- Component to place ourselves nearoperands
- List of DataOperand-sdataSources
- List of data sourcesselectedDataChoices
- list of already selected data choicespublic DataTreeDialog(IntegratedDataViewer idv, java.awt.Component src, java.util.List operands, java.util.List dataSources, java.util.List selectedDataChoices, boolean includeDataSubsetWidget)
idv
- Reference to the IDVsrc
- Component to place ourselves nearoperands
- List of DataOperand-sdataSources
- List of data sourcesselectedDataChoices
- list of already selected data choicesincludeDataSubsetWidget
- true to include the data subset widgetpublic void addMultiple(java.lang.Integer index)
index
- Which listpublic java.util.List getSelected()
DataChoice
-spublic void dispose()
public void doOk()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The event