Package ucar.unidata.idv.ui
Class DataTreeDialog
java.lang.Object
ucar.unidata.idv.ui.DataTreeDialog
- All Implemented Interfaces:
ActionListener,EventListener
This handles popping up a dialog full of
DataTrees
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
- Version:
- $Revision: 1.43 $
- Author:
- Jeff McWhirter
-
Constructor Summary
ConstructorsConstructorDescriptionDataTreeDialog(IntegratedDataViewer idv, Component src, List operands, List dataSources, List selectedDataChoices) Create the dialogDataTreeDialog(IntegratedDataViewer idv, Component src, List operands, List dataSources, List selectedDataChoices, boolean includeDataSubsetWidget) Create the dialog -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Handle UI actionsvoidaddMultiple(Integer index) Add into the index'th listvoiddispose()Remove the data trees and close the window.voiddoOk()User pressed ok.Get the list of selectedDataChoice-s
-
Constructor Details
-
DataTreeDialog
public DataTreeDialog(IntegratedDataViewer idv, Component src, List operands, List dataSources, List selectedDataChoices) Create the dialog- Parameters:
idv- Reference to the IDVsrc- Component to place ourselves nearoperands- List of DataOperand-sdataSources- List of data sourcesselectedDataChoices- list of already selected data choices
-
DataTreeDialog
public DataTreeDialog(IntegratedDataViewer idv, Component src, List operands, List dataSources, List selectedDataChoices, boolean includeDataSubsetWidget) Create the dialog- Parameters:
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 widget
-
-
Method Details
-
addMultiple
Add into the index'th list- Parameters:
index- Which list
-
getSelected
Get the list of selectedDataChoice-s- Returns:
- list of selected data choices
-
dispose
public void dispose()Remove the data trees and close the window. -
doOk
public void doOk()User pressed ok. Get the select data choices from each DataTree and send them off to the listener -
actionPerformed
Handle UI actions- Specified by:
actionPerformedin interfaceActionListener- Parameters:
event- The event
-