2009-01-09 1.2.0

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

java.lang.Object
  extended by org.eclipse.soda.dk.device.swt.Bridge
Direct Known Subclasses:
CommandBridge, MeasurementBridge, SignalBridge

public class Bridge
extends java.lang.Object

Since:
1.0
Version:
1.2.0

Field Summary
protected  ControlService control
          Define the control (ControlService) field.
protected  long count
          Define the count (long) field.
protected  java.lang.Object data
          Define the data (Object) field.
protected  long errorCount
          Define the error count (long) field.
protected  DeviceSwt parent
          Define the parent (DeviceSwt) field.
protected  long refreshCount
          Define the refresh count (long) field.
protected  org.eclipse.swt.widgets.TableItem tableItem
          Define the table item (TableItem) field.
protected  long timstamp
          Define the timstamp (long) field.
protected  ControlWindow window
          Define the window (ControlWindow) field.
 
Constructor Summary
Bridge(DeviceSwt parent, org.eclipse.swt.widgets.TableItem tableItem, ControlService control)
          Constructs an instance of this class.
 
Method Summary
 void closeWindow()
          Close window.
 void errorOccurred(java.lang.Object source, java.lang.Object timestamp, java.lang.Object data)
          Error occurred with the specified source, timestamp and data parameters.
 ControlService getControl()
          Gets the control (ControlService) value.
 long getCount()
          Gets the count (long) value.
 java.lang.Object getData()
          Gets the data (Object) value.
 long getErrorCount()
          Gets the error count (long) value.
 org.eclipse.swt.graphics.Image getImage()
          Gets the image value.
 DeviceSwt getParent()
          Gets the parent (DeviceSwt) value.
 long getRefreshCount()
          Gets the refresh count (long) value.
 org.eclipse.swt.widgets.TableItem getTableItem()
          Gets the table item value.
 long getTimstamp()
          Gets the timstamp (long) value.
 ControlWindow getWindow()
          Gets the window (ControlWindow) value.
 void openWindow()
          Open window.
 void refresh()
          Refresh.
 void setControl(ControlService control)
          Sets the control value.
 void setCount(long count)
          Sets the count value.
 void setData(java.lang.Object data)
          Sets the data value.
 void setErrorCount(long errorCount)
          Sets the error count value.
 void setParent(DeviceSwt parent)
          Sets the parent value.
 void setRefreshCount(long refreshCount)
          Sets the refresh count value.
 void setTableItem(org.eclipse.swt.widgets.TableItem tableItem)
          Sets the table item value.
 void setTimstamp(long timstamp)
          Sets the timstamp value.
 void setTimstamp(java.lang.Object timstamp)
          Sets the timstamp value.
 void setWindow(ControlWindow window)
          Sets the window value.
 void updateCount()
          Update count.
 void updateRefreshCount()
          Update refresh count.
 void updateTable()
          Update table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableItem

protected org.eclipse.swt.widgets.TableItem tableItem
Define the table item (TableItem) field.


count

protected long count
Define the count (long) field.


refreshCount

protected long refreshCount
Define the refresh count (long) field.


errorCount

protected long errorCount
Define the error count (long) field.


timstamp

protected long timstamp
Define the timstamp (long) field.


data

protected java.lang.Object data
Define the data (Object) field.


parent

protected DeviceSwt parent
Define the parent (DeviceSwt) field.


control

protected ControlService control
Define the control (ControlService) field.


window

protected ControlWindow window
Define the window (ControlWindow) field.

Constructor Detail

Bridge

public Bridge(DeviceSwt parent,
              org.eclipse.swt.widgets.TableItem tableItem,
              ControlService control)
Constructs an instance of this class.

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

closeWindow

public void closeWindow()
Close window.

See Also:
getWindow(), openWindow(), setWindow(ControlWindow)

errorOccurred

public void errorOccurred(java.lang.Object source,
                          java.lang.Object timestamp,
                          java.lang.Object data)
Error occurred with the specified source, timestamp and data parameters.

Parameters:
source - The source (Object) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

getControl

public ControlService getControl()
Gets the control (ControlService) value.

Returns:
The control (ControlService) value.
See Also:
setControl(ControlService)

getCount

public long getCount()
Gets the count (long) value.

Returns:
The count (long) value.
See Also:
getErrorCount(), getRefreshCount(), setCount(long), setErrorCount(long), setRefreshCount(long), updateCount(), updateRefreshCount()

getData

public java.lang.Object getData()
Gets the data (Object) value.

Returns:
The data (Object) value.
See Also:
setData(Object)

getErrorCount

public long getErrorCount()
Gets the error count (long) value.

Returns:
The error count (long) value.
See Also:
setErrorCount(long)

getImage

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

Returns:
The image (Image) value.

getParent

public DeviceSwt getParent()
Gets the parent (DeviceSwt) value.

Returns:
The parent (DeviceSwt) value.
See Also:
setParent(DeviceSwt)

getRefreshCount

public long getRefreshCount()
Gets the refresh count (long) value.

Returns:
The refresh count (long) value.
See Also:
setRefreshCount(long), updateRefreshCount()

getTableItem

public org.eclipse.swt.widgets.TableItem getTableItem()
Gets the table item value.

Returns:
The table item (TableItem) value.
See Also:
setTableItem(TableItem)

getTimstamp

public long getTimstamp()
Gets the timstamp (long) value.

Returns:
The timstamp (long) value.
See Also:
setTimstamp(long), setTimstamp(Object)

getWindow

public ControlWindow getWindow()
Gets the window (ControlWindow) value.

Returns:
The window (ControlWindow) value.
See Also:
closeWindow(), openWindow(), setWindow(ControlWindow)

openWindow

public void openWindow()
Open window.

See Also:
closeWindow(), getWindow(), setWindow(ControlWindow)

refresh

public void refresh()
Refresh.


setControl

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

Parameters:
control - The control (ControlService) parameter.
See Also:
getControl()

setCount

public void setCount(long count)
Sets the count value.

Parameters:
count - The count (long) parameter.
See Also:
getCount(), getErrorCount(), getRefreshCount(), setErrorCount(long), setRefreshCount(long), updateCount(), updateRefreshCount()

setData

public void setData(java.lang.Object data)
Sets the data value.

Parameters:
data - The data (Object) parameter.
See Also:
getData()

setErrorCount

public void setErrorCount(long errorCount)
Sets the error count value.

Parameters:
errorCount - The error count (long) parameter.
See Also:
getErrorCount()

setParent

public void setParent(DeviceSwt parent)
Sets the parent value.

Parameters:
parent - The parent (DeviceSwt) parameter.
See Also:
getParent()

setRefreshCount

public void setRefreshCount(long refreshCount)
Sets the refresh count value.

Parameters:
refreshCount - The refresh count (long) parameter.
See Also:
getRefreshCount(), updateRefreshCount()

setTableItem

public void setTableItem(org.eclipse.swt.widgets.TableItem tableItem)
Sets the table item value.

Parameters:
tableItem - The table item (TableItem) parameter.
See Also:
getTableItem()

setTimstamp

public void setTimstamp(long timstamp)
Sets the timstamp value.

Parameters:
timstamp - The timstamp (long) parameter.
See Also:
getTimstamp(), setTimstamp(Object)

setTimstamp

public void setTimstamp(java.lang.Object timstamp)
Sets the timstamp value.

Parameters:
timstamp - The timstamp (Object) parameter.
See Also:
getTimstamp(), setTimstamp(long)

setWindow

public void setWindow(ControlWindow window)
Sets the window value.

Parameters:
window - The window (ControlWindow) parameter.
See Also:
closeWindow(), getWindow(), openWindow()

updateCount

public void updateCount()
Update count.

See Also:
getCount(), getErrorCount(), getRefreshCount(), setCount(long), setErrorCount(long), setRefreshCount(long), updateRefreshCount()

updateRefreshCount

public void updateRefreshCount()
Update refresh count.

See Also:
getRefreshCount(), setRefreshCount(long)

updateTable

public void updateTable()
Update table.


2009-01-09 1.2.0

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