public class SoundingFileBrowser extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javax.swing.JPanel |
contents
frame contents
|
static ucar.unidata.util.PatternFileFilter |
FILTER_CMA_UA
PatternFileFilter for CMA upper air files
|
static ucar.unidata.util.PatternFileFilter |
FILTER_NC
PatternFileFilter for upper air netCDF files
|
private static javax.swing.JFrame |
frame
frame for the browse
|
private boolean |
ignoreChangingFile
flag for file changes
|
private ucar.unidata.beans.PropertySet |
propertySet
property set
|
protected javax.swing.JTextField |
selectedFileDisplay
selected file input
|
private ucar.unidata.beans.Property |
soundingAdapterProperty
property for the sounding adapter
|
Constructor and Description |
---|
SoundingFileBrowser()
Construct an object for selecting sounding files starting at
the current directory
|
SoundingFileBrowser(java.lang.String directoryName)
Construct an object for selecting sounding files starting at
the specified directory.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener.
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Adds a property change listener for a named property.
|
protected void |
checkNewFile(java.io.File selectedFile)
Check the status of the file.
|
private javax.swing.JButton |
fileSelectionButton()
Create a file selection button
|
javax.swing.JPanel |
getContents()
Get the contents of this browser.
|
ucar.unidata.data.sounding.SoundingAdapter |
getSoundingAdapter()
Get the SoundingAdapter associated with this browser
|
protected ucar.unidata.beans.Property |
getSoundingAdapterProperty()
Get the SoundingAdapter property
|
static void |
main(java.lang.String[] args)
Test routine.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener.
|
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Removes a property change listener for a named property.
|
public static final ucar.unidata.util.PatternFileFilter FILTER_NC
public static final ucar.unidata.util.PatternFileFilter FILTER_CMA_UA
private ucar.unidata.beans.Property soundingAdapterProperty
private ucar.unidata.beans.PropertySet propertySet
protected javax.swing.JTextField selectedFileDisplay
private boolean ignoreChangingFile
private static javax.swing.JFrame frame
private javax.swing.JPanel contents
SoundingFileBrowser()
SoundingFileBrowser(java.lang.String directoryName)
directoryName
- starting directory to search for files.private javax.swing.JButton fileSelectionButton()
protected void checkNewFile(java.io.File selectedFile)
selectedFile
- file to use for checkingpublic javax.swing.JPanel getContents()
protected ucar.unidata.beans.Property getSoundingAdapterProperty()
public ucar.unidata.data.sounding.SoundingAdapter getSoundingAdapter()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The property change listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The property change listener.public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The property change listener.public void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The property change listener.public static void main(java.lang.String[] args)
args
- name of file or directory if supplied