Class DataSelectionComponent

java.lang.Object
ucar.unidata.data.DataSelectionComponent
Direct Known Subclasses:
AddeImageAdvancedPanel, AddeImageDataSelection.AddeImageAdvancedPanel, AddeImageDataSelection.AddeImagePreviewPanel, AddeImagePreviewPanel, AddeImageSelection, PointDataSource.PlotModelSelectionComponent

public abstract class DataSelectionComponent extends Object
Used by a display control and field selector to show arbitrary data selection stuff. This is used to pass information into a control or data source.
  • Field Details

    • dataSelection

      protected DataSelection dataSelection
      We can be used by a display control and this is the control's data selection
  • Constructor Details

    • DataSelectionComponent

      public DataSelectionComponent(String name)
      ctor
      Parameters:
      name - name
  • Method Details

    • getContents

      public JComponent getContents()
      Make if needed and return the gui contents
      Returns:
      gui contents
    • getContents

      public JComponent getContents(DataSelection dataSelection)
      Make if needed and return the gui contents
      Parameters:
      dataSelection - If created by a display control this is the control's dataselection
      Returns:
      gui contents
    • doMakeContents

      protected abstract JComponent doMakeContents()
      Hook method to make the contents
      Returns:
      gui contents
    • applyToDataSelection

      public abstract void applyToDataSelection(DataSelection dataSelection)
      Apply settings to the data selection
      Parameters:
      dataSelection - data selection to apply to
    • getName

      public String getName()
      get name
      Returns:
      name
    • getShowInControlProperties

      public boolean getShowInControlProperties()
      Should this show in the control properties, subclasses can override as needed.
      Returns:
      true