public abstract class IdvChooser extends ChooserPanel implements IdvConstants
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_ID
Name of the id attribute in the choosers.xml
|
static java.lang.String |
ATTR_SHOWDETAILS
Name of the details attribute in the choosers.xml
|
protected javax.swing.JComboBox |
dirHistoryCbx
For the dir history
|
protected boolean |
ignoreDirHistory
For the dir history
|
static java.util.Hashtable |
NULL_PROPERTIES
Can pass in null properties.
|
static java.lang.String |
NULL_STRING
Like above, a handy way to pass in a null string
|
static java.lang.String |
PREF_ADDESERVERS
Used by derived classes to save the list of adde servers
|
static java.lang.String |
PREF_CATALOGLIST
Used by derived classes to save the list of catalogs
|
static java.lang.String |
PREF_DEFAULTDIR
Used by derived classes to save the last directory the user was in
|
static java.lang.String |
PREF_IMAGEDESCLIST
Used by derived classes to save the list of image descriptors
|
static java.lang.String |
PREF_POLLINGINFO
Saves off the pollinginfo_
|
static java.lang.String |
PREF_RADARDESCLIST
Used by derived classes to save the list of radar descriptors
|
static java.lang.String |
PREF_TDSPOINTOBSERVER
Used by derived classes to save the list of tds point ob servers
|
static java.lang.String |
PREF_TDSRADARSERVER
Used by derived classes to save the list of tds radar servers
|
static java.lang.String |
PROP_CHOOSER_MAPS
Where we get the maps
|
static java.lang.String |
PROP_CHOOSER_PROJECTION_BOUNDS
Where we get the projection bounds
|
static java.lang.String |
PROP_CHOOSERCLASSNAME
_more_
|
static java.lang.String |
PROP_STATUS_BACKGROUND
status background color
|
static java.lang.String |
PROP_STATUS_FOREGROUND
status foreground color
|
static java.lang.String |
PROP_STATUS_TEMPLATE
status template
|
protected StationLocationMap |
stationMap
station location map
|
cancelButton, CMD_LOAD, contents, GRID_INSETS, GRID_SPACING, GRID_SPACING_H, GRID_SPACING_V, haveData, helpPath, loadButton, MAP_COLOR, simpleMode, statusLabel
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ARG_B64BUNDLE, ARG_B64ISL, ARG_BUNDLE, ARG_CATALOG, ARG_CHOOSER, ARG_CLEARDEFAULT, ARG_CODE, ARG_CONNECT, ARG_CURRENTTIME, ARG_DATA, ARG_DEBUG, ARG_DEFAULT, ARG_DISPLAY, ARG_DXML, ARG_FIXEDTIME, ARG_HELP, ARG_IMAGE, ARG_IMAGESERVER, ARG_INSTALLPLUGIN, ARG_ISLFILE, ARG_ISLINTERACTIVE, ARG_LISTRESOURCES, ARG_MAINCLASS, ARG_MOVIE, ARG_MSG_DEBUG, ARG_MSG_RECORD, ARG_NODEFAULT, ARG_NOERRORSINGUI, ARG_NOGUI, ARG_NOONEINSTANCE, ARG_NOPLUGINS, ARG_NOPREF, ARG_ONEINSTANCEPORT, ARG_PLUGIN, ARG_PORT, ARG_PRINTJNLP, ARG_PROPERTIES, ARG_SCRIPT, ARG_SERVER, ARG_SETFILES, ARG_SITEPATH, ARG_TEMPLATE, ARG_TEST, ARG_TESTEVAL, ARG_TRACE, ARG_TRACEONLY, ARG_USERPATH, DEFAULT_DATE_FORMAT, DEFAULT_DOCPATH, DEFAULT_TIMEZONE, FILTER_CPT, FILTER_ISL, FILTER_JNLP, FILTER_XIDV, FILTER_XIDVZIDV, FILTER_XML, FILTER_ZIDV, ID_COMMANDSTORUN, ID_DATASOURCES, ID_DISPLAYCONTROLS, ID_IDV, ID_JYTHON, ID_MESSAGE, ID_MISCHASHTABLE, ID_NCIDV_VERSION, ID_VERSION, ID_VIEWMANAGERS, ID_WINDOWS, INITIAL_PROBE_EARTHLOCATION, NULL_DATA_SELECTION, PREF_APPEARANCEMODE, PREF_ARCHIVEDIR, PREF_ARCHIVENAME, PREF_AUTODISPLAYS_ENABLE, PREF_AUTODISPLAYS_SHOWGUI, PREF_AUTOSELECTDATA, PREF_CACHESIZE, PREF_CONTROLSINTABS, PREF_DATAPREFIX, PREF_DATE_FORMAT, PREF_DISTANCEUNIT, PREF_DOCACHE, PREF_EMBEDDATACHOOSERINDASHBOARD, PREF_EMBEDFIELDSELECTORINDASHBOARD, PREF_EMBEDLEGENDINDASHBOARD, PREF_EMBEDQUICKLINKSINDASHBOARD, PREF_EVENT_KEYBOARDMAP, PREF_EVENT_MOUSEMAP, PREF_EVENT_WHEELMAP, PREF_FAST_RENDER, PREF_FIELD_CACHETHRESHOLD, PREF_FILEREADDIR, PREF_FILEWRITEDIR, PREF_GEOMETRY_BY_REF, PREF_HISTORY, PREF_IMAGE_BY_REF, PREF_LARGE_REMOTE_DATA_WARN, PREF_LASTVERSION, PREF_LATLON_FORMAT, PREF_LEGEND_SHOWICONS, PREF_LOCALE, PREF_LOOKANDFEEL, PREF_MAXIMAGESIZE, PREF_MEMORY, PREF_NPOT_IMAGE, PREF_OPEN_ASK, PREF_OPEN_MERGE, PREF_OPEN_REMOVE, PREF_PROJ_LIST, PREF_SAMPLINGMODE, PREF_SHOWCONTROLWINDOW, PREF_SHOWDASHBOARD, PREF_SHOWDECODEDIALOG, PREF_SHOWHIDDENFILES, PREF_SHOWQUITCONFIRM, PREF_SITEPATH, PREF_THREADS_DATA, PREF_THREADS_RENDER, PREF_TIMEZONE, PREF_VERTICALCS, PREF_VERTICALUNIT, PREF_WINDOW_SHOWTOOLBAR, PREF_ZIDV_ASK, PREF_ZIDV_DIRECTORY, PREF_ZIDV_SAVETOTMP, PROP_3DMODE, PROP_ABOUTTEXT, PROP_APPRESOURCEPATH, PROP_CHOOSERS, PROP_CHOOSERS_ALL, PROP_CONTROLDESCRIPTORS, PROP_CONTROLDESCRIPTORS_ALL, PROP_DATAHOLDERBOUNDS, PROP_DEFAULTLOCATIONS, PROP_DISPLAYLIST_GROUP, PROP_FIXFILELOCKUP, PROP_JNLPCODEBASE, PROP_JNLPTEMPLATE, PROP_JNLPTITLE, PROP_LOADINGXML, PROP_MAP_GLOBE_LEVEL, PROP_MAP_MAP_LEVEL, PROP_MINIMUMFRAMECYCLETIME, PROP_MONITORPORT, PROP_OLDCONTROLDESCRIPTORS, PROP_ONEINSTANCEPORT, PROP_PREFERENCES, PROP_PROJ_NAME, PROP_RESOURCEFILES, PROP_SHOWCLOCK_DASH, PROP_SHOWCLOCK_VIEW, PROP_SHOWDASHBOARD, PROP_SHOWDATATREE, PROP_SHOWFORMULAS, PROP_SHOWSPLASH, PROP_SPLASHICON, PROP_UI_DESKTOP, PROP_USE_DISPLAYAREA, PROP_USE_TIMEDRIVER, PROP_VERSIONFILE, PROP_WINDOW_SCREENSIZEOFFSET, PROP_WINDOW_SIZEHEIGHT, PROP_WINDOW_SIZEWIDTH, PROP_WINDOW_USESCREENSIZE, SUFFIX_BAT, SUFFIX_CPT, SUFFIX_ISL, SUFFIX_JNLP, SUFFIX_RBI, SUFFIX_SH, SUFFIX_XIDV, SUFFIX_XML, SUFFIX_ZIDV
Constructor and Description |
---|
IdvChooser(IdvChooserManager chooserManager,
org.w3c.dom.Element chooserNode)
Create the chooser
|
IdvChooser(IntegratedDataViewer idv,
org.w3c.dom.Element chooserNode)
Create the chooser
|
IdvChooser(IntegratedDataViewer idv,
IdvChooserManager chooserManager,
org.w3c.dom.Element chooserNode)
Create the chooser
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearSelectedStations()
Clear any selected stations.
|
protected void |
clearStations()
Clear all stations in the station map.
|
protected void |
closeChooser()
Close the chooser window
|
protected StationLocationMap |
createStationMap()
Create the station map
|
javax.swing.JComponent |
decorateButtons(javax.swing.JComponent buttons)
Add extra components to "decorate" the button panel
|
void |
doCancel()
Handle a cancel
|
void |
doClose()
Close the chooser window
|
static void |
errorMessage(java.lang.String msg)
Helper method to show a user error message
|
protected java.lang.String |
getAttribute(java.lang.String name,
java.lang.String dflt)
Utility to get the attribute from the chooser xml node.
|
javax.swing.JComponent |
getContents()
Create and return the GUI contents.
|
DataManager |
getDataManager()
Return the
DataManager |
DataSource |
getDataSource()
Get the DataSource property.
|
protected java.lang.String |
getDataSourceId()
If the dataSources combo box is non-null then
return the data source id the user selected.
|
protected java.lang.String |
getDataSourceId(javax.swing.JComboBox dataSourcesCbx)
Get the data source ID for the particular item selected in the box
|
protected void |
getDataSourceProperties(java.util.Hashtable ht)
Get the properties from the datasource
|
protected javax.swing.JComboBox |
getDataSourcesComponent()
Return the component that holds the dataSources combo box
|
protected javax.swing.JComboBox |
getDataSourcesComponent(boolean justFileSources)
Return the component that holds the dataSources combo box
|
static javax.swing.JComboBox |
getDataSourcesComponent(boolean justFileSources,
DataManager dataManager)
Return the component that holds the dataSources combo box
|
static javax.swing.JComboBox |
getDataSourcesComponent(boolean justFileSources,
DataManager dataManager,
boolean addLucky)
Get the component for listing data source types
|
javax.swing.JComponent |
getDefaultButtons(java.awt.event.ActionListener listener)
Get the default buttons
|
protected java.lang.String |
getDefaultDisplayType()
Get the default display type
|
protected java.lang.String |
getDefaultMap()
Get the default map to be used.
|
protected java.util.List |
getDefaultMaps()
Get the default map to be used.
|
protected ucar.unidata.geoloc.ProjectionImpl |
getDefaultProjection()
Create and return the default projection used for the station map.
|
protected ucar.unidata.geoloc.ProjectionRect |
getDefaultProjectionRect()
Create and return the default projection rect used for the station map.
|
protected boolean |
getHaveStations()
Do we have stations
|
java.lang.String |
getId()
Return the id
|
IntegratedDataViewer |
getIdv()
Getter method to return the IDV
|
java.lang.String |
getMenuTitle()
Get the title to use for menu entries.
|
PreferenceList |
getPreferenceList(java.lang.String listProp)
Find the
PreferenceList associated
with the given property. |
PreferenceList |
getPreferenceList(java.lang.String listProp,
boolean mergeTheIdvProperty)
Find the
PreferenceList associated
with the given property. |
PreferenceList |
getPreferenceList(java.lang.String listProp,
boolean mergeTheIdvProperty,
java.util.List butNotThese)
Find the
PreferenceList associated
with the given listProp. |
PreferenceList |
getPreferenceList(java.lang.String listProp,
boolean mergeTheIdvProperty,
java.lang.String butNotThisOne)
Find the
PreferenceList associated
with the given listProp. |
boolean |
getProperty(java.lang.String name,
boolean dflt)
Utility to get a boolean property
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String dflt)
Utility to get a String property
|
java.util.List |
getPropList(java.lang.String property,
boolean mergeTheIdvProperty)
Find the list (of Strings) defined by the property name
|
protected java.lang.String |
getSelectedStation()
Get the first seleted station or null if none selected.
|
java.util.List |
getSelectedStations()
Get list of selected stations, objects of
ucar/unidata/metdata/NamedStationImpl class
|
boolean |
getShowInMenu()
Should this chooser entry be shown in the file menu
|
protected StationLocationMap |
getStationMap()
Create (if needed) and return the station map
|
protected javax.swing.JLabel |
getStatusLabel()
Create (if needed) and return the JLabel that shows the status messages.
|
java.awt.Color |
getStatusLabelBackground()
get the status label background color
|
java.awt.Color |
getStatusLabelForeground()
Get the status label foreground color
|
java.lang.String |
getTitle()
Get the title
|
org.w3c.dom.Element |
getXmlNode()
Get the xml node that defined this chooser
|
protected boolean |
haveStationSelected()
If there is a station map created then return whether there are any
stations selected.
|
protected void |
init()
Initialize after creation
|
protected void |
initChooserPanel(ChooserPanel chooserPanel)
Initialize the given panel.
|
protected void |
initStationMap(StationLocationMap stationMap)
Initialize the stations
|
boolean |
isReloadable()
_more_
|
void |
logException(java.lang.String msg,
java.lang.Exception exc)
Helper method that calls LogUtil.printException
|
protected boolean |
makeDataSource(java.lang.Object definingObject,
java.util.Hashtable properties)
Create the data source defined by the given definingObject
(e.g., a string filename, a list of images, etc.
|
protected boolean |
makeDataSource(java.lang.Object definingObject,
java.lang.String dataType,
java.util.Hashtable properties)
Create the data source defined by the given definingObject
(ex: a string filename, a list of images).
|
java.util.List |
makeTimeMenus(java.awt.event.ActionListener listener)
Make time menus
|
protected void |
newSelectedStations(java.util.List stations)
Notify of new selected stations.
|
protected void |
resetDataSourceId()
Clear the dataSources combo box
|
void |
setDataSource(DataSource value)
Set the DataSource property.
|
void |
setDataSourceListener(java.awt.event.ActionListener listener)
Set the data source listener
|
protected boolean |
shouldDoUpdateOnFirstDisplay()
As the name implies should this chooser do call doUpdate the first
time it is painted.
|
void |
showNormalCursor()
show regular cursor
|
void |
showWaitCursor()
show wait cursor
|
protected java.lang.Object |
startTask()
Start the task
|
protected void |
stopTask(java.lang.Object taskId)
Stop the task
|
protected boolean |
stopTaskAndIsOk(java.lang.Object taskId)
See if we can stop the task and it's okay
|
protected boolean |
taskOk(java.lang.Object taskId)
Is the task ok?
|
protected void |
updateStatus()
Update the status
|
static void |
userMessage(java.lang.String msg)
Helper method to show a user message
|
protected boolean |
usingStations()
Is this chooser using the station map
|
actionPerformed, addPropertyChangeListener, canDoUpdate, clearWaitCursor, doHelp, doLoad, doLoadInThread, doMakeContents, doUpdate, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getLoadToolTip, getMessageTemplate, getSimpleMode, getStatusComponent, getUpdateToolTip, padLabel, registerStatusComp, revalidate, setHaveData, setHelpPath, setMessageTemplate, setStatus, setStatus, showNormalCursor, showWaitCursor
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String PROP_CHOOSER_MAPS
public static final java.lang.String PROP_STATUS_FOREGROUND
public static final java.lang.String PROP_STATUS_BACKGROUND
public static final java.lang.String PROP_STATUS_TEMPLATE
public static final java.lang.String PROP_CHOOSER_PROJECTION_BOUNDS
public static final java.lang.String PROP_CHOOSERCLASSNAME
public static final java.util.Hashtable NULL_PROPERTIES
public static final java.lang.String NULL_STRING
public static final java.lang.String PREF_DEFAULTDIR
public static final java.lang.String PREF_POLLINGINFO
public static final java.lang.String PREF_CATALOGLIST
public static final java.lang.String PREF_ADDESERVERS
public static final java.lang.String PREF_IMAGEDESCLIST
public static final java.lang.String PREF_RADARDESCLIST
public static final java.lang.String PREF_TDSRADARSERVER
public static final java.lang.String PREF_TDSPOINTOBSERVER
public static final java.lang.String ATTR_ID
public static final java.lang.String ATTR_SHOWDETAILS
protected boolean ignoreDirHistory
protected javax.swing.JComboBox dirHistoryCbx
protected StationLocationMap stationMap
public IdvChooser(IntegratedDataViewer idv, org.w3c.dom.Element chooserNode)
idv
- The IDVchooserNode
- The Xmlpublic IdvChooser(IdvChooserManager chooserManager, org.w3c.dom.Element chooserNode)
chooserManager
- The manager of all of the chooserschooserNode
- The Xmlpublic IdvChooser(IntegratedDataViewer idv, IdvChooserManager chooserManager, org.w3c.dom.Element chooserNode)
idv
- The IDVchooserManager
- The manager of all of the chooserschooserNode
- The Xmlprotected javax.swing.JLabel getStatusLabel()
getStatusLabel
in class ChooserPanel
public javax.swing.JComponent decorateButtons(javax.swing.JComponent buttons)
buttons
- button panelpublic javax.swing.JComponent getDefaultButtons(java.awt.event.ActionListener listener)
getDefaultButtons
in class ChooserPanel
listener
- the listenerprotected java.lang.String getDefaultDisplayType()
protected void getDataSourceProperties(java.util.Hashtable ht)
ht
- a Hashtable of propertiesprotected java.lang.String getDefaultMap()
protected java.util.List getDefaultMaps()
protected void initStationMap(StationLocationMap stationMap)
stationMap
- The station mapprotected StationLocationMap createStationMap()
protected boolean usingStations()
protected boolean haveStationSelected()
protected void newSelectedStations(java.util.List stations)
stations
- Selected stations.protected StationLocationMap getStationMap()
public java.util.List getSelectedStations()
protected java.lang.String getSelectedStation()
protected void clearSelectedStations()
protected void clearStations()
protected boolean getHaveStations()
protected ucar.unidata.geoloc.ProjectionImpl getDefaultProjection()
protected ucar.unidata.geoloc.ProjectionRect getDefaultProjectionRect()
public java.util.List makeTimeMenus(java.awt.event.ActionListener listener)
listener
- the listener for thispublic org.w3c.dom.Element getXmlNode()
protected java.lang.String getAttribute(java.lang.String name, java.lang.String dflt)
name
- attr namedflt
- default valuepublic java.lang.String getProperty(java.lang.String name, java.lang.String dflt)
name
- property namedflt
- default valuepublic boolean getProperty(java.lang.String name, boolean dflt)
name
- property namedflt
- default valuepublic boolean getShowInMenu()
public java.lang.String getMenuTitle()
public java.lang.String getTitle()
protected void initChooserPanel(ChooserPanel chooserPanel)
chooserPanel
- The panel to initialize.protected javax.swing.JComboBox getDataSourcesComponent()
protected javax.swing.JComboBox getDataSourcesComponent(boolean justFileSources)
justFileSources
- If true then just use data sources that access filespublic static javax.swing.JComboBox getDataSourcesComponent(boolean justFileSources, DataManager dataManager)
justFileSources
- If true then just use data sources that access filesdataManager
- The data managerpublic static javax.swing.JComboBox getDataSourcesComponent(boolean justFileSources, DataManager dataManager, boolean addLucky)
justFileSources
- true for just filesdataManager
- the data manageraddLucky
- true to add the "I'm Feeiling Lucky" optionprotected java.lang.String getDataSourceId()
protected java.lang.String getDataSourceId(javax.swing.JComboBox dataSourcesCbx)
dataSourcesCbx
- the list of source descriptionsprotected void resetDataSourceId()
protected boolean makeDataSource(java.lang.Object definingObject, java.util.Hashtable properties)
definingObject
- What defines the data sourceproperties
- extra propertiespublic void setDataSourceListener(java.awt.event.ActionListener listener)
listener
- the listenerpublic boolean isReloadable()
protected boolean makeDataSource(java.lang.Object definingObject, java.lang.String dataType, java.util.Hashtable properties)
Else the creation is done by looking at the string value of the defining object and seeing if it matches any of the patterns that are defined in datasources.xml
One more way to define what data source to create
is to add the id into the properties Hashable
using DataManager.DATATYPE_ID
definingObject
- What defines the data sourcedataType
- Define the data type to createproperties
- extra propertiesprotected java.lang.Object startTask()
protected void stopTask(java.lang.Object taskId)
taskId
- the task idprotected boolean stopTaskAndIsOk(java.lang.Object taskId)
taskId
- the task idprotected boolean taskOk(java.lang.Object taskId)
taskId
- the task idpublic void showWaitCursor()
showWaitCursor
in class ChooserPanel
public void showNormalCursor()
showNormalCursor
in class ChooserPanel
public void doClose()
doClose
in class ChooserPanel
public void doCancel()
doCancel
in class ChooserPanel
protected void closeChooser()
protected void init()
protected boolean shouldDoUpdateOnFirstDisplay()
public final javax.swing.JComponent getContents()
getContents
in class ChooserPanel
protected void updateStatus()
updateStatus
in class ChooserPanel
public DataManager getDataManager()
DataManager
public java.lang.String getId()
public IntegratedDataViewer getIdv()
public void logException(java.lang.String msg, java.lang.Exception exc)
logException
in class ChooserPanel
msg
- The messageexc
- The exceptionpublic static void errorMessage(java.lang.String msg)
msg
- The messagepublic static void userMessage(java.lang.String msg)
msg
- The messagepublic PreferenceList getPreferenceList(java.lang.String listProp)
PreferenceList
associated
with the given property.listProp
- The property namepublic PreferenceList getPreferenceList(java.lang.String listProp, boolean mergeTheIdvProperty)
PreferenceList
associated
with the given property.listProp
- The property namemergeTheIdvProperty
- If true, then we also lookup the String
property from the IDV and merge it into
the list.public PreferenceList getPreferenceList(java.lang.String listProp, boolean mergeTheIdvProperty, java.lang.String butNotThisOne)
PreferenceList
associated
with the given listProp.listProp
- The property keymergeTheIdvProperty
- If true, then we also lookup
the String property
from the IDV and merge it into the list.butNotThisOne
- If non-null then we don't include this
property. This is used to remove old
catalogs from the XmlChooser's listpublic PreferenceList getPreferenceList(java.lang.String listProp, boolean mergeTheIdvProperty, java.util.List butNotThese)
PreferenceList
associated
with the given listProp.listProp
- The property keymergeTheIdvProperty
- If true, then we also lookup
the String property
from the IDV and merge it into the list.butNotThese
- If non-null or empty then we don't include
these properties. This is used to remove old
values from the listpublic java.util.List getPropList(java.lang.String property, boolean mergeTheIdvProperty)
property
- The property namemergeTheIdvProperty
- If true, then we also lookup the String property
from the IDV and merge it into the list.public java.awt.Color getStatusLabelBackground()
getStatusLabelBackground
in class ChooserPanel
public java.awt.Color getStatusLabelForeground()
getStatusLabelForeground
in class ChooserPanel
public void setDataSource(DataSource value)
value
- The new value for DataSourcepublic DataSource getDataSource()