|
||||||||||
| 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.TimesChooser
ucar.unidata.idv.chooser.adde.AddeChooser
ucar.unidata.idv.chooser.adde.AddePointDataChooser
public class AddePointDataChooser
Selection widget for ADDE point data
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
DATA_TYPE
Property for the data type. |
static String |
DATASET_NAME_KEY
Property for the dataset name key. |
protected JComboBox |
dataTypes
UI widget for selecting data types |
protected JComboBox |
levelBox
a selector for a particular level |
static String |
LEVELS
Property for the number of times |
static String |
SELECTED_LEVEL
Property for the time increment |
protected JComboBox |
stationModelBox
UI widget for selecting station models |
| Fields inherited from class ucar.unidata.idv.chooser.adde.AddeChooser |
|---|
CMD_CONNECT, DATA_NAME_KEY, DEFAULT_COMPRESS, DEFAULT_DEBUG, DEFAULT_PORT, DEFAULT_PROJ, DEFAULT_USER, DEFAULT_VERSION, FILE_PUBLICSRV, groupSelector, ignoreStateChangedEvents, LABEL_DATAINTERVAL, LABEL_DATASET, LABEL_DATATYPE, LABEL_SERVER, LABEL_STATIONS, LABEL_TIMES, MSG_TIMES, NEW_SELECTION, passwords, PROP_ADDEPORT, PROP_COMPRESS, PROP_CYD, PROP_DATANAME, PROP_DAY, PROP_DEBUG, PROP_DESCR, PROP_FILE, PROP_GROUP, PROP_HMS, PROP_NUM, PROP_PARAM, PROP_PORT, PROP_POS, PROP_PROJ, PROP_SELECT, PROP_TIME, PROP_USER, PROP_VERSION, REQ_DATASETINFO, REQ_IMAGEDATA, REQ_IMAGEDIR, REQ_POINTDATA, REQ_TEXT, serverTimeStamp, STATE_CONNECTED, STATE_CONNECTING, STATE_UNCONNECTED, STATUS_ERROR, STATUS_NEEDSLOGIN, STATUS_OK, WIDGET_MUTEX |
| Fields inherited from class ucar.unidata.idv.chooser.TimesChooser |
|---|
drivercbx, selectedDriver, timesComponents, timesContainer |
| 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 | |
|---|---|
AddePointDataChooser(IdvChooserManager mgr,
Element root)
Create a chooser for Adde POINT data |
|
| Method Summary | |
|---|---|
protected void |
appendRequestSelectClause(StringBuffer buf)
Get the select clause for the adde request specific to this type of data. |
boolean |
canDoLevels()
Does this chooser support level selection |
void |
doLoadInThread()
Load in an ADDE point data set based on the PropertyChangeEvent |
protected JComponent |
doMakeContents()
Make the contents for this chooser |
protected void |
enableWidgets()
Enable or disable the GUI widgets based on what has been selected. |
String |
getDataName()
This allows derived classes to provide their own name for labeling, etc. |
String |
getDatasetName()
Get the name of the dataset. |
String |
getDataType()
Get the data type for this chooser |
protected String |
getDayTimeSelectString()
Create the date time selection string for the "select" clause of the ADDE URL. |
protected TwoFacedObject[] |
getDefaultDatasets()
Get an array of TwoFacedObject-s for the datasets. |
protected String |
getDefaultDisplayType()
Get the default display type |
String |
getDefaultStationModel()
Get the default station model for this chooser. |
protected String |
getDescriptor()
Return the currently selected descriptor form the combobox |
protected JComponent |
getExtraRelativeTimeComponent()
Get the extra time widget. |
protected String |
getGroup()
Return the currently selected group form the combobox |
List |
getLevels()
Get the list of possible levels for this chooser. |
protected int |
getNumTimesToSelect()
Get the default number of times to select |
protected String |
getRelativeTimeId()
Get the identifier for relative time. |
float |
getRelativeTimeIncrement()
Get the increment between times for relative time requests |
String |
getRequestUrl()
Get the request URL |
Object |
getSelectedLevel()
Get the selected level |
StationModel |
getSelectedStationModel()
Get the selected station model. |
protected String |
getTimesRequest()
Get the request string for times particular to this chooser |
protected void |
handleConnectionError(Exception excp)
Show the given error to the user. |
void |
handleUpdate()
Update the widget with the latest data. |
protected boolean |
haveTimeSelected()
Are there any times selected. |
protected JPanel |
makeTimesPanel()
Add the 00 & 12Z checkbox to the component. |
void |
readTimes()
Set the list of available times. |
void |
setRelativeTimeIncrement(float increment)
Set the increment between times for relative time requests |
protected void |
updateStatus()
Update labels, enable widgets, etc. |
| Methods inherited from class ucar.unidata.idv.chooser.adde.AddeChooser |
|---|
actionPerformed, addServerComp, addTopComponents, addTopComponents, appendKeyValue, appendMiscKeyValues, canAccessServer, canDoCancel, checkIfServerIsOk, clearOnChange, doConnect, doUpdate, getConnectButton, getDataSetName, getDefaultRelativeTimeIndex, getGoodToGo, getGroupType, getGroupUrl, getLoadToolTip, getMiscKeyProps, getMiscKeywords, getPort, getServer, getServerSelector, getState, getUrl, handleConnect, handleConnectFromThread, handleUnknownDataSetError, handleUpdateFromThread, readGroups, readTextLines, removeGroup, removeServer, saveServerState, setGroups, setState, updateServerList |
| Methods inherited from class ucar.unidata.ui.ChooserPanel |
|---|
addPropertyChangeListener, canDoUpdate, clearWaitCursor, doHelp, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getMessageTemplate, getSimpleMode, getStatusComponent, getUpdateToolTip, 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 |
|---|
public static String DATASET_NAME_KEY
getDatasetName()public static String DATA_TYPE
protected JComboBox dataTypes
protected JComboBox stationModelBox
protected JComboBox levelBox
public static String LEVELS
public static String SELECTED_LEVEL
| Constructor Detail |
|---|
public AddePointDataChooser(IdvChooserManager mgr,
Element root)
mgr - The chooser managerroot - The chooser.xml node| Method Detail |
|---|
protected JComponent doMakeContents()
doMakeContents in class ChooserPanelprotected String getDefaultDisplayType()
getDefaultDisplayType in class IdvChooserpublic void doLoadInThread()
PropertyChangeEvent.
- Overrides:
doLoadInThread in class ChooserPanel
protected JPanel makeTimesPanel()
makeTimesPanel in class TimesChooserprotected JComponent getExtraRelativeTimeComponent()
getExtraRelativeTimeComponent in class TimesChooserpublic StationModel getSelectedStationModel()
protected String getDescriptor()
protected String getGroup()
getGroup in class AddeChooserpublic String getRequestUrl()
public List getLevels()
public Object getSelectedLevel()
protected void appendRequestSelectClause(StringBuffer buf)
buf - The buffer to append topublic boolean canDoLevels()
public void handleUpdate()
throws Exception
handleUpdate in class AddeChooserException - On badnessprotected String getTimesRequest()
public String getDataName()
getDataName in class AddeChooserpublic void readTimes()
readTimes in class AddeChooserprotected int getNumTimesToSelect()
getNumTimesToSelect in class TimesChooserprotected boolean haveTimeSelected()
haveTimeSelected in class TimesChooserprotected String getDayTimeSelectString()
protected String getRelativeTimeId()
public String getDatasetName()
public String getDataType()
getDataType in class AddeChooserpublic float getRelativeTimeIncrement()
getRelativeTimeIncrement in class TimesChooserpublic void setRelativeTimeIncrement(float increment)
increment - time increment (hours)protected void updateStatus()
updateStatus in class AddeChooserprotected void enableWidgets()
enableWidgets in class AddeChooserprotected TwoFacedObject[] getDefaultDatasets()
TwoFacedObject-s for the datasets. The
two faces are the descriptive name and the actual group/descriptor
public String getDefaultStationModel()
protected void handleConnectionError(Exception excp)
handleConnectionError in class AddeChooserexcp - The exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||