edu.wisc.ssec.mcidasv.chooser
Class SoundingFileBrowser

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.chooser.SoundingFileBrowser

public class SoundingFileBrowser
extends Object

A browser for finding netCDF upper air files.

Version:
$Revision$
Author:
Unidata development team

Field Summary
private  JPanel contents
          frame contents
static PatternFileFilter FILTER_CMA_UA
          PatternFileFilter for CMA upper air files
static PatternFileFilter FILTER_NC
          PatternFileFilter for upper air netCDF files
private static JFrame frame
          frame for the browse
private  boolean ignoreChangingFile
          flag for file changes
private  PropertySet propertySet
          property set
protected  JTextField selectedFileDisplay
          selected file input
private  Property soundingAdapterProperty
          property for the sounding adapter
 
Constructor Summary
SoundingFileBrowser()
          Construct an object for selecting sounding files starting at the current directory
SoundingFileBrowser(String directoryName)
          Construct an object for selecting sounding files starting at the specified directory.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a property change listener.
 void addPropertyChangeListener(String name, PropertyChangeListener listener)
          Adds a property change listener for a named property.
protected  void checkNewFile(File selectedFile)
          Check the status of the file.
private  JButton fileSelectionButton()
          Create a file selection button
 JPanel getContents()
          Get the contents of this browser.
 SoundingAdapter getSoundingAdapter()
          Get the SoundingAdapter associated with this browser
protected  Property getSoundingAdapterProperty()
          Get the SoundingAdapter property
static void main(String[] args)
          Test routine.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a property change listener.
 void removePropertyChangeListener(String name, PropertyChangeListener listener)
          Removes a property change listener for a named property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER_NC

public static final PatternFileFilter FILTER_NC
PatternFileFilter for upper air netCDF files


FILTER_CMA_UA

public static final PatternFileFilter FILTER_CMA_UA
PatternFileFilter for CMA upper air files


soundingAdapterProperty

private Property soundingAdapterProperty
property for the sounding adapter


propertySet

private PropertySet propertySet
property set


selectedFileDisplay

protected JTextField selectedFileDisplay
selected file input


ignoreChangingFile

private boolean ignoreChangingFile
flag for file changes


frame

private static JFrame frame
frame for the browse


contents

private JPanel contents
frame contents

Constructor Detail

SoundingFileBrowser

SoundingFileBrowser()
Construct an object for selecting sounding files starting at the current directory


SoundingFileBrowser

SoundingFileBrowser(String directoryName)
Construct an object for selecting sounding files starting at the specified directory.

Parameters:
directoryName - starting directory to search for files.
Method Detail

fileSelectionButton

private JButton fileSelectionButton()
Create a file selection button

Returns:
the file selection button

checkNewFile

protected void checkNewFile(File selectedFile)
Check the status of the file.

Parameters:
selectedFile - file to use for checking

getContents

public JPanel getContents()
Get the contents of this browser.

Returns:
browser contents

getSoundingAdapterProperty

protected Property getSoundingAdapterProperty()
Get the SoundingAdapter property

Returns:
the SoundingAdapter property

getSoundingAdapter

public SoundingAdapter getSoundingAdapter()
Get the SoundingAdapter associated with this browser

Returns:
the associated SoundingAdapter

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener.

Parameters:
listener - The property change listener.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener.

Parameters:
listener - The property change listener.

addPropertyChangeListener

public void addPropertyChangeListener(String name,
                                      PropertyChangeListener listener)
Adds a property change listener for a named property.

Parameters:
name - The name of the property.
listener - The property change listener.

removePropertyChangeListener

public void removePropertyChangeListener(String name,
                                         PropertyChangeListener listener)
Removes a property change listener for a named property.

Parameters:
name - The name of the property.
listener - The property change listener.

main

public static void main(String[] args)
Test routine.

Parameters:
args - name of file or directory if supplied