|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.ChooserPanel
ucar.unidata.idv.chooser.IdvChooser
ucar.unidata.idv.chooser.FileChooser
edu.wisc.ssec.mcidasv.chooser.FileChooser
edu.wisc.ssec.mcidasv.chooser.PollingFileChooser
public class PollingFileChooser
A class for choosing files that can be polled.
Nested Class Summary | |
---|---|
class |
PollingFileChooser.MyDirectoryChooser
An extension of JFileChooser |
Nested classes/interfaces inherited from class ucar.unidata.idv.chooser.FileChooser |
---|
FileChooser.MyFileChooser |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
ATTR_DIRECTORY
Any initial file system path to start with |
static String |
ATTR_INTERVAL
Polling interval |
static String |
ATTR_TITLE
The title attribute |
(package private) int |
directoryCount
|
(package private) int |
fileCount
|
private JTextField |
filePathWidget
file path widget accessible to everyone |
private JTextField |
filePatternWidget
file pattern widget accessible to everyone |
(package private) boolean |
isDirectory
Keep track of what was selected and update status accordingly |
private PollingInfo |
pollingInfo
polling info |
Fields inherited from class edu.wisc.ssec.mcidasv.chooser.FileChooser |
---|
ATTR_SELECT_DSID, bottomPanel, buttonPressed, centerPanel, fileChooser, idv, path, topPanel |
Fields inherited from class ucar.unidata.idv.chooser.FileChooser |
---|
allowDirectorySelectionCbx, ATTR_DATASOURCEID, ATTR_DSCOMP, ATTR_FILECOUNT, ATTR_FILEPATTERN, ATTR_FILTERS, ATTR_PATH, ATTR_POLLON, ATTR_SHOWPATTERNFIELD, patternFld, recentFilesCbx |
Fields inherited from class ucar.unidata.idv.chooser.IdvChooser |
---|
ATTR_ID, ATTR_SHOWDETAILS, dirHistoryCbx, ignoreDirHistory, NULL_PROPERTIES, NULL_STRING, PREF_ADDESERVERS, PREF_CATALOGLIST, PREF_DEFAULTDIR, PREF_IMAGEDESCLIST, PREF_POLLINGINFO, PREF_RADARDESCLIST, PREF_TDSPOINTOBSERVER, PREF_TDSRADARSERVER, PROP_CHOOSER_MAPS, PROP_CHOOSER_PROJECTION_BOUNDS, PROP_CHOOSERCLASSNAME, PROP_STATUS_BACKGROUND, PROP_STATUS_FOREGROUND, PROP_STATUS_TEMPLATE, stationMap |
Fields inherited from class ucar.unidata.ui.ChooserPanel |
---|
cancelButton, CMD_LOAD, contents, GRID_INSETS, GRID_SPACING, GRID_SPACING_H, GRID_SPACING_V, haveData, helpPath, loadButton, MAP_COLOR, simpleMode |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PollingFileChooser(IdvChooserManager mgr,
Element root)
Create the PollingFileChooser, passing in the manager and the xml element from choosers.xml |
Method Summary | |
---|---|
private String |
basename(String path)
Emulate basename() |
void |
doLoadInThread()
Override the base class method to catch the do load This directly handles loading directories and passes off files to selectFiles() and selectFilesInner() |
protected JFileChooser |
doMakeDirectoryChooser(String path)
Make the file chooser |
void |
doUpdate()
Override the base class method to catch the do update. |
protected JPanel |
getBottomPanel()
Get the bottom panel for the chooser |
protected JPanel |
getCenterPanel()
Get the center panel for the chooser |
protected String |
getLoadToolTip()
Get the tooltip for the load button |
private JPanel |
processPollingOption(JLabel label,
JPanel panel)
Process PollingInfo GUI components based on their label and properties Turn it into a nicely-formatted labeled panel |
private JPanel |
processPollingOptions(List comps)
Turn PollingInfo options into a nicely-formatted panel |
protected boolean |
selectFilesInner(File[] files,
File directory)
Handle the selection of the set of files Copy from IDV FileChooser, add ability to name and poll |
protected void |
updateStatus()
Set the status message appropriately |
Methods inherited from class edu.wisc.ssec.mcidasv.chooser.FileChooser |
---|
doMakeContents, getAccessory, getAllowMultiple, getDataSourceId, getDataSourcesComponent, getDataSourcesLabel, getTopComponents, getTopPanel, setHaveData, setStatus |
Methods inherited from class ucar.unidata.idv.chooser.FileChooser |
---|
checkRecentPatternWidgetsEnable, doMakeFileChooser, getAllowDirectorySelectionCbx, getButtonLabels, getFileChooser, getFileCount, getFileNames, getFilePattern, getRecentFilesComponent, getRecentFilesComponent, getUpdateToolTip, selectFiles, shouldShowRecentComponent |
Methods inherited from class ucar.unidata.ui.ChooserPanel |
---|
actionPerformed, addPropertyChangeListener, canDoUpdate, clearWaitCursor, doHelp, doLoad, firePropertyChange, getDefaultButtons, getHaveData, getLoadCommandName, getMessageTemplate, getSimpleMode, getStatusComponent, padLabel, registerStatusComp, revalidate, setHelpPath, setMessageTemplate, setStatus, showNormalCursor, showWaitCursor |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ATTR_DIRECTORY
public static final String ATTR_INTERVAL
public static final String ATTR_TITLE
private PollingInfo pollingInfo
private JTextField filePathWidget
private JTextField filePatternWidget
boolean isDirectory
int directoryCount
int fileCount
Constructor Detail |
---|
public PollingFileChooser(IdvChooserManager mgr, Element root)
mgr
- The managerroot
- The xml rootMethod Detail |
---|
protected JFileChooser doMakeDirectoryChooser(String path)
path
- the initial path
public void doLoadInThread()
doLoadInThread
in class FileChooser
protected boolean selectFilesInner(File[] files, File directory) throws Exception
selectFilesInner
in class FileChooser
Exception
private String basename(String path)
protected String getLoadToolTip()
getLoadToolTip
in class FileChooser
public void doUpdate()
doUpdate
in class FileChooser
private JPanel processPollingOption(JLabel label, JPanel panel)
private JPanel processPollingOptions(List comps)
protected void updateStatus()
updateStatus
in class FileChooser
protected JPanel getCenterPanel()
getCenterPanel
in class FileChooser
protected JPanel getBottomPanel()
getBottomPanel
in class FileChooser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |