|
||||||||||
| 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
public abstract class IdvChooser
This is the base class of all Chooser classes.
| Nested Class Summary |
|---|
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
ATTR_ID
Name of the id attribute in the choosers.xml |
static String |
ATTR_SHOWDETAILS
Name of the details attribute in the choosers.xml |
protected JComboBox |
dirHistoryCbx
For the dir history |
protected boolean |
ignoreDirHistory
For the dir history |
static Hashtable |
NULL_PROPERTIES
Can pass in null properties. |
static String |
NULL_STRING
Like above, a handy way to pass in a null string |
static String |
PREF_ADDESERVERS
Used by derived classes to save the list of adde servers |
static String |
PREF_CATALOGLIST
Used by derived classes to save the list of catalogs |
static String |
PREF_DEFAULTDIR
Used by derived classes to save the last directory the user was in |
static String |
PREF_IMAGEDESCLIST
Used by derived classes to save the list of image descriptors |
static String |
PREF_POLLINGINFO
Saves off the pollinginfo_ |
static String |
PREF_RADARDESCLIST
Used by derived classes to save the list of radar descriptors |
static String |
PREF_TDSRADARSERVER
Used by derived classes to save the list of tds radar descriptors |
static String |
PROP_CHOOSER_MAPS
Where we get the maps |
static String |
PROP_CHOOSER_PROJECTION_BOUNDS
Where we get the projection bounds |
protected StationLocationMap |
stationMap
station location map |
| Fields inherited from class ucar.unidata.ui.ChooserPanel |
|---|
cancelButton, CMD_LOAD, contents, GRID_INSETS, GRID_SPACING, 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 | |
|---|---|
IdvChooser(IdvChooserManager chooserManager,
Element chooserNode)
Create the chooser |
|
IdvChooser(IntegratedDataViewer idv,
Element chooserNode)
Create the chooser |
|
IdvChooser(IntegratedDataViewer idv,
IdvChooserManager chooserManager,
Element chooserNode)
Create the chooser |
|
| Method Summary | |
|---|---|
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 |
JComponent |
decorateButtons(JComponent buttons)
Add extra components to "decorate" the button panel |
void |
doCancel()
Gets called when the user presses Cancel in multipleSelect mode This can get overwritten by a derived class to do something. |
void |
doClose()
Close the chooser window |
static void |
errorMessage(String msg)
Helper method to show a user error message |
protected String |
getAttribute(String name,
String dflt)
Utility to get the attribute from the chooser xml node. |
JComponent |
getContents()
Create and return the GUI contents. |
DataManager |
getDataManager()
Return the DataManager |
protected String |
getDataSourceId()
If the dataSources combo box is non-null then return the data source id the user selected. |
protected String |
getDataSourceId(JComboBox dataSourcesCbx)
Get the data source ID for the particular item selected in the box |
protected void |
getDataSourceProperties(Hashtable ht)
Get the properties from the datasource |
protected JComboBox |
getDataSourcesComponent()
Return the component that holds the dataSources combo box |
protected JComboBox |
getDataSourcesComponent(boolean justFileSources)
Return the component that holds the dataSources combo box |
static JComboBox |
getDataSourcesComponent(boolean justFileSources,
DataManager dataManager)
Return the component that holds the dataSources combo box |
static JComboBox |
getDataSourcesComponent(boolean justFileSources,
DataManager dataManager,
boolean addLucky)
Get the component for listing data source types |
JComponent |
getDefaultButtons(ActionListener listener)
Get the default buttons. |
protected String |
getDefaultDisplayType()
Get the default display type |
protected String |
getDefaultMap()
Get the default map to be used. |
protected 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. |
String |
getId()
Return the id |
IntegratedDataViewer |
getIdv()
Getter method to return the IDV |
String |
getMenuTitle()
Get the title to use for menu entries. |
PreferenceList |
getPreferenceList(String listProp)
Find the PreferenceList associated
with the given property. |
PreferenceList |
getPreferenceList(String listProp,
boolean mergeTheIdvProperty)
Find the PreferenceList associated
with the given property. |
PreferenceList |
getPreferenceList(String listProp,
boolean mergeTheIdvProperty,
List butNotThese)
Find the PreferenceList associated
with the given listProp. |
PreferenceList |
getPreferenceList(String listProp,
boolean mergeTheIdvProperty,
String butNotThisOne)
Find the PreferenceList associated
with the given listProp. |
boolean |
getProperty(String name,
boolean dflt)
Utility to get a boolean property |
String |
getProperty(String name,
String dflt)
Utility to get a String property |
List |
getPropList(String property,
boolean mergeTheIdvProperty)
Find the list (of Strings) defined by the property name |
protected String |
getSelectedStation()
Get the first seleted station or null if none selected. |
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 |
String |
getTitle()
Get the title |
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 |
void |
logException(String msg,
Exception exc)
Helper method that calls LogUtil.printException |
protected boolean |
makeDataSource(Object definingObject,
Hashtable properties)
Create the data source defined by the given definingObject (e.g., a string filename, a list of images, etc. |
protected boolean |
makeDataSource(Object definingObject,
String dataType,
Hashtable properties)
Create the data source defined by the given definingObject (ex: a string filename, a list of images). |
List |
makeTimeMenus(ActionListener listener)
Make time menus |
protected void |
newSelectedStations(List stations)
Notify of new selected stations. |
protected void |
resetDataSourceId()
Clear the dataSources combo box |
void |
setDataSourceListener(ActionListener 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 Object |
startTask()
|
protected void |
stopTask(Object taskId)
|
protected boolean |
stopTaskAndIsOk(Object taskId)
|
protected boolean |
taskOk(Object taskId)
|
protected void |
updateStatus()
_more_ |
static void |
userMessage(String msg)
Helper method to show a user message |
protected boolean |
usingStations()
Is this chooser using the station map |
| Methods inherited from class ucar.unidata.ui.ChooserPanel |
|---|
actionPerformed, addPropertyChangeListener, clearWaitCursor, doHelp, doLoad, doLoadInThread, doMakeContents, doUpdate, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getLoadToolTip, getSimpleMode, getStatusComponent, getStatusLabel, getUpdateToolTip, registerStatusComp, revalidate, setHaveData, setHelpPath, setStatus, setStatus |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |