2009-01-09 1.2.0

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

java.lang.Object
  extended by org.eclipse.soda.dk.profile.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  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  java.lang.String key
          Define the control (ControlService) field.
protected  ProfileSwt parent
          Define the parent (DeviceSwt) field.
protected  long refreshCount
          Define the refresh count (long) field.
protected  long timstamp
          Define the timstamp (long) field.
protected  org.eclipse.swt.widgets.TreeItem treeItem
          Define the tree item (TreeItem) field.
protected  ControlWindow window
          Define the window (ControlWindow) field.
 
Constructor Summary
Bridge(ProfileSwt parent, org.eclipse.swt.widgets.TreeItem treeItem, java.lang.String key)
          Constructs an instance of this class.
 
Method Summary
 void broadcast(java.lang.String topic, java.util.Dictionary data)
          Broadcast with the specified topic and data parameters.
 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.
 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.
 java.lang.String getKey()
          Gets the key (String) value.
 ProfileSwt getParent()
          Gets the parent (ProfileSwt) value.
 java.lang.String getPrefix()
          Gets the prefix (String) value.
 long getRefreshCount()
          Gets the refresh count (long) value.
 long getTimstamp()
          Gets the timstamp (long) value.
 org.eclipse.swt.widgets.TreeItem getTreeItem()
          Gets the tree item value.
 ControlWindow getWindow()
          Gets the window (ControlWindow) value.
 void gray()
          Gray.
 void notificationReceived(java.lang.String externalKey, java.lang.Object data)
          Notification received with the specified external key and data parameters.
 void openWindow()
          Open window.
 java.lang.String prependPrefix(java.lang.String topic)
          Prepend prefix with the specified topic parameter and return the String result.
 void refresh()
          Refresh.
 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 setGrayed(boolean state)
          Sets the grayed value.
 void setKey(java.lang.String key)
          Sets the key value.
 void setParent(ProfileSwt parent)
          Sets the parent value.
 void setRefreshCount(long refreshCount)
          Sets the refresh count value.
 void setTimstamp(long timstamp)
          Sets the timstamp value.
 void setTimstamp(java.lang.Object timstamp)
          Sets the timstamp value.
 void setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
          Sets the tree item value.
 void setWindow(ControlWindow window)
          Sets the window value.
 void updateCount()
          Update count.
 void updateRefreshCount()
          Update refresh count.
 void updateTree()
          Update tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

treeItem

protected org.eclipse.swt.widgets.TreeItem treeItem
Define the tree item (TreeItem) 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 ProfileSwt parent
Define the parent (DeviceSwt) field.


key

protected java.lang.String key
Define the control (ControlService) field.


window

protected ControlWindow window
Define the window (ControlWindow) field.

Constructor Detail

Bridge

public Bridge(ProfileSwt parent,
              org.eclipse.swt.widgets.TreeItem treeItem,
              java.lang.String key)
Constructs an instance of this class.

Parameters:
parent - The parent (ProfileSwt) parameter.
treeItem - The tree item (TreeItem) parameter.
key - The key (String) parameter.
Method Detail

broadcast

public void broadcast(java.lang.String topic,
                      java.util.Dictionary data)
Broadcast with the specified topic and data parameters.

Parameters:
topic - The topic (String) parameter.
data - The data (Dictionary) parameter.

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.

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.

getKey

public java.lang.String getKey()
Gets the key (String) value.

Returns:
The key (String) value.
See Also:
setKey(String)

getParent

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

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

getPrefix

public java.lang.String getPrefix()
Gets the prefix (String) value.

Returns:
The prefix (String) value.
See Also:
prependPrefix(String)

getRefreshCount

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

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

getTimstamp

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

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

getTreeItem

public org.eclipse.swt.widgets.TreeItem getTreeItem()
Gets the tree item value.

Returns:
The tree item (TreeItem) value.
See Also:
setTreeItem(TreeItem)

getWindow

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

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

gray

public void gray()
Gray.


notificationReceived

public void notificationReceived(java.lang.String externalKey,
                                 java.lang.Object data)
Notification received with the specified external key and data parameters.

Parameters:
externalKey - The external key (String) parameter.
data - The data (Object) parameter.

openWindow

public void openWindow()
Open window.

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

prependPrefix

public java.lang.String prependPrefix(java.lang.String topic)
Prepend prefix with the specified topic parameter and return the String result.

Parameters:
topic - The topic (String) parameter.
Returns:
Results of the prepend prefix (String) value.
See Also:
getPrefix()

refresh

public void refresh()
Refresh.


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()

setGrayed

public void setGrayed(boolean state)
Sets the grayed value.

Parameters:
state - The state (boolean) parameter.

setKey

public void setKey(java.lang.String key)
Sets the key value.

Parameters:
key - The key (String) parameter.
See Also:
getKey()

setParent

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

Parameters:
parent - The parent (ProfileSwt) 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()

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)

setTreeItem

public void setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
Sets the tree item value.

Parameters:
treeItem - The tree item (TreeItem) parameter.
See Also:
getTreeItem()

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)

updateTree

public void updateTree()
Update tree.


2009-01-09 1.2.0

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