Class symantec.itools.db.beans.binding.MediatorDS
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.binding.MediatorDS
Object
|
+----Mediator
|
+----symantec.itools.db.beans.binding.MediatorDS
- public class MediatorDS
- extends Mediator
- implements TriggerUIListener
-
dataBinding
- Contains all the DataItem requested by the components.
-
getMethods
-
-
notifyOnDS
-
-
output
-
-
setMethods
-
-
symantec.itools.db.beans.binding.MediatorDS()
- Constructs the default mediatorDS.
-
symantec.itools.db.beans.binding.MediatorDS(Object, String)
- Constructs a MediatorDS given its output component and the full name of
the fields it is supposed to show
-
commit()
- Updates the DataItem with the values present in the output component.
-
commit(DataItem, int, int[])
-
-
commitUI(TriggerUIEvent)
-
-
findDI()
- finds a DataItem given its name
-
getDataBinding()
- Returns the full name of the DataItem.
-
getDataItemName(DataItem)
-
-
handleDataBusEvent(DataBusEvent)
- Handles the DataBus events, in particular the Data available events sent by the QueryNavigators.
-
killAll()
-
-
killAll(String)
-
-
notifyDataItemChanged(DataItemChangedEvent)
- Responds to the sollicitations of the DataItems.
-
notifyEnabled(boolean)
- Sets the notify flag.
-
requestDataItem(DataBusEvent)
- Changes the value of the DataItem when requested by the DataBus.
-
setDataBinding(String)
- Sets the name for the actual Data Item.And searches the DataBus for it
This method is very important in the sense that it is the one that actually connects the
mediator to the data bus
The format is "Tablename
-
setDataBus(DataBus)
- Connects to the DataBus
-
setDataItemName(DataItem, String)
-
-
setOutput(Object)
- Sets the QueryNavigator for the MediatorDS.
-
update(DataItem)
- Updates the values contained in the QueryNavigator if they are
different from those in the DataItem.
dataBinding
protected symantec.itools.db.beans.binding.Name dataBinding
- Contains all the DataItem requested by the components.
getMethods
protected java.lang.String[] getMethods
notifyOnDS
protected boolean notifyOnDS
output
protected symantec.itools.db.beans.binding.BasicDataSource output
setMethods
protected java.lang.String[] setMethods
MediatorDS
public MediatorDS()
- Constructs the default mediatorDS.
MediatorDS
public MediatorDS(Object Out,
String Name)
- Constructs a MediatorDS given its output component and the full name of
the fields it is supposed to show
- Parameters:
- Out - the output component
- Name - the fullname of the fields
commit
public void commit()
- Updates the DataItem with the values present in the output component.
- Overrides:
- commit in class Mediator
commit
public void commit(DataItem DI,
int row,
int cols)
commitUI
public void commitUI(TriggerUIEvent trui)
- Overrides:
- commitUI in class Mediator
findDI
protected void findDI()
- finds a DataItem given its name
- Overrides:
- findDI in class Mediator
getDataBinding
public java.lang.String getDataBinding()
- Returns the full name of the DataItem.
- Overrides:
- getDataBinding in class Mediator
getDataItemName
protected java.lang.String getDataItemName(DataItem DI)
handleDataBusEvent
public void handleDataBusEvent(DataBusEvent ibe)
- Handles the DataBus events, in particular the Data available events sent by the QueryNavigators.
- Overrides:
- handleDataBusEvent in class Mediator
killAll
public void killAll()
killAll
public void killAll(String tableName)
notifyDataItemChanged
public void notifyDataItemChanged(DataItemChangedEvent e)
- Responds to the sollicitations of the DataItems.
- Parameters:
- e - the DataItemChangedEvent
- Overrides:
- notifyDataItemChanged in class Mediator
notifyEnabled
protected void notifyEnabled(boolean value)
- Sets the notify flag.
- Overrides:
- notifyEnabled in class Mediator
requestDataItem
public void requestDataItem(DataBusEvent ibe)
- Changes the value of the DataItem when requested by the DataBus.
Also creates new dataItems when it does not exist
- Parameters:
- ibe - the DataBusEvent
- Overrides:
- requestDataItem in class Mediator
setDataBinding
public void setDataBinding(String name)
- Sets the name for the actual Data Item.And searches the DataBus for it
This method is very important in the sense that it is the one that actually connects the
mediator to the data bus
The format is "Tablename
- Overrides:
- setDataBinding in class Mediator
setDataBus
public void setDataBus(DataBus b) throws PropertyVetoException
- Connects to the DataBus
- Parameters:
- b - the DataBus the mediator connects to
- Throws: PropertyVetoException
- when the attempt to set the property is vetoed
- Overrides:
- setDataBus in class Mediator
setDataItemName
protected void setDataItemName(DataItem DI,
String name)
setOutput
public void setOutput(Object Out)
- Sets the QueryNavigator for the MediatorDS.
- Parameters:
- Out - the data source
- Overrides:
- setOutput in class Mediator
update
protected void update(DataItem Input)
- Updates the values contained in the QueryNavigator if they are
different from those in the DataItem.
- Parameters:
- Input - the current dataItem
- Overrides:
- update in class Mediator
All Packages Class Hierarchy This Package Previous Next Index