public class DataControlDialog
extends java.lang.Object
implements java.awt.event.ActionListener
| Constructor and Description |
|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Handle OK, APPLY and CANCEL events
|
void |
addCreateButton(javax.swing.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.
|
javax.swing.JComponent |
doMakeDataChoiceDialog(DataChoice dataChoice)
Make the GUI for configuring a
DataChoice |
protected void |
doMakeWindow(javax.swing.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
|
javax.swing.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 |
java.lang.Object[] |
getSelectedControls()
Find and return the array of selected
ControlDescriptor-s |
void |
setCursor(java.awt.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
|
public DataControlDialog(IntegratedDataViewer idv, boolean inOwnWindow, boolean horizontalOrientation)
DataSelectoridv - 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)
DataChoiceidv - Reference to the IDVdataChoice - The DataChoice we are configuringx - X position on the screen to show windowy - Y position on the screen to show windowpublic void addCreateButton(javax.swing.JButton b)
b - The create button to add into the listpublic javax.swing.JComponent getContents()
public void setCursor(java.awt.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 selectedpublic java.lang.Object[] getSelectedControls()
ControlDescriptor-spublic void displayTemplatesChanged()
public void setDataChoice(DataChoice dc)
DataChoice we are representingdc - The current DataChoicepublic DataSource getDataSource()
DataSource we are configuringDataSourcepublic DataChoice getDataChoice()
DataChoice we are representingDataChoicepublic javax.swing.JComponent doMakeDataChoiceDialog(DataChoice dataChoice)
DataChoicedataChoice - The DataChoicepublic DataSelectionWidget getDataSelectionWidget()
protected void doMakeWindow(javax.swing.JComponent contents,
int x,
int y)
contents - Gui contentsx - Screen xy - Screen ypublic void dispose()
public void doClose()
public void doOk()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerevent - The event