Class DataTreeDialog

java.lang.Object
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 Details

    • 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
    • DataTreeDialog

      public DataTreeDialog(IntegratedDataViewer idv, Component src, List operands, List dataSources, List selectedDataChoices, boolean includeDataSubsetWidget)
      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
      includeDataSubsetWidget - true to include the data subset widget
  • Method Details

    • 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