Class symantec.itools.db.beans.brl.binding.ComputedColumnDataController
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.brl.binding.ComputedColumnDataController
Object
|
+----symantec.itools.db.beans.brl.binding.ComputedColumnDataController
- public class ComputedColumnDataController
- extends Object
- implements DataBusMember, DataBusEventListener, DataItemChangedListener
Support Class which acts as a controller between dataItems that
are dependent on each other.
- Version:
- 1.0 08/14/98
- Author:
- Puru Balakrishnan
-
calculationMode
-
-
dataBindingSupport
-
-
dataBus
-
-
dataSizeChangeCalled
-
-
hashInit
-
-
hashdataItems
-
-
hashdataValues
-
-
producerDIs
-
-
vetoSupport
-
-
symantec.itools.db.beans.brl.binding.ComputedColumnDataController()
- Constructor
-
addDataBindingsChangeEventListener(DataBindingsChangeEventListener)
- Method to register as a DataBindingsChangeEventListener
-
addProducerDataItem(String)
- Method to add a dataItem as a producer
-
addVetoableChangeListener(VetoableChangeListener)
- Method to add a VetoableChangeListener to the list
-
findDataItem(String)
-
-
getCalculationMode()
- Get the mode
-
getDataBus()
- Method to return the data bus
-
getLookupBindName(Name)
-
-
handleDataBusEvent(DataBusEvent)
- This method is called in order to inform an IB component of the coming or
going of data items.
-
notifyDataItemChanged(DataItemChangedEvent)
- Method which implements the data item change method
-
removeDataBindingsChangeEventListener(DataBindingsChangeEventListener)
- Method to remove as a DataBindingsChangeEventListener
-
removeProducerDataItem(String)
- Method to remove a dataItem as a producer
-
removeVetoableChangeListener(VetoableChangeListener)
- Method to remove a VetoableChangeListener to the list
-
requestDataItem(DataBusEvent)
- DataBusEventListeners are called by this method to see if they can fulfill
a request for a data item.
-
setCalculationMode(int)
- Method to set the calculation mode
-
setDataBus(DataBus)
- Method to set the data bus
calculationMode
protected int calculationMode
dataBindingSupport
protected symantec.itools.db.beans.brl.binding.event.DataBindingsChangeEventSupport dataBindingSupport
dataBus
protected symantec.itools.db.beans.binding.databus.DataBus dataBus
dataSizeChangeCalled
protected boolean dataSizeChangeCalled
hashInit
protected java.util.Hashtable hashInit
hashdataItems
protected java.util.Hashtable hashdataItems
hashdataValues
protected java.util.Hashtable hashdataValues
producerDIs
protected java.util.Vector producerDIs
vetoSupport
protected java.beans.VetoableChangeSupport vetoSupport
ComputedColumnDataController
public ComputedColumnDataController()
- Constructor
addDataBindingsChangeEventListener
public void addDataBindingsChangeEventListener(DataBindingsChangeEventListener l)
- Method to register as a DataBindingsChangeEventListener
- Parameters:
- l - DataBindingsChangeEventListener
addProducerDataItem
public synchronized void addProducerDataItem(String item)
- Method to add a dataItem as a producer
- Parameters:
- item - dataitem name
addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
- Method to add a VetoableChangeListener to the list
- Parameters:
- listener - VetoableChangeListener
findDataItem
protected symantec.itools.db.beans.binding.databus.DataItem findDataItem(String name)
getCalculationMode
public int getCalculationMode()
- Get the mode
- Returns:
- int
getDataBus
public symantec.itools.db.beans.binding.databus.DataBus getDataBus()
- Method to return the data bus
- Returns:
- DataBus
getLookupBindName
protected java.lang.String getLookupBindName(Name nameObj)
handleDataBusEvent
public void handleDataBusEvent(DataBusEvent e)
- This method is called in order to inform an IB component of the coming or
going of data items. The data item name is passed as a hint, and may be used
in a subsequent requestDataItem() call. Note that it is possible
(but unusual) that a subsequent call to requestDataItem() may fail even
though the listener has "just" been informed of the new data item.
- Parameters:
- e - DataBusEvent
notifyDataItemChanged
public void notifyDataItemChanged(DataItemChangedEvent e)
- Method which implements the data item change method
- Parameters:
- e - DataItemChangedEvent
removeDataBindingsChangeEventListener
public void removeDataBindingsChangeEventListener(DataBindingsChangeEventListener l)
- Method to remove as a DataBindingsChangeEventListener
- Parameters:
- l - DataBindingsChangeEventListener
removeProducerDataItem
public synchronized void removeProducerDataItem(String item)
- Method to remove a dataItem as a producer
- Parameters:
- item - dataitem name
removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
- Method to remove a VetoableChangeListener to the list
- Parameters:
- listener - VetoableChangeListener
requestDataItem
public void requestDataItem(DataBusEvent e)
- DataBusEventListeners are called by this method to see if they can fulfill
a request for a data item. Note that solicitations for new data may arrive
at any time. A source may respond to requests for data items
which it did not announce (for example, a spreadsheet may respond to a
request for item named "A1..B10", even though it may never have announced
the availability of such an item).
Components that are not acting in the role of data source may ignore
these events by implementing an empty requestDataItem() method.
- Parameters:
- e - DataBusEvent
setCalculationMode
public void setCalculationMode(int mode)
- Method to set the calculation mode
- Parameters:
- mode - calculation mode
setDataBus
public void setDataBus(DataBus b) throws PropertyVetoException
- Method to set the data bus
- Parameters:
- b - DataBus
- Throws: PropertyVetoException
- property veto exception
All Packages Class Hierarchy This Package Previous Next Index