2009-01-09 1.2.0

org.eclipse.soda.dk.device.swt
Class MeasurementBridge

java.lang.Object
  extended by org.eclipse.soda.dk.device.swt.Bridge
      extended by org.eclipse.soda.dk.device.swt.MeasurementBridge
All Implemented Interfaces:
MeasurementListener, ErrorListener

public class MeasurementBridge
extends Bridge
implements MeasurementListener

Since:
1.0
Version:
1.2.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.device.swt.Bridge
control, count, data, errorCount, parent, refreshCount, tableItem, timstamp, window
 
Constructor Summary
MeasurementBridge(DeviceSwt parent, org.eclipse.swt.widgets.TableItem tableItem, MeasurementService measurement)
          Constructs an instance of this class from the specified table item and control parameters.
 
Method Summary
 org.eclipse.swt.graphics.Image getImage()
          Gets the image value.
 MeasurementService getMeasurement()
          Gets the measurement (MeasurementService) value.
 void measurementChanged(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Measurement changed with the specified source, timestamp, new value and old value parameters.
 void setControl(ControlService control)
          Sets the control value.
 
Methods inherited from class org.eclipse.soda.dk.device.swt.Bridge
closeWindow, errorOccurred, getControl, getCount, getData, getErrorCount, getParent, getRefreshCount, getTableItem, getTimstamp, getWindow, openWindow, refresh, setCount, setData, setErrorCount, setParent, setRefreshCount, setTableItem, setTimstamp, setTimstamp, setWindow, updateCount, updateRefreshCount, updateTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener
errorOccurred
 

Constructor Detail

MeasurementBridge

public MeasurementBridge(DeviceSwt parent,
                         org.eclipse.swt.widgets.TableItem tableItem,
                         MeasurementService measurement)
Constructs an instance of this class from the specified table item and control parameters.

Parameters:
parent - The parent (DeviceSwt) parameter.
tableItem - The table item (TableItem) parameter.
measurement - The measurement (MeasurementService) parameter.
Method Detail

getImage

public org.eclipse.swt.graphics.Image getImage()
Gets the image value.

Overrides:
getImage in class Bridge
Returns:
The image (Image) value.

getMeasurement

public MeasurementService getMeasurement()
Gets the measurement (MeasurementService) value.

Returns:
The measurement (MeasurementService) value.

measurementChanged

public void measurementChanged(MeasurementService source,
                               java.lang.Object timestamp,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, new value and old value parameters.

Specified by:
measurementChanged in interface MeasurementListener
Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

setControl

public void setControl(ControlService control)
Sets the control value.

Overrides:
setControl in class Bridge
Parameters:
control - The control (ControlService) parameter.
See Also:
Bridge.getControl()

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.