ucar.unidata.idv.ui
Class DataTreeDialog

java.lang.Object
  extended by ucar.unidata.idv.ui.DataTreeDialog
All Implemented Interfaces:
ActionListener, EventListener

public class DataTreeDialog
extends Object
implements ActionListener

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
DataTreeDialog(IntegratedDataViewer idv, Component src, List operands, List dataSources, List selectedDataChoices)
          Create the dialog
 
Method Summary
 void actionPerformed(ActionEvent event)
          Handle UI actions
 void addMultiple(Integer index)
          Add into the index'th list
 void dispose()
          Remove the data trees and close the window.
 void doOk()
          User pressed ok.
 List getSelected()
          Get the list of selected DataChoice-s
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTreeDialog

public DataTreeDialog(IntegratedDataViewer idv,
                      Component src,
                      List operands,
                      List dataSources,
                      List selectedDataChoices)
Create the dialog

Parameters:
idv - Reference to the IDV
src - Component to place ourselves near
operands - List of DataOperand-s
dataSources - List of data sources
selectedDataChoices - list of already selected data choices
Method Detail

addMultiple

public void addMultiple(Integer index)
Add into the index'th list

Parameters:
index - Which list

getSelected

public List getSelected()
Get the list of selected DataChoice-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

public void actionPerformed(ActionEvent event)
Handle UI actions

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The event