|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.ui.DataSelectionWidget
public class DataSelectionWidget
This class is a sortof polymorphic dialog/window that manages selection of times for a datasource, displays/times for a datachoice and (sometime) a window showing a DataTree, list of displays and times.
| Field Summary | |
|---|---|
static String |
USE_DEFAULTTIMES
use default times identifier |
static String |
USE_DRIVERTIMES
use time driver times |
static String |
USE_SELECTEDTIMES
use selected times identifier |
| Constructor Summary | |
|---|---|
DataSelectionWidget(IntegratedDataViewer idv)
Constructor for when we are a part of the DataSelector |
|
DataSelectionWidget(IntegratedDataViewer idv,
boolean doSettings)
Constructor for when we are a part of the DataSelector |
|
DataSelectionWidget(IntegratedDataViewer idv,
boolean doSettings,
boolean doUseDisplay)
Constructor for when we are a part of the DataSelector |
|
| Method Summary | |
|---|---|
DataSelection |
createDataSelection(boolean addLevels)
Create the data selection from everything selected by the user |
void |
dataSourceChanged(DataSource dataSource)
Called by the DataSelector to handle when the data source has changed |
List |
getAllDateTimes()
Get the list of all dttms |
JComponent |
getContents()
get the gui contents |
boolean |
getDefaultLevelToFirst()
Get the DefaultLevelToFirst property. |
boolean |
getDefaultMemberToAll()
Get the DefaultMemberToAll property. |
GeoSelection |
getGeoSelection()
Any geo selection |
List |
getSelectedDateTimes()
Return a list of Integer indices of the selected times. |
protected Object[] |
getSelectedLevelRange()
Get the min/max level range |
List |
getSelectedMembers()
Return a list of Integer indices of the selected members. |
protected List |
getSelectedSettings()
Get list of selected DisplaySettings |
String |
getTimeOption()
Get the time option type |
JComponent |
getTimesList()
Create the GUI for the times list. |
JComponent |
getTimesList(String cbxLabel)
Create the GUI for the times list. |
boolean |
getUseAllTimes()
Did user choose "Use all times" |
boolean |
okToCreateTheDisplay(boolean addLevels)
Check if everything is OK so we can create a display. |
void |
setDefaultLevelToFirst(boolean value)
Set the DefaultLevelToFirst property. |
void |
setDefaultMemberToAll(boolean value)
Get the DefaultMemberToAll property. |
void |
setLevelsFromDisplay(List levels)
Set levels from the display |
void |
setTimeOptions(Object selectedObject)
Set the time option from the selected object |
void |
setTimes(List all,
List selected)
Select the times in the times list |
void |
setUseAllTimes(boolean useAllTimes)
Set the use all times flag |
protected void |
updateSelectionTab(DataChoice dataChoice)
Update the tabbed pane |
protected boolean |
updateSelectionTab(DataSource dataSource,
DataChoice dc)
Update selection panel for data source |
protected void |
updateSettings(ControlDescriptor cd)
Update the display settings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String USE_DEFAULTTIMES
public static final String USE_SELECTEDTIMES
public static final String USE_DRIVERTIMES
| Constructor Detail |
|---|
public DataSelectionWidget(IntegratedDataViewer idv)
DataSelector
idv - Reference to the IDV
public DataSelectionWidget(IntegratedDataViewer idv,
boolean doSettings)
DataSelector
idv - Reference to the IDVdoSettings - include the display settings in the tab
public DataSelectionWidget(IntegratedDataViewer idv,
boolean doSettings,
boolean doUseDisplay)
DataSelector
idv - Reference to the IDVdoSettings - include the display settings in the tabdoUseDisplay - true to use display times| Method Detail |
|---|
public JComponent getContents()
public void dataSourceChanged(DataSource dataSource)
dataSource - The data source that changedpublic GeoSelection getGeoSelection()
protected Object[] getSelectedLevelRange()
protected void updateSettings(ControlDescriptor cd)
cd - new control descriptorprotected void updateSelectionTab(DataChoice dataChoice)
dataChoice - new data choice
protected boolean updateSelectionTab(DataSource dataSource,
DataChoice dc)
dataSource - data sourcedc - The data choice
public DataSelection createDataSelection(boolean addLevels)
addLevels - include the levels
public boolean okToCreateTheDisplay(boolean addLevels)
addLevels - Does the display need levels
protected List getSelectedSettings()
public List getAllDateTimes()
public List getSelectedDateTimes()
public List getSelectedMembers()
public boolean getUseAllTimes()
public void setTimes(List all,
List selected)
all - All timesselected - The selected timespublic void setUseAllTimes(boolean useAllTimes)
useAllTimes - true to use all timespublic JComponent getTimesList()
public JComponent getTimesList(String cbxLabel)
cbxLabel - Label for times checkbox
public void setTimeOptions(Object selectedObject)
selectedObject - the selected time modepublic String getTimeOption()
public void setLevelsFromDisplay(List levels)
levels - the list of levelspublic void setDefaultLevelToFirst(boolean value)
value - The new value for DefaultLevelToFirstpublic boolean getDefaultLevelToFirst()
public void setDefaultMemberToAll(boolean value)
value - tru to set the default member to allpublic boolean getDefaultMemberToAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||