|
||||||||||
| 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
edu.wisc.ssec.mcidasv.chooser.HydraChooser
public class HydraChooser
| Nested Class Summary | |
|---|---|
class |
HydraChooser.MyFileChooser
An extension of JFileChooser |
| 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 | |
|---|---|
private Element |
chooserNode
|
private String |
dfltDataSourceId
The chooser xml can specify a datasourceid attribute. |
private JFileChooser |
fileChooser
|
private IntegratedDataViewer |
idv
|
| 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, statusLabel |
| 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 | |
|---|---|
HydraChooser(IdvChooserManager mgr,
Element root)
Create the chooser with the given manager and xml |
|
| Method Summary | |
|---|---|
void |
doLoadInThread()
Override the base class method to catch the do load |
protected JComponent |
doMakeContents()
Make the GUI |
protected JFileChooser |
doMakeFileChooser(String path)
Make the file chooser |
void |
doUpdate()
Override the base class method to catch the do update |
protected JFileChooser |
getFileChooser()
Get the file chooser |
protected String[] |
getFileNames(File[] files)
Convert the given array of File objects to an array of String file names. |
protected String |
getLoadToolTip()
Get the tooltip for the load button |
protected String |
getUpdateToolTip()
Get the tooltip for the update button |
protected void |
selectFiles(File[] files,
File directory)
Handle the selection of the set of files |
protected boolean |
selectFilesInner(File[] files,
File directory)
Handle the selection of the set of files |
| Methods inherited from class ucar.unidata.ui.ChooserPanel |
|---|
actionPerformed, addPropertyChangeListener, canDoUpdate, clearWaitCursor, doHelp, doLoad, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getMessageTemplate, getSimpleMode, getStatusComponent, padLabel, registerStatusComp, revalidate, setHaveData, setHelpPath, setMessageTemplate, setStatus, 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 |
|---|
private Element chooserNode
private JFileChooser fileChooser
private IntegratedDataViewer idv
private String dfltDataSourceId
| Constructor Detail |
|---|
public HydraChooser(IdvChooserManager mgr,
Element root)
mgr - The managerroot - The xml| Method Detail |
|---|
protected String getLoadToolTip()
getLoadToolTip in class ChooserPanelprotected String getUpdateToolTip()
getUpdateToolTip in class ChooserPanelprotected JComponent doMakeContents()
doMakeContents in class ChooserPanelprotected JFileChooser doMakeFileChooser(String path)
path - the initial path
protected final void selectFiles(File[] files,
File directory)
files - The files the user chosedirectory - The directory they chose them fromprotected JFileChooser getFileChooser()
public void doLoadInThread()
doLoadInThread in class ChooserPanelpublic void doUpdate()
doUpdate in class ChooserPanel
protected boolean selectFilesInner(File[] files,
File directory)
throws Exception
files - The files the user chosedirectory - The directory they chose them from
Exceptionprotected String[] getFileNames(File[] files)
files - Selected files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||