2009-01-09 1.2.0

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

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

public class CommandBridge
extends Bridge
implements CommandListener

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
CommandBridge(DeviceSwt parent, org.eclipse.swt.widgets.TableItem tableItem, CommandService control)
          Constructs an instance of this class from the specified table item and control parameters.
 
Method Summary
 void commandExecuted(CommandService source, java.lang.Object timestamp, java.lang.Object data)
          Command executed with the specified source, timestamp and data parameters.
 CommandService getCommand()
          Gets the command (CommandService) value.
 org.eclipse.swt.graphics.Image getImage()
          Gets the image value.
 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

CommandBridge

public CommandBridge(DeviceSwt parent,
                     org.eclipse.swt.widgets.TableItem tableItem,
                     CommandService control)
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.
control - The control (CommandService) parameter.
Method Detail

commandExecuted

public void commandExecuted(CommandService source,
                            java.lang.Object timestamp,
                            java.lang.Object data)
Command executed with the specified source, timestamp and data parameters.

Specified by:
commandExecuted in interface CommandListener
Parameters:
source - The source (CommandService) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

getCommand

public CommandService getCommand()
Gets the command (CommandService) value.

Returns:
The command (CommandService) value.

getImage

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

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

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.