Oracle Data-aware Controls Reference

oracle.dacf.control.swing
Class StaticComboBoxDataSource

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byjavax.swing.DefaultComboBoxModel
          extended byoracle.dacf.control.swing.StaticComboBoxDataSource
All Implemented Interfaces:
javax.swing.ComboBoxModel, oracle.dacf.rp.Consumer, javax.infobus.DataItemChangeListener, java.util.EventListener, javax.infobus.InfoBusDataConsumer, javax.infobus.InfoBusEventListener, javax.infobus.InfoBusMember, javax.swing.ListModel, javax.swing.MutableComboBoxModel, oracle.dacf.rp.Participant, java.beans.PropertyChangeListener, java.io.Serializable

public class StaticComboBoxDataSource
extends javax.swing.DefaultComboBoxModel
implements javax.infobus.InfoBusMember, javax.infobus.InfoBusDataConsumer, javax.infobus.DataItemChangeListener, oracle.dacf.rp.Consumer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
StaticComboBoxDataSource()
          Constructs a "static" or non-query based ComboBox Model.
StaticComboBoxDataSource(java.lang.Object[] items)
          Constructs a "static" or non-query based ComboBox Model.
StaticComboBoxDataSource(java.util.Vector items)
          Constructs a "static" or non-query based ComboBox Model.
 
Method Summary
 void addInfoBusPropertyListener(java.beans.PropertyChangeListener l)
          Adds a PropertyChangeListener that will be alerted whenever the InfoBusMember's setInfoBus method is called and not vetoed.
 void addInfoBusVetoableListener(java.beans.VetoableChangeListener l)
          Adds a VetoableChangeListener to the list of listeners that will be alerted whenever the InfoBusMember's setInfoBus method is called.
 void available(java.lang.String name, java.lang.Object publishedObject)
           
 void dataItemAdded(javax.infobus.DataItemAddedEvent event)
           
 void dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent event)
           
 void dataItemDeleted(javax.infobus.DataItemDeletedEvent event)
           
 void dataItemRevoked(javax.infobus.DataItemRevokedEvent event)
           
 void dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent event)
           
 void dataItemValueChanged(javax.infobus.DataItemValueChangedEvent event)
           
 java.lang.String getDataItemName()
          Gets the name of the dataItem this model uses to get its list of values.
 javax.infobus.InfoBus getInfoBus()
          Gets the infobus this model is currently connected to.
 java.lang.String getInfoBusName()
          Returns name of the infobus this model is connected to.
 void propertyChange(java.beans.PropertyChangeEvent event)
          This method gets called when the object's InfoBus property is changed.
 void releaseResources(InfoBusManagerReleaseEvent e)
           
 void removeInfoBusPropertyListener(java.beans.PropertyChangeListener l)
          Removes a PropertyChangeListener from the list of listeners requesting notification of an InfoBus change.
 void removeInfoBusVetoableListener(java.beans.VetoableChangeListener l)
          Removes a VetoableChangeListener from the list of listeners requesting notification of an InfoBus change.
 void revoked(java.lang.String name, java.lang.Object publishedObject)
           
 void rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
           
 void setDataItemName(java.lang.String dataItemName)
          Specifies the name of the dataItem this model uses to get its list of values.
 void setInfoBus(javax.infobus.InfoBus infobus)
          Specifies the infobus this model should be connected to.
 void setInfoBusName(java.lang.String infoBusName)
          Specifies name of the new infobus this model should be connected.
 void setSelectedItem(java.lang.Object nu)
          Makes the passed Object the current object in the ComboBox model.
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

StaticComboBoxDataSource

public StaticComboBoxDataSource()
Constructs a "static" or non-query based ComboBox Model.


StaticComboBoxDataSource

public StaticComboBoxDataSource(java.lang.Object[] items)
Constructs a "static" or non-query based ComboBox Model.

Parameters:
items - The object that will be displayed in the ComboBox list

StaticComboBoxDataSource

public StaticComboBoxDataSource(java.util.Vector items)
Constructs a "static" or non-query based ComboBox Model.

Parameters:
items - The object that will be displayed in the ComboBox list
Method Detail

releaseResources

public void releaseResources(InfoBusManagerReleaseEvent e)

setSelectedItem

public void setSelectedItem(java.lang.Object nu)
Makes the passed Object the current object in the ComboBox model.

Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
Parameters:
nu - the newly selected object

getInfoBusName

public java.lang.String getInfoBusName()
Returns name of the infobus this model is connected to.

Returns:
name of the infobus

setInfoBusName

public void setInfoBusName(java.lang.String infoBusName)
Specifies name of the new infobus this model should be connected.

The model leaves the previous infobus before connecting to the given infobus.


setDataItemName

public void setDataItemName(java.lang.String dataItemName)
Specifies the name of the dataItem this model uses to get its list of values.


getDataItemName

public java.lang.String getDataItemName()
Gets the name of the dataItem this model uses to get its list of values.

Returns:
Fully qaulified dataItemName

addInfoBusPropertyListener

public void addInfoBusPropertyListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener that will be alerted whenever the InfoBusMember's setInfoBus method is called and not vetoed.

Specified by:
addInfoBusPropertyListener in interface javax.infobus.InfoBusMember
Parameters:
l - the PropertyChangeListener to be added

removeInfoBusPropertyListener

public void removeInfoBusPropertyListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the list of listeners requesting notification of an InfoBus change.

Specified by:
removeInfoBusPropertyListener in interface javax.infobus.InfoBusMember
Parameters:
l - the listener to be removed

addInfoBusVetoableListener

public void addInfoBusVetoableListener(java.beans.VetoableChangeListener l)
Adds a VetoableChangeListener to the list of listeners that will be alerted whenever the InfoBusMember's setInfoBus method is called.

Specified by:
addInfoBusVetoableListener in interface javax.infobus.InfoBusMember
Parameters:
l - the VetoableChangeListener to be added

removeInfoBusVetoableListener

public void removeInfoBusVetoableListener(java.beans.VetoableChangeListener l)
Removes a VetoableChangeListener from the list of listeners requesting notification of an InfoBus change.

Specified by:
removeInfoBusVetoableListener in interface javax.infobus.InfoBusMember
Parameters:
l - the listener to be removed

getInfoBus

public javax.infobus.InfoBus getInfoBus()
Gets the infobus this model is currently connected to.

Specified by:
getInfoBus in interface javax.infobus.InfoBusMember
Returns:
the infobus

setInfoBus

public void setInfoBus(javax.infobus.InfoBus infobus)
                throws java.beans.PropertyVetoException
Specifies the infobus this model should be connected to.

Specified by:
setInfoBus in interface javax.infobus.InfoBusMember
Parameters:
infobus - to connect to.
Throws:
java.beans.PropertyVetoException - thrown if any of the listeners vetoes this change.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
This method gets called when the object's InfoBus property is changed.

The object is removed as a data consumer from its previous InfoBus, and is added as a consumer to its new InfoBus.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
event - The event.

dataItemValueChanged

public void dataItemValueChanged(javax.infobus.DataItemValueChangedEvent event)
Specified by:
dataItemValueChanged in interface javax.infobus.DataItemChangeListener

dataItemAdded

public void dataItemAdded(javax.infobus.DataItemAddedEvent event)
Specified by:
dataItemAdded in interface javax.infobus.DataItemChangeListener

dataItemDeleted

public void dataItemDeleted(javax.infobus.DataItemDeletedEvent event)
Specified by:
dataItemDeleted in interface javax.infobus.DataItemChangeListener

dataItemRevoked

public void dataItemRevoked(javax.infobus.DataItemRevokedEvent event)
Specified by:
dataItemRevoked in interface javax.infobus.DataItemChangeListener

rowsetCursorMoved

public void rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
Specified by:
rowsetCursorMoved in interface javax.infobus.DataItemChangeListener

available

public void available(java.lang.String name,
                      java.lang.Object publishedObject)
Specified by:
available in interface oracle.dacf.rp.Consumer

revoked

public void revoked(java.lang.String name,
                    java.lang.Object publishedObject)
Specified by:
revoked in interface oracle.dacf.rp.Consumer

dataItemAvailable

public void dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent event)
Specified by:
dataItemAvailable in interface javax.infobus.InfoBusDataConsumer

dataItemRevoked

public void dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent event)
Specified by:
dataItemRevoked in interface javax.infobus.InfoBusDataConsumer

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.