org.eclipse.soda.dk.device.swt
Class MeasurementBridge
java.lang.Object
org.eclipse.soda.dk.device.swt.Bridge
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
|
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. |
| 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 |
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.
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()
Copyright (c) 2009 IBM. See license in Legal section.