|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.ui.DataControlDialog
public class DataControlDialog
This class provides a list of the display controls and the data selection dialog
| Constructor Summary | |
|---|---|
DataControlDialog(IntegratedDataViewer idv,
boolean inOwnWindow,
boolean horizontalOrientation)
Constructor for when we are a part of the DataSelector |
|
DataControlDialog(IntegratedDataViewer idv,
DataChoice dataChoice,
int x,
int y)
Constructor for configuring a DataChoice |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Handle OK, APPLY and CANCEL events |
void |
addCreateButton(JButton b)
We keep track of the "Create" buttons so we can enable/disable them |
void |
dataSourceChanged(DataSource dataSource)
Called by the DataSelector to handle when the data source has changed |
void |
displayTemplatesChanged()
Be notified of a change to the display templates |
void |
dispose()
Dispose of the dialog window (if it is created) and remove this object from the IDV's list of DataControlDialog-s |
void |
doClose()
Calls dispose, nulls out references (for leaks), etc. |
JComponent |
doMakeDataChoiceDialog(DataChoice dataChoice)
Make the GUI for configuring a DataChoice |
protected void |
doMakeWindow(JComponent contents,
int x,
int y)
Make a new window with the given GUI contents and position it at the given screen location |
void |
doOk()
Call doApply and close the window |
JComponent |
getContents()
Return the gui contents |
DataChoice |
getDataChoice()
Get the DataChoice we are representing |
DataSelectionWidget |
getDataSelectionWidget()
Get the data selection widget |
DataSource |
getDataSource()
Return the DataSource we are configuring |
protected ControlDescriptor |
getSelectedControl()
Return the ControlDescriptor that is currently selected |
Object[] |
getSelectedControls()
Find and return the array of selected ControlDescriptor-s |
void |
setCursor(Cursor cursor)
Utility to set the cursor on the gui contents |
void |
setDataChoice(DataChoice dc)
Set the DataChoice we are representing |
void |
setDataSource(DataSource ds)
Set the data source |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataControlDialog(IntegratedDataViewer idv,
boolean inOwnWindow,
boolean horizontalOrientation)
DataSelector
idv - Reference to the IDVinOwnWindow - Should this object be in its own windowhorizontalOrientation - Show display/times hor?
public DataControlDialog(IntegratedDataViewer idv,
DataChoice dataChoice,
int x,
int y)
DataChoice
idv - Reference to the IDVdataChoice - The DataChoice we are configuringx - X position on the screen to show windowy - Y position on the screen to show window| Method Detail |
|---|
public void addCreateButton(JButton b)
b - The create button to add into the listpublic JComponent getContents()
public void setCursor(Cursor cursor)
cursor - The cursor to setpublic void setDataSource(DataSource ds)
ds - The new data sourcepublic void dataSourceChanged(DataSource dataSource)
dataSource - The data source that changedprotected ControlDescriptor getSelectedControl()
ControlDescriptor that is currently selected
public Object[] getSelectedControls()
ControlDescriptor-s
public void displayTemplatesChanged()
public void setDataChoice(DataChoice dc)
DataChoice we are representing
dc - The current DataChoicepublic DataSource getDataSource()
DataSource we are configuring
DataSourcepublic DataChoice getDataChoice()
DataChoice we are representing
DataChoicepublic JComponent doMakeDataChoiceDialog(DataChoice dataChoice)
DataChoice
dataChoice - The DataChoice
public DataSelectionWidget getDataSelectionWidget()
protected void doMakeWindow(JComponent contents,
int x,
int y)
contents - Gui contentsx - Screen xy - Screen ypublic void dispose()
public void doClose()
public void doOk()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - The event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||