|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.notification.client.NotificationClient
org.eclipse.soda.dk.device.swt.DeviceSwt
public class DeviceSwt
| Field Summary | |
|---|---|
protected org.eclipse.swt.graphics.Color |
activeColor
Define the active color (Color) field. |
protected org.eclipse.swt.graphics.Font |
boldFont
Define the bold font (Font) field. |
protected Bridge[] |
bridges
Define the bridges (Bridge[]) field. |
static int |
COMMAND_TYPE
Define the command type (int) constant. |
protected org.eclipse.swt.graphics.Image |
commandImage
Define the command image (Image) field. |
protected org.eclipse.swt.widgets.Menu |
commandPopupMenu
Define the command popup menu (Menu) field. |
protected int |
countIndex
Define the count index (int) field. |
protected int |
dataIndex
Define the data index (int) field. |
protected DeviceService |
device
Define the device (DeviceService) field. |
protected org.eclipse.swt.widgets.Display |
display
Define the display (Display) field. |
protected int |
fontHeight
Define the font height (int) field. |
protected java.lang.String |
fontName
Define the font name (String) field. |
static java.lang.String |
ID_VALUE
Define the id value (String) constant. |
protected org.eclipse.swt.graphics.Color |
inactiveColor
Define the inactive color (Color) field. |
protected org.eclipse.swt.graphics.Font |
italicFont
Define the italic font (Font) field. |
protected int |
keyIndex
Define the key index (int) field. |
protected org.eclipse.swt.graphics.Color |
littleActiveColor
Define the little active color (Color) field. |
static int |
MEASUREMENT_TYPE
Define the measurement type (int) constant. |
protected org.eclipse.swt.graphics.Image |
measurementImage
Define the measurement image (Image) field. |
protected org.eclipse.swt.widgets.Menu |
measurementPopupMenu
Define the measurement popup menu (Menu) field. |
protected org.eclipse.swt.graphics.Font |
normalFont
Define the normal font (Font) field. |
static java.lang.String |
PREFIX_VALUE
Define the prefix value (String) constant. |
protected org.eclipse.swt.widgets.Shell |
shell
Define the shell (Shell) field. |
static int |
SIGNAL_TYPE
Define the signal type (int) constant. |
protected org.eclipse.swt.graphics.Image |
signalImage
Define the signal image (Image) field. |
protected org.eclipse.swt.widgets.Menu |
signalPopupMenu
Define the signal popup menu (Menu) field. |
protected org.eclipse.swt.widgets.Table |
tableCommand
Define the table command (Table) field. |
protected org.eclipse.swt.widgets.Table |
tableMeasurement
Define the table measurement (Table) field. |
protected org.eclipse.swt.widgets.Table |
tableSignal
Define the table signal (Table) field. |
protected java.lang.Thread |
thread
Define the thread (Thread) field. |
protected int |
timeIndex
Define the time index (int) field. |
protected long |
timestamp
Define the timestamp (long) field. |
protected int |
timestampIndex
Define the timestamp index (int) field. |
protected TransportService |
transport
Define the transport (TransportService) field. |
| Fields inherited from class org.eclipse.soda.dk.notification.client.NotificationClient |
|---|
TOPIC_DELIMITER |
| Fields inherited from interface org.eclipse.soda.dk.device.service.DeviceListener |
|---|
ADDED, CHANGED, REMOVED |
| Constructor Summary | |
|---|---|
DeviceSwt()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
void |
controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
Control changed with the specified device, timestamp, control and code parameters. |
void |
createShell()
Create shell. |
org.eclipse.swt.widgets.Table |
createTable(org.eclipse.swt.widgets.Composite parent,
int type)
Create contents with the specified parent parameter. |
void |
deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
Device changed with the specified source, timestamp, new state and old state parameters. |
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
Error occurred with the specified source, timestamp and data parameters. |
org.eclipse.swt.graphics.Color |
getActiveColor()
Gets the active color (Color) value. |
org.eclipse.swt.graphics.Font |
getBoldFont()
Gets the bold font (Font) value. |
Bridge[] |
getBridges()
Gets the bridges (Bridge[]) value. |
org.eclipse.swt.graphics.Image |
getCommandImage()
Gets the command image (Image) value. |
org.eclipse.swt.widgets.Menu |
getCommandPopupMenu()
Gets the command popup menu (Menu) value. |
int |
getCountIndex()
Gets the count index (int) value. |
int |
getDataIndex()
Gets the data index (int) value. |
DeviceService |
getDefaultDevice()
Gets the default device (DeviceService) value. |
org.eclipse.soda.dk.notification.service.NotificationService |
getDefaultNotificationService()
Gets the default notification service (NotificationService) value. |
DeviceService |
getDevice()
Gets the device (DeviceService) value. |
org.eclipse.swt.widgets.Display |
getDisplay()
Gets the display value. |
int |
getFontHeight()
Gets the font height (int) value. |
java.lang.String |
getFontName()
Gets the font name (String) value. |
org.eclipse.swt.graphics.Color |
getInactiveColor()
Gets the inactive color (Color) value. |
org.eclipse.swt.graphics.Font |
getItalicFont()
Gets the italic font (Font) value. |
int |
getKeyIndex()
Gets the key index (int) value. |
org.eclipse.swt.graphics.Color |
getLittleActiveColor()
Gets the little active color (Color) value. |
org.eclipse.swt.graphics.Image |
getMeasurementImage()
Gets the measurement image (Image) value. |
org.eclipse.swt.widgets.Menu |
getMeasurementPopupMenu()
Gets the measurement popup menu (Menu) value. |
org.eclipse.swt.graphics.Font |
getNormalFont()
Gets the normal font (Font) value. |
org.eclipse.swt.widgets.Shell |
getShell()
Gets the shell value. |
org.eclipse.swt.graphics.Image |
getSignalImage()
Gets the signal image (Image) value. |
org.eclipse.swt.widgets.Menu |
getSignalPopupMenu()
Gets the signal popup menu (Menu) value. |
org.eclipse.swt.widgets.Table |
getTableCommand()
Gets the table command (Table) value. |
org.eclipse.swt.widgets.Table |
getTableMeasurement()
Gets the table measurement (Table) value. |
org.eclipse.swt.widgets.Table |
getTableSignal()
Gets the table signal (Table) value. |
java.lang.Thread |
getThread()
Gets the thread value. |
long |
getTimestamp()
Gets the timestamp (long) value. |
int |
getTimestampIndex()
Gets the timestamp index (int) value. |
java.lang.String |
getTitle()
Gets the title (String) value. |
TransportService |
getTransport()
Gets the transport (TransportService) value. |
boolean |
isActive()
Gets the active (boolean) value. |
static void |
main(java.lang.String[] arguments)
Main with the specified arguments parameter. |
void |
menuHidden(org.eclipse.swt.events.MenuEvent e)
Menu hidden with the specified e parameter. |
void |
menuShown(org.eclipse.swt.events.MenuEvent e)
Menu shown with the specified e parameter. |
protected void |
openControlWindow(Bridge bridge)
Get data dialog with the specified bridge parameter. |
void |
populateTables()
Populate tables. |
void |
refresh()
Refresh. |
void |
run()
Run. |
void |
run(java.lang.String[] arguments)
Run with the specified arguments parameter. |
void |
setActive(boolean active)
Sets the active value. |
void |
setActiveColor(org.eclipse.swt.graphics.Color activeColor)
Sets the active color value. |
void |
setBoldFont(org.eclipse.swt.graphics.Font boldFont)
Sets the bold font value. |
void |
setBridges(Bridge[] bridges)
Sets the bridges value. |
void |
setCommandImage(org.eclipse.swt.graphics.Image commandImage)
Sets the command image value. |
void |
setCommandPopupMenu(org.eclipse.swt.widgets.Menu commandPopupMenu)
Sets the command popup menu value. |
void |
setCountIndex(int countIndex)
Sets the count index value. |
void |
setDataIndex(int dataIndex)
Sets the data index value. |
void |
setDevice(DeviceService device)
Sets the device value. |
void |
setDisplay(org.eclipse.swt.widgets.Display display)
Sets the display value. |
void |
setFontHeight(int fontHeight)
Sets the font height value. |
void |
setFontName(java.lang.String fontName)
Sets the font name value. |
void |
setInactiveColor(org.eclipse.swt.graphics.Color inactiveColor)
Sets the inactive color value. |
void |
setItalicFont(org.eclipse.swt.graphics.Font italicFont)
Sets the italic font value. |
void |
setKeyIndex(int keyIndex)
Sets the key index value. |
void |
setLittleActiveColor(org.eclipse.swt.graphics.Color littleActiveColor)
Sets the little active color value. |
void |
setMeasurementImage(org.eclipse.swt.graphics.Image measurementImage)
Sets the measurement image value. |
void |
setMeasurementPopupMenu(org.eclipse.swt.widgets.Menu measurementPopupMenu)
Sets the measurement popup menu value. |
void |
setNormalFont(org.eclipse.swt.graphics.Font normalFont)
Sets the normal font value. |
void |
setShell(org.eclipse.swt.widgets.Shell shell)
Sets the shell value. |
void |
setSignalImage(org.eclipse.swt.graphics.Image signalImage)
Sets the signal image value. |
void |
setSignalPopupMenu(org.eclipse.swt.widgets.Menu signalPopupMenu)
Sets the signal popup menu value. |
void |
setTableCommand(org.eclipse.swt.widgets.Table tableCommand)
Sets the table command value. |
void |
setTableMeasurement(org.eclipse.swt.widgets.Table tableMeasurement)
Sets the table measurement value. |
void |
setTableSignal(org.eclipse.swt.widgets.Table tableSignal)
Sets the table signal value. |
void |
setThread(java.lang.Thread thread)
Sets the thread value. |
void |
setTimestamp(long timestamp)
Sets the timestamp value. |
void |
setTimestampIndex(int timestampIndex)
Sets the timestamp index value. |
void |
setTransport(TransportService transport)
Sets the transport value. |
void |
setupCommand(org.eclipse.swt.widgets.Composite composite)
Sets the up command value. |
void |
setupFonts(org.eclipse.swt.widgets.Table table)
Sets the up fonts value. |
void |
setupMeasurement(org.eclipse.swt.widgets.Composite composite)
Sets the up measurement value. |
void |
setupSignal(org.eclipse.swt.widgets.Composite composite)
Sets the up signal value. |
void |
start()
Start the test case. |
void |
startThread()
Start thread. |
void |
stop()
Stops the test case. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Widget default selected with the specified e parameter. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Widget selected with the specified e parameter. |
| Methods inherited from class org.eclipse.soda.dk.notification.client.NotificationClient |
|---|
broadcast, getNotificationController, getNotificationService, notificationReceived, prependPrefix, register, register, setNotificationController, setNotificationService, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ID_VALUE
public static final java.lang.String PREFIX_VALUE
public static final int COMMAND_TYPE
public static final int MEASUREMENT_TYPE
public static final int SIGNAL_TYPE
protected Bridge[] bridges
protected long timestamp
protected int keyIndex
protected int timestampIndex
protected int timeIndex
protected int countIndex
protected int dataIndex
protected DeviceService device
protected TransportService transport
protected org.eclipse.swt.widgets.Table tableSignal
protected org.eclipse.swt.widgets.Table tableCommand
protected org.eclipse.swt.widgets.Table tableMeasurement
protected org.eclipse.swt.widgets.Display display
protected org.eclipse.swt.widgets.Shell shell
protected java.lang.Thread thread
protected org.eclipse.swt.widgets.Menu signalPopupMenu
protected org.eclipse.swt.widgets.Menu commandPopupMenu
protected org.eclipse.swt.widgets.Menu measurementPopupMenu
protected org.eclipse.swt.graphics.Color activeColor
protected org.eclipse.swt.graphics.Color littleActiveColor
protected org.eclipse.swt.graphics.Color inactiveColor
protected org.eclipse.swt.graphics.Font normalFont
protected org.eclipse.swt.graphics.Font boldFont
protected org.eclipse.swt.graphics.Font italicFont
protected java.lang.String fontName
protected int fontHeight
protected org.eclipse.swt.graphics.Image commandImage
protected org.eclipse.swt.graphics.Image measurementImage
protected org.eclipse.swt.graphics.Image signalImage
| Constructor Detail |
|---|
public DeviceSwt()
| Method Detail |
|---|
public static void main(java.lang.String[] arguments)
arguments - The arguments (String[]) parameter.
public void controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
controlChanged in interface DeviceListenerdevice - The device (DeviceService) parameter.timestamp - The time stamp (Object) parameter.control - The control (ControlService) parameter.code - The code (int) parameter.deviceChanged(DeviceService,Object,int,int)public void createShell()
getShell(),
setShell(Shell)
public org.eclipse.swt.widgets.Table createTable(org.eclipse.swt.widgets.Composite parent,
int type)
parent - The parent (Composite) parameter.type - The type (int) parameter.
Table) value.
public void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
deviceChanged in interface DeviceListenersource - The source (DeviceService) parameter.timestamp - The time stamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.controlChanged(DeviceService,Object,ControlService,int)
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
errorOccurred in interface ErrorListenersource - The source (Object) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.public org.eclipse.swt.graphics.Color getActiveColor()
Color) value.getLittleActiveColor(),
setActiveColor(Color),
setLittleActiveColor(Color)public org.eclipse.swt.graphics.Font getBoldFont()
Font) value.setBoldFont(Font)public Bridge[] getBridges()
Bridge[]) value.setBridges(Bridge[])public org.eclipse.swt.graphics.Image getCommandImage()
Image) value.setCommandImage(Image)public org.eclipse.swt.widgets.Menu getCommandPopupMenu()
Menu) value.setCommandPopupMenu(Menu)public int getCountIndex()
int) value.setCountIndex(int)public int getDataIndex()
int) value.setDataIndex(int)
public DeviceService getDefaultDevice()
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
DeviceService) value.
java.lang.ClassNotFoundException - Class Not Found Exception.
java.lang.IllegalAccessException - Illegal Access Exception.
java.lang.InstantiationException - Instantiation Exception.public org.eclipse.soda.dk.notification.service.NotificationService getDefaultNotificationService()
NotificationService) value.public DeviceService getDevice()
DeviceService) value.getDefaultDevice(),
setDevice(DeviceService)public org.eclipse.swt.widgets.Display getDisplay()
Display) value.setDisplay(Display)public int getFontHeight()
int) value.setFontHeight(int)public java.lang.String getFontName()
String) value.setFontName(String)public org.eclipse.swt.graphics.Color getInactiveColor()
Color) value.setInactiveColor(Color)public org.eclipse.swt.graphics.Font getItalicFont()
Font) value.setItalicFont(Font)public int getKeyIndex()
int) value.setKeyIndex(int)public org.eclipse.swt.graphics.Color getLittleActiveColor()
Color) value.setLittleActiveColor(Color)public org.eclipse.swt.graphics.Image getMeasurementImage()
Image) value.setMeasurementImage(Image)public org.eclipse.swt.widgets.Menu getMeasurementPopupMenu()
Menu) value.setMeasurementPopupMenu(Menu)public org.eclipse.swt.graphics.Font getNormalFont()
Font) value.setNormalFont(Font)public org.eclipse.swt.widgets.Shell getShell()
Shell) value.createShell(),
setShell(Shell)public org.eclipse.swt.graphics.Image getSignalImage()
Image) value.setSignalImage(Image)public org.eclipse.swt.widgets.Menu getSignalPopupMenu()
Menu) value.setSignalPopupMenu(Menu)public org.eclipse.swt.widgets.Table getTableCommand()
Table) value.setTableCommand(Table)public org.eclipse.swt.widgets.Table getTableMeasurement()
Table) value.setTableMeasurement(Table)public org.eclipse.swt.widgets.Table getTableSignal()
Table) value.setTableSignal(Table)public java.lang.Thread getThread()
Thread) value.setThread(Thread),
startThread()public long getTimestamp()
long) value.setTimestamp(long)public int getTimestampIndex()
int) value.setTimestampIndex(int)public java.lang.String getTitle()
String) value.public TransportService getTransport()
TransportService) value.setTransport(TransportService)public boolean isActive()
boolean) value.setActive(boolean)public void menuHidden(org.eclipse.swt.events.MenuEvent e)
menuHidden in interface org.eclipse.swt.events.MenuListenere - The e (MenuEvent) parameter.public void menuShown(org.eclipse.swt.events.MenuEvent e)
menuShown in interface org.eclipse.swt.events.MenuListenere - The e (MenuEvent) parameter.protected void openControlWindow(Bridge bridge)
bridge - The bridge (Bridge) parameter.public void populateTables()
public void refresh()
public void run()
run in interface java.lang.Runnablerun(String[])public void run(java.lang.String[] arguments)
arguments - The arguments (String[]) parameter.run()public void setActive(boolean active)
active - The active (boolean) parameter.isActive()public void setActiveColor(org.eclipse.swt.graphics.Color activeColor)
activeColor - The active color (Color) parameter.getActiveColor(),
getLittleActiveColor(),
setLittleActiveColor(Color)public void setBoldFont(org.eclipse.swt.graphics.Font boldFont)
boldFont - The bold font (Font) parameter.getBoldFont()public void setBridges(Bridge[] bridges)
bridges - The bridges (Bridge[]) parameter.getBridges()public void setCommandImage(org.eclipse.swt.graphics.Image commandImage)
commandImage - The command image (Image) parameter.getCommandImage()public void setCommandPopupMenu(org.eclipse.swt.widgets.Menu commandPopupMenu)
commandPopupMenu - The command popup menu (Menu) parameter.getCommandPopupMenu()public void setCountIndex(int countIndex)
countIndex - The count index (int) parameter.getCountIndex()public void setDataIndex(int dataIndex)
dataIndex - The data index (int) parameter.getDataIndex()public void setDevice(DeviceService device)
device - The device (DeviceService) parameter.getDefaultDevice(),
getDevice()public void setDisplay(org.eclipse.swt.widgets.Display display)
display - The display (Display) parameter.getDisplay()public void setFontHeight(int fontHeight)
fontHeight - The font height (int) parameter.getFontHeight()public void setFontName(java.lang.String fontName)
fontName - The font name (String) parameter.getFontName()public void setInactiveColor(org.eclipse.swt.graphics.Color inactiveColor)
inactiveColor - The inactive color (Color) parameter.getInactiveColor()public void setItalicFont(org.eclipse.swt.graphics.Font italicFont)
italicFont - The italic font (Font) parameter.getItalicFont()public void setKeyIndex(int keyIndex)
keyIndex - The key index (int) parameter.getKeyIndex()public void setLittleActiveColor(org.eclipse.swt.graphics.Color littleActiveColor)
littleActiveColor - The little active color (Color) parameter.getLittleActiveColor()public void setMeasurementImage(org.eclipse.swt.graphics.Image measurementImage)
measurementImage - The measurement image (Image) parameter.getMeasurementImage()public void setMeasurementPopupMenu(org.eclipse.swt.widgets.Menu measurementPopupMenu)
measurementPopupMenu - The measurement popup menu (Menu) parameter.getMeasurementPopupMenu()public void setNormalFont(org.eclipse.swt.graphics.Font normalFont)
normalFont - The normal font (Font) parameter.getNormalFont()public void setShell(org.eclipse.swt.widgets.Shell shell)
shell - The shell (Shell) parameter.createShell(),
getShell()public void setSignalImage(org.eclipse.swt.graphics.Image signalImage)
signalImage - The signal image (Image) parameter.getSignalImage()public void setSignalPopupMenu(org.eclipse.swt.widgets.Menu signalPopupMenu)
signalPopupMenu - The signal popup menu (Menu) parameter.getSignalPopupMenu()public void setTableCommand(org.eclipse.swt.widgets.Table tableCommand)
tableCommand - The table command (Table) parameter.getTableCommand()public void setTableMeasurement(org.eclipse.swt.widgets.Table tableMeasurement)
tableMeasurement - The table measurement (Table) parameter.getTableMeasurement()public void setTableSignal(org.eclipse.swt.widgets.Table tableSignal)
tableSignal - The table signal (Table) parameter.getTableSignal()public void setThread(java.lang.Thread thread)
thread - The thread (Thread) parameter.getThread(),
startThread()public void setTimestamp(long timestamp)
timestamp - The time stamp (long) parameter.getTimestamp()public void setTimestampIndex(int timestampIndex)
timestampIndex - The time stamp index (int) parameter.getTimestampIndex()public void setTransport(TransportService transport)
transport - The transport (TransportService) parameter.getTransport()public void setupCommand(org.eclipse.swt.widgets.Composite composite)
composite - The composite (Composite) parameter.getTableCommand(),
setTableCommand(Table)public void setupFonts(org.eclipse.swt.widgets.Table table)
table - The table (Table) parameter.public void setupMeasurement(org.eclipse.swt.widgets.Composite composite)
composite - The composite (Composite) parameter.getTableMeasurement(),
setTableMeasurement(Table)public void setupSignal(org.eclipse.swt.widgets.Composite composite)
composite - The composite (Composite) parameter.getTableSignal(),
setTableSignal(Table)public void start()
public void startThread()
getThread(),
setThread(Thread)public void stop()
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenere - The e (SelectionEvent) parameter.public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected in interface org.eclipse.swt.events.SelectionListenere - The e (SelectionEvent) parameter.widgetDefaultSelected(SelectionEvent)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||