|
||||||||||
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.UrlChooser
edu.wisc.ssec.mcidasv.chooser.UrlChooser
public class UrlChooser
Allows the user to select a url as a data source
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 | |
---|---|
private JComboBox |
box
The list of urls |
private JTextField |
boxEditor
|
private GuiUtils.CardLayoutPanel |
cardLayoutPanel
panel |
protected IntegratedDataViewer |
idv
Get a handle on the IDV |
private PreferenceList |
prefList
Manages the pull down list of urls |
private boolean |
showBox
Are we showing the combo box |
private JLabel |
statusLabel
|
private JButton |
switchBtn
Swtich |
private JTextArea |
textArea
The text area for multi-line urls |
private JPanel |
textPanel
Holds the text area |
private JScrollPane |
textScroller
text scroller |
private JPanel |
urlPanel
Holds the combo box |
Fields inherited from class ucar.unidata.idv.chooser.UrlChooser |
---|
PREF_URLLIST |
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 | |
---|---|
UrlChooser(IdvChooserManager mgr,
Element root)
Create the UrlChooser |
Method Summary | |
---|---|
void |
doLoadInThread()
Handle the action event from the GUI |
protected JComponent |
doMakeContents()
Create a more McIDAS-V-like GUI layout |
protected JPanel |
doMakeInnerPanel()
Make the contents |
private void |
loadURL()
Wrapper around loadURLInner() , showing the wait cursor |
private void |
loadURLInner()
Load the URL. |
void |
setStatus(String statusString,
String foo)
|
void |
switchFields()
toggle the combobox with the text area |
protected void |
updateStatus()
Disable/enable any components that depend on the server. |
Methods inherited from class ucar.unidata.idv.chooser.UrlChooser |
---|
canDoUpdate, getLoadToolTip |
Methods inherited from class ucar.unidata.ui.ChooserPanel |
---|
actionPerformed, addPropertyChangeListener, clearWaitCursor, doHelp, doLoad, doUpdate, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getMessageTemplate, getSimpleMode, getStatusComponent, getUpdateToolTip, padLabel, registerStatusComp, revalidate, setHaveData, 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 |
Methods inherited from interface java.awt.event.ActionListener |
---|
actionPerformed |
Field Detail |
---|
private PreferenceList prefList
private JComboBox box
private JTextField boxEditor
private JTextArea textArea
private JScrollPane textScroller
private JPanel urlPanel
private JPanel textPanel
private boolean showBox
private JButton switchBtn
private GuiUtils.CardLayoutPanel cardLayoutPanel
protected IntegratedDataViewer idv
private JLabel statusLabel
Constructor Detail |
---|
public UrlChooser(IdvChooserManager mgr, Element root)
UrlChooser
mgr
- The IdvChooserManager
root
- The xml root that defines this chooserMethod Detail |
---|
public void switchFields()
switchFields
in class UrlChooser
protected void updateStatus()
updateStatus
in class IdvChooser
public void doLoadInThread()
doLoadInThread
in class UrlChooser
private void loadURL()
loadURLInner()
, showing the wait cursor
private void loadURLInner()
protected JPanel doMakeInnerPanel()
public void setStatus(String statusString, String foo)
setStatus
in class UrlChooser
protected JComponent doMakeContents()
doMakeContents
in class UrlChooser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |