|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--net.agmodel.utilBean.DataSourceBean
An abstract class for allowing a user to select from a list of the data sources (databases) connected to a broker.
Sends DataSourceEvents to registered listeners.
| Nested Class Summary | |
protected class |
DataSourceBean.ConnectThread
|
| Field Summary | |
protected JComboBox |
dataSourceList
|
protected ArrayList |
dataSourceListeners
|
protected boolean |
forceEventPropagation
|
protected ActionListener |
sourceComboListener
|
| 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.Container |
|
| 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 | |
DataSourceBean()
Creates a data source bean. |
|
| Method Summary | |
void |
addDataSourceListener(DataSourceListener l)
Adds a listener to be informed when a different data source is selected |
protected void |
clearRequestedIDs()
|
protected void |
dataSourceList_actionPerformed(ActionEvent e)
|
protected void |
fireDataSourceEvent(DataSourceEvent evt)
|
protected abstract void |
fireSourceSpecificEvent(DataSourceListener listener,
DataSourceEvent evt)
|
protected DataSourceEvent |
getHTTPEvent()
|
protected DataSourceEvent |
getRMIEvent()
|
void |
newConnection(ServiceBeanEvent evt)
Called by a broker when a new connection is established. |
void |
removeDataSourceListener(DataSourceListener l)
|
protected void |
setBeanText()
|
protected void |
setCurrentDataSource(DataSourceDetail source)
Sets the currently selected DataSource. |
void |
setResourceServerBean(ResourceBean bean)
The component should register its internal text elements with the ResourceBean |
void |
setSource(String sourceID)
Lets a calling application set the combo box to a particular source. |
protected boolean |
setSourceCombo(String requestedSourceID)
Sets the SourceCombo to the requested value, if it can find it. |
protected void |
setUpBean()
|
| 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 |
protected transient volatile boolean forceEventPropagation
protected transient volatile ArrayList dataSourceListeners
protected JComboBox dataSourceList
protected transient ActionListener sourceComboListener
| Constructor Detail |
public DataSourceBean()
| Method Detail |
protected void setBeanText()
protected void setUpBean()
protected void fireDataSourceEvent(DataSourceEvent evt)
protected abstract void fireSourceSpecificEvent(DataSourceListener listener,
DataSourceEvent evt)
public void addDataSourceListener(DataSourceListener l)
l - the listener to registerpublic void removeDataSourceListener(DataSourceListener l)
protected void clearRequestedIDs()
protected void dataSourceList_actionPerformed(ActionEvent e)
protected boolean setSourceCombo(String requestedSourceID)
public void newConnection(ServiceBeanEvent evt)
newConnection in interface ServiceBeanListenerevt - contact details for the server.protected DataSourceEvent getRMIEvent()
protected DataSourceEvent getHTTPEvent()
protected void setCurrentDataSource(DataSourceDetail source)
public void setSource(String sourceID)
sourceID - the id of the source.public void setResourceServerBean(ResourceBean bean)
Resourceable
setResourceServerBean in interface Resourceable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||