2009-01-09 1.2.0

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

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.notification.client.NotificationClient
          extended by org.eclipse.soda.dk.profile.swt.ProfileSwt
All Implemented Interfaces:
java.lang.Runnable, java.util.Comparator, java.util.EventListener, DeviceListener, ErrorListener, org.eclipse.swt.events.MenuListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
ControlProfileSwt

public class ProfileSwt
extends org.eclipse.soda.dk.notification.client.NotificationClient
implements java.util.Comparator, java.lang.Runnable, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.MenuListener, DeviceListener

Since:
1.0
Version:
1.2.0

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 CAP
          Define the cap (int) constant.
protected  java.util.Map capabilities
          Define the capabilities (Map) field.
protected  java.lang.String capabilitiesTopic
          Define the capabilities topic (String) field.
static int CAPWORDS
          Define the capwords (int) constant.
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  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 LOWER
          Define the lower (int) constant.
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  ProfileService profile
          Define the device (ProfileService) field.
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  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  java.util.Map topicMap
          Define the topic map (Map) field.
protected  TransportService transport
          Define the transport (TransportService) field.
protected  org.eclipse.swt.widgets.Tree treeCommand
          Define the tree command (Tree) field.
protected  org.eclipse.swt.widgets.Tree treeMeasurement
          Define the tree measurement (Tree) field.
protected  org.eclipse.swt.widgets.Tree treeSignal
          Define the tree signal (Tree) field.
 
Fields inherited from class org.eclipse.soda.dk.notification.client.NotificationClient
TOPIC_DELIMITER
 
Fields inherited from class org.eclipse.soda.dk.core.EscObject
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, ID_NAME_KEY, INTEGER_TABLE, INTEGER_TABLE_SIZE, KEY_KEY, LOG_DEBUG, LOG_DEFAULT, LOG_ERROR, LOG_INFO, LOG_LEVEL_KEY, LOG_TRACE, LOG_WARNING, LONG_TABLE, LONG_TABLE_SIZE, PREFIX_KEY, READONLY_EMPTY_COLLECTION, READONLY_EMPTY_LIST, READONLY_EMPTY_MAP, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE, Unmodifiable
 
Fields inherited from interface org.eclipse.soda.dk.device.service.DeviceListener
ADDED, CHANGED, REMOVED
 
Constructor Summary
ProfileSwt()
          Constructs an instance of this class.
 
Method Summary
static java.lang.String betterName(java.lang.String data, int type)
          Better name with the specified data and type parameters and return the String result.
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare with the specified o1 and o2 parameters and return the int result.
 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.Tree createTree(org.eclipse.swt.widgets.Composite parent, int type)
          Create tree with the specified parent and type parameters and return the Tree result.
 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.
 java.lang.String[] getAllCommandNames()
          Gets the all command names (String[]) value.
 java.lang.String[] getAllMeasurmentNames()
          Gets the all measurment names (String[]) value.
 java.lang.String[] getAllSignalNames()
          Gets the all signal names (String[]) value.
 org.eclipse.swt.graphics.Font getBoldFont()
          Gets the bold font (Font) value.
 Bridge[] getBridges()
          Gets the bridges (Bridge[]) value.
 java.util.Map getCapabilities()
          Gets the capabilities (Map) value.
 java.lang.String getCapabilitiesTopic()
          Gets the capabilities topic (String) 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.
 org.eclipse.soda.dk.notification.service.NotificationService getDefaultNotificationService()
          Gets the default notification service (NotificationService) value.
 ProfileService getDefaultProfile()
          Gets the default device (ProfileService) 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.
 ProfileService getProfile()
          Gets the device (ProfileService) 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.
 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.
 java.util.Map getTopicMap()
          Gets the topic map (Map) value.
 TransportService getTransport()
          Gets the transport (TransportService) value.
 org.eclipse.swt.widgets.Tree getTreeCommand()
          Gets the tree command (Tree) value.
 org.eclipse.swt.widgets.Tree getTreeMeasurement()
          Gets the tree measurement (Tree) value.
 org.eclipse.swt.widgets.Tree getTreeSignal()
          Gets the tree signal (Tree) value.
 void handleCapabilities(java.util.Map map)
          Handle capabilities with the specified map parameter.
 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.
 void notificationReceived(java.lang.String externalKey, java.lang.Object data)
          Notification received with the specified external key and data parameters.
protected  void openControlWindow(Bridge bridge)
          Get data dialog with the specified bridge parameter.
 void populateTrees()
          Populate trees.
 void populateTrees(java.util.Map map)
          Populate trees.
 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 setCapabilities(java.util.Map capabilities)
          Sets the capabilities value.
 void setCapabilitiesTopic(java.lang.String capabilitiesTopic)
          Sets the capabilities topic 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 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 setProfile(ProfileService profile)
          Sets the device 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 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 setTopicMap(java.util.Map topicMap)
          Sets the topic map value.
 void setTransport(TransportService transport)
          Sets the transport value.
 void setTreeCommand(org.eclipse.swt.widgets.Tree treeCommand)
          Sets the tree command value.
 void setTreeMeasurement(org.eclipse.swt.widgets.Tree treeMeasurement)
          Sets the tree measurement value.
 void setTreeSignal(org.eclipse.swt.widgets.Tree treeSignal)
          Sets the tree signal value.
 void setupCommand(org.eclipse.swt.widgets.Composite composite)
          Sets the up command value.
 void setupFonts(org.eclipse.swt.widgets.Tree tree)
          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, prependPrefix, register, register, setNotificationController, setNotificationService, unregister
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
attemptRecoveryFromError, createBoolean, createDefaultLogService, createException, createException, createInteger, createIntegerTable, createLong, createLongTable, createNumber, format, getBoolean, getByte, getChar, getConfigurationService, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getDouble, getErrorSeverity, getFloat, getId, getIdName, getInt, getLoadLibraryName, getLogDetails, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails4, getLogDetails5, getLogDetails6, getLogDetails7, getLogLevel, getLogService, getLong, getObject, getOutputName, getReadOnlyEmptyCollection, getReadOnlyEmptyList, getReadOnlyEmptyMap, getResource, getShort, getSimpleClassName, getStaticBoolean, getStaticByte, getStaticChar, getStaticDouble, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticShort, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleError, handleErrorInternal, handleStaticError, handleStaticException, isBackward, isDebug, isLogging, isTrace, isUnmodifiable, loadService, log, log, log, report, report, report, report, report, report, report, reportError, reportSystemInfo, setBackward, setDebug, setDefaultLogService, setLogService, setTraceLevel, setUnmodifiable, shouldLog, sleep, startupEscStatic, toString, toStringConfigurationKeys, toStringInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

LOWER

public static final int LOWER
Define the lower (int) constant.

See Also:
Constant Field Values

CAP

public static final int CAP
Define the cap (int) constant.

See Also:
Constant Field Values

CAPWORDS

public static final int CAPWORDS
Define the capwords (int) constant.

See Also:
Constant Field Values

ID_VALUE

public static final java.lang.String ID_VALUE
Define the id value (String) constant.

See Also:
Constant Field Values

PREFIX_VALUE

public static final java.lang.String PREFIX_VALUE
Define the prefix value (String) constant.

See Also:
Constant Field Values

COMMAND_TYPE

public static final int COMMAND_TYPE
Define the command type (int) constant.

See Also:
Constant Field Values

MEASUREMENT_TYPE

public static final int MEASUREMENT_TYPE
Define the measurement type (int) constant.

See Also:
Constant Field Values

SIGNAL_TYPE

public static final int SIGNAL_TYPE
Define the signal type (int) constant.

See Also:
Constant Field Values

bridges

protected Bridge[] bridges
Define the bridges (Bridge[]) field.


timestamp

protected long timestamp
Define the timestamp (long) field.


keyIndex

protected int keyIndex
Define the key index (int) field.


timestampIndex

protected int timestampIndex
Define the timestamp index (int) field.


timeIndex

protected int timeIndex
Define the time index (int) field.


countIndex

protected int countIndex
Define the count index (int) field.


dataIndex

protected int dataIndex
Define the data index (int) field.


profile

protected ProfileService profile
Define the device (ProfileService) field.


transport

protected TransportService transport
Define the transport (TransportService) field.


treeSignal

protected org.eclipse.swt.widgets.Tree treeSignal
Define the tree signal (Tree) field.


treeCommand

protected org.eclipse.swt.widgets.Tree treeCommand
Define the tree command (Tree) field.


treeMeasurement

protected org.eclipse.swt.widgets.Tree treeMeasurement
Define the tree measurement (Tree) field.


display

protected org.eclipse.swt.widgets.Display display
Define the display (Display) field.


shell

protected org.eclipse.swt.widgets.Shell shell
Define the shell (Shell) field.


thread

protected java.lang.Thread thread
Define the thread (Thread) field.


signalPopupMenu

protected org.eclipse.swt.widgets.Menu signalPopupMenu
Define the signal popup menu (Menu) field.


commandPopupMenu

protected org.eclipse.swt.widgets.Menu commandPopupMenu
Define the command popup menu (Menu) field.


measurementPopupMenu

protected org.eclipse.swt.widgets.Menu measurementPopupMenu
Define the measurement popup menu (Menu) field.


activeColor

protected org.eclipse.swt.graphics.Color activeColor
Define the active color (Color) field.


littleActiveColor

protected org.eclipse.swt.graphics.Color littleActiveColor
Define the little active color (Color) field.


inactiveColor

protected org.eclipse.swt.graphics.Color inactiveColor
Define the inactive color (Color) field.


normalFont

protected org.eclipse.swt.graphics.Font normalFont
Define the normal font (Font) field.


boldFont

protected org.eclipse.swt.graphics.Font boldFont
Define the bold font (Font) field.


italicFont

protected org.eclipse.swt.graphics.Font italicFont
Define the italic font (Font) field.


fontName

protected java.lang.String fontName
Define the font name (String) field.


fontHeight

protected int fontHeight
Define the font height (int) field.


commandImage

protected org.eclipse.swt.graphics.Image commandImage
Define the command image (Image) field.


measurementImage

protected org.eclipse.swt.graphics.Image measurementImage
Define the measurement image (Image) field.


signalImage

protected org.eclipse.swt.graphics.Image signalImage
Define the signal image (Image) field.


capabilitiesTopic

protected java.lang.String capabilitiesTopic
Define the capabilities topic (String) field.


capabilities

protected java.util.Map capabilities
Define the capabilities (Map) field.


topicMap

protected java.util.Map topicMap
Define the topic map (Map) field.

Constructor Detail

ProfileSwt

public ProfileSwt()
Constructs an instance of this class.

Method Detail

betterName

public static java.lang.String betterName(java.lang.String data,
                                          int type)
Better name with the specified data and type parameters and return the String result.

Parameters:
data - The data (String) parameter.
type - The type (int) parameter.
Returns:
Results of the better name (String) value.
See Also:
getFontName(), setFontName(String)

main

public static void main(java.lang.String[] arguments)
Main with the specified arguments parameter.

Parameters:
arguments - The arguments (String[]) parameter.

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare with the specified o1 and o2 parameters and return the int result.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - The o1 (Object) parameter.
o2 - The o2 (Object) parameter.
Returns:
Results of the compare (int) value.

controlChanged

public void controlChanged(DeviceService device,
                           java.lang.Object timestamp,
                           ControlService control,
                           int code)
Control changed with the specified device, timestamp, control and code parameters.

Specified by:
controlChanged in interface DeviceListener
Parameters:
device - The device (DeviceService) parameter.
timestamp - The time stamp (Object) parameter.
control - The control (ControlService) parameter.
code - The code (int) parameter.
See Also:
deviceChanged(DeviceService,Object,int,int)

createShell

public void createShell()
Create shell.

See Also:
getShell(), setShell(Shell)

createTree

public org.eclipse.swt.widgets.Tree createTree(org.eclipse.swt.widgets.Composite parent,
                                               int type)
Create tree with the specified parent and type parameters and return the Tree result.

Parameters:
parent - The parent (Composite) parameter.
type - The type (int) parameter.
Returns:
Results of the create tree (Tree) value.

deviceChanged

public 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.

Specified by:
deviceChanged in interface DeviceListener
Parameters:
source - The source (DeviceService) parameter.
timestamp - The time stamp (Object) parameter.
newState - The new state (int) parameter.
oldState - The old state (int) parameter.
See Also:
controlChanged(DeviceService,Object,ControlService,int)

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.

Specified by:
errorOccurred in interface ErrorListener
Parameters:
source - The source (Object) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.

getActiveColor

public org.eclipse.swt.graphics.Color getActiveColor()
Gets the active color (Color) value.

Returns:
The active color (Color) value.
See Also:
getLittleActiveColor(), setActiveColor(Color), setLittleActiveColor(Color)

getAllCommandNames

public java.lang.String[] getAllCommandNames()
Gets the all command names (String[]) value.

Returns:
The all command names (String[]) value.

getAllMeasurmentNames

public java.lang.String[] getAllMeasurmentNames()
Gets the all measurment names (String[]) value.

Returns:
The all measurment names (String[]) value.

getAllSignalNames

public java.lang.String[] getAllSignalNames()
Gets the all signal names (String[]) value.

Returns:
The all signal names (String[]) value.

getBoldFont

public org.eclipse.swt.graphics.Font getBoldFont()
Gets the bold font (Font) value.

Returns:
The bold font (Font) value.
See Also:
setBoldFont(Font)

getBridges

public Bridge[] getBridges()
Gets the bridges (Bridge[]) value.

Returns:
The bridges (Bridge[]) value.
See Also:
setBridges(Bridge[])

getCapabilities

public java.util.Map getCapabilities()
Gets the capabilities (Map) value.

Returns:
The capabilities (Map) value.
See Also:
handleCapabilities(Map), setCapabilities(Map)

getCapabilitiesTopic

public java.lang.String getCapabilitiesTopic()
Gets the capabilities topic (String) value.

Returns:
The capabilities topic (String) value.
See Also:
setCapabilitiesTopic(String)

getCommandImage

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

Returns:
The command image (Image) value.
See Also:
setCommandImage(Image)

getCommandPopupMenu

public org.eclipse.swt.widgets.Menu getCommandPopupMenu()
Gets the command popup menu (Menu) value.

Returns:
The command popup menu (Menu) value.
See Also:
setCommandPopupMenu(Menu)

getCountIndex

public int getCountIndex()
Gets the count index (int) value.

Returns:
The count index (int) value.
See Also:
setCountIndex(int)

getDataIndex

public int getDataIndex()
Gets the data index (int) value.

Returns:
The data index (int) value.
See Also:
setDataIndex(int)

getDefaultNotificationService

public org.eclipse.soda.dk.notification.service.NotificationService getDefaultNotificationService()
Gets the default notification service (NotificationService) value.

Returns:
The default notification service (NotificationService) value.

getDefaultProfile

public ProfileService getDefaultProfile()
                                 throws java.lang.ClassNotFoundException,
                                        java.lang.IllegalAccessException,
                                        java.lang.InstantiationException
Gets the default device (ProfileService) value. Class Not Found Exception. Illegal Access Exception. Instantiation Exception.

Returns:
The default device (ProfileService) value.
Throws:
java.lang.ClassNotFoundException - Class Not Found Exception.
java.lang.IllegalAccessException - Illegal Access Exception.
java.lang.InstantiationException - Instantiation Exception.

getDisplay

public org.eclipse.swt.widgets.Display getDisplay()
Gets the display value.

Returns:
The display (Display) value.
See Also:
setDisplay(Display)

getFontHeight

public int getFontHeight()
Gets the font height (int) value.

Returns:
The font height (int) value.
See Also:
setFontHeight(int)

getFontName

public java.lang.String getFontName()
Gets the font name (String) value.

Returns:
The font name (String) value.
See Also:
setFontName(String)

getInactiveColor

public org.eclipse.swt.graphics.Color getInactiveColor()
Gets the inactive color (Color) value.

Returns:
The inactive color (Color) value.
See Also:
setInactiveColor(Color)

getItalicFont

public org.eclipse.swt.graphics.Font getItalicFont()
Gets the italic font (Font) value.

Returns:
The italic font (Font) value.
See Also:
setItalicFont(Font)

getKeyIndex

public int getKeyIndex()
Gets the key index (int) value.

Returns:
The key index (int) value.
See Also:
setKeyIndex(int)

getLittleActiveColor

public org.eclipse.swt.graphics.Color getLittleActiveColor()
Gets the little active color (Color) value.

Returns:
The little active color (Color) value.
See Also:
setLittleActiveColor(Color)

getMeasurementImage

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

Returns:
The measurement image (Image) value.
See Also:
setMeasurementImage(Image)

getMeasurementPopupMenu

public org.eclipse.swt.widgets.Menu getMeasurementPopupMenu()
Gets the measurement popup menu (Menu) value.

Returns:
The measurement popup menu (Menu) value.
See Also:
setMeasurementPopupMenu(Menu)

getNormalFont

public org.eclipse.swt.graphics.Font getNormalFont()
Gets the normal font (Font) value.

Returns:
The normal font (Font) value.
See Also:
setNormalFont(Font)

getProfile

public ProfileService getProfile()
Gets the device (ProfileService) value.

Returns:
The device (ProfileService) value.
See Also:
getDefaultProfile(), setProfile(ProfileService)

getShell

public org.eclipse.swt.widgets.Shell getShell()
Gets the shell value.

Returns:
The shell (Shell) value.
See Also:
createShell(), setShell(Shell)

getSignalImage

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

Returns:
The signal image (Image) value.
See Also:
setSignalImage(Image)

getSignalPopupMenu

public org.eclipse.swt.widgets.Menu getSignalPopupMenu()
Gets the signal popup menu (Menu) value.

Returns:
The signal popup menu (Menu) value.
See Also:
setSignalPopupMenu(Menu)

getThread

public java.lang.Thread getThread()
Gets the thread value.

Returns:
The thread (Thread) value.
See Also:
setThread(Thread), startThread()

getTimestamp

public long getTimestamp()
Gets the timestamp (long) value.

Returns:
The timestamp (long) value.
See Also:
setTimestamp(long)

getTimestampIndex

public int getTimestampIndex()
Gets the timestamp index (int) value.

Returns:
The timestamp index (int) value.
See Also:
setTimestampIndex(int)

getTitle

public java.lang.String getTitle()
Gets the title (String) value.

Returns:
The title (String) value.

getTopicMap

public java.util.Map getTopicMap()
Gets the topic map (Map) value.

Returns:
The topic map (Map) value.
See Also:
setTopicMap(Map)

getTransport

public TransportService getTransport()
Gets the transport (TransportService) value.

Returns:
The transport (TransportService) value.
See Also:
setTransport(TransportService)

getTreeCommand

public org.eclipse.swt.widgets.Tree getTreeCommand()
Gets the tree command (Tree) value.

Returns:
The tree command (Tree) value.
See Also:
setTreeCommand(Tree)

getTreeMeasurement

public org.eclipse.swt.widgets.Tree getTreeMeasurement()
Gets the tree measurement (Tree) value.

Returns:
The tree measurement (Tree) value.
See Also:
setTreeMeasurement(Tree)

getTreeSignal

public org.eclipse.swt.widgets.Tree getTreeSignal()
Gets the tree signal (Tree) value.

Returns:
The tree signal (Tree) value.
See Also:
setTreeSignal(Tree)

handleCapabilities

public void handleCapabilities(java.util.Map map)
Handle capabilities with the specified map parameter.

Parameters:
map - The map (Map) parameter.
See Also:
getCapabilities(), setCapabilities(Map)

isActive

public boolean isActive()
Gets the active (boolean) value.

Returns:
The active (boolean) value.
See Also:
setActive(boolean)

menuHidden

public void menuHidden(org.eclipse.swt.events.MenuEvent e)
Menu hidden with the specified e parameter.

Specified by:
menuHidden in interface org.eclipse.swt.events.MenuListener
Parameters:
e - The e (MenuEvent) parameter.

menuShown

public void menuShown(org.eclipse.swt.events.MenuEvent e)
Menu shown with the specified e parameter.

Specified by:
menuShown in interface org.eclipse.swt.events.MenuListener
Parameters:
e - The e (MenuEvent) parameter.

notificationReceived

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

Overrides:
notificationReceived in class org.eclipse.soda.dk.notification.client.NotificationClient
Parameters:
externalKey - The external key (String) parameter.
data - The data (Object) parameter.

openControlWindow

protected void openControlWindow(Bridge bridge)
Get data dialog with the specified bridge parameter.

Parameters:
bridge - The bridge (Bridge) parameter.

populateTrees

public void populateTrees()
Populate trees.

See Also:
populateTrees(Map)

populateTrees

public void populateTrees(java.util.Map map)
Populate trees.

Parameters:
map - The map (Map) parameter.
See Also:
populateTrees()

refresh

public void refresh()
Refresh.


run

public void run()
Run.

Specified by:
run in interface java.lang.Runnable
See Also:
run(String[])

run

public void run(java.lang.String[] arguments)
Run with the specified arguments parameter.

Parameters:
arguments - The arguments (String[]) parameter.
See Also:
run()

setActive

public void setActive(boolean active)
Sets the active value.

Parameters:
active - The active (boolean) parameter.
See Also:
isActive()

setActiveColor

public void setActiveColor(org.eclipse.swt.graphics.Color activeColor)
Sets the active color value.

Parameters:
activeColor - The active color (Color) parameter.
See Also:
getActiveColor(), getLittleActiveColor(), setLittleActiveColor(Color)

setBoldFont

public void setBoldFont(org.eclipse.swt.graphics.Font boldFont)
Sets the bold font value.

Parameters:
boldFont - The bold font (Font) parameter.
See Also:
getBoldFont()

setBridges

public void setBridges(Bridge[] bridges)
Sets the bridges value.

Parameters:
bridges - The bridges (Bridge[]) parameter.
See Also:
getBridges()

setCapabilities

public void setCapabilities(java.util.Map capabilities)
Sets the capabilities value.

Parameters:
capabilities - The capabilities (Map) parameter.
See Also:
getCapabilities(), handleCapabilities(Map)

setCapabilitiesTopic

public void setCapabilitiesTopic(java.lang.String capabilitiesTopic)
Sets the capabilities topic value.

Parameters:
capabilitiesTopic - The capabilities topic (String) parameter.
See Also:
getCapabilitiesTopic()

setCommandImage

public void setCommandImage(org.eclipse.swt.graphics.Image commandImage)
Sets the command image value.

Parameters:
commandImage - The command image (Image) parameter.
See Also:
getCommandImage()

setCommandPopupMenu

public void setCommandPopupMenu(org.eclipse.swt.widgets.Menu commandPopupMenu)
Sets the command popup menu value.

Parameters:
commandPopupMenu - The command popup menu (Menu) parameter.
See Also:
getCommandPopupMenu()

setCountIndex

public void setCountIndex(int countIndex)
Sets the count index value.

Parameters:
countIndex - The count index (int) parameter.
See Also:
getCountIndex()

setDataIndex

public void setDataIndex(int dataIndex)
Sets the data index value.

Parameters:
dataIndex - The data index (int) parameter.
See Also:
getDataIndex()

setDisplay

public void setDisplay(org.eclipse.swt.widgets.Display display)
Sets the display value.

Parameters:
display - The display (Display) parameter.
See Also:
getDisplay()

setFontHeight

public void setFontHeight(int fontHeight)
Sets the font height value.

Parameters:
fontHeight - The font height (int) parameter.
See Also:
getFontHeight()

setFontName

public void setFontName(java.lang.String fontName)
Sets the font name value.

Parameters:
fontName - The font name (String) parameter.
See Also:
getFontName()

setInactiveColor

public void setInactiveColor(org.eclipse.swt.graphics.Color inactiveColor)
Sets the inactive color value.

Parameters:
inactiveColor - The inactive color (Color) parameter.
See Also:
getInactiveColor()

setItalicFont

public void setItalicFont(org.eclipse.swt.graphics.Font italicFont)
Sets the italic font value.

Parameters:
italicFont - The italic font (Font) parameter.
See Also:
getItalicFont()

setKeyIndex

public void setKeyIndex(int keyIndex)
Sets the key index value.

Parameters:
keyIndex - The key index (int) parameter.
See Also:
getKeyIndex()

setLittleActiveColor

public void setLittleActiveColor(org.eclipse.swt.graphics.Color littleActiveColor)
Sets the little active color value.

Parameters:
littleActiveColor - The little active color (Color) parameter.
See Also:
getLittleActiveColor()

setMeasurementImage

public void setMeasurementImage(org.eclipse.swt.graphics.Image measurementImage)
Sets the measurement image value.

Parameters:
measurementImage - The measurement image (Image) parameter.
See Also:
getMeasurementImage()

setMeasurementPopupMenu

public void setMeasurementPopupMenu(org.eclipse.swt.widgets.Menu measurementPopupMenu)
Sets the measurement popup menu value.

Parameters:
measurementPopupMenu - The measurement popup menu (Menu) parameter.
See Also:
getMeasurementPopupMenu()

setNormalFont

public void setNormalFont(org.eclipse.swt.graphics.Font normalFont)
Sets the normal font value.

Parameters:
normalFont - The normal font (Font) parameter.
See Also:
getNormalFont()

setProfile

public void setProfile(ProfileService profile)
Sets the device value.

Parameters:
profile - The profile (ProfileService) parameter.
See Also:
getDefaultProfile(), getProfile()

setShell

public void setShell(org.eclipse.swt.widgets.Shell shell)
Sets the shell value.

Parameters:
shell - The shell (Shell) parameter.
See Also:
createShell(), getShell()

setSignalImage

public void setSignalImage(org.eclipse.swt.graphics.Image signalImage)
Sets the signal image value.

Parameters:
signalImage - The signal image (Image) parameter.
See Also:
getSignalImage()

setSignalPopupMenu

public void setSignalPopupMenu(org.eclipse.swt.widgets.Menu signalPopupMenu)
Sets the signal popup menu value.

Parameters:
signalPopupMenu - The signal popup menu (Menu) parameter.
See Also:
getSignalPopupMenu()

setThread

public void setThread(java.lang.Thread thread)
Sets the thread value.

Parameters:
thread - The thread (Thread) parameter.
See Also:
getThread(), startThread()

setTimestamp

public void setTimestamp(long timestamp)
Sets the timestamp value.

Parameters:
timestamp - The time stamp (long) parameter.
See Also:
getTimestamp()

setTimestampIndex

public void setTimestampIndex(int timestampIndex)
Sets the timestamp index value.

Parameters:
timestampIndex - The time stamp index (int) parameter.
See Also:
getTimestampIndex()

setTopicMap

public void setTopicMap(java.util.Map topicMap)
Sets the topic map value.

Parameters:
topicMap - The topic map (Map) parameter.
See Also:
getTopicMap()

setTransport

public void setTransport(TransportService transport)
Sets the transport value.

Parameters:
transport - The transport (TransportService) parameter.
See Also:
getTransport()

setTreeCommand

public void setTreeCommand(org.eclipse.swt.widgets.Tree treeCommand)
Sets the tree command value.

Parameters:
treeCommand - The tree command (Tree) parameter.
See Also:
getTreeCommand()

setTreeMeasurement

public void setTreeMeasurement(org.eclipse.swt.widgets.Tree treeMeasurement)
Sets the tree measurement value.

Parameters:
treeMeasurement - The tree measurement (Tree) parameter.
See Also:
getTreeMeasurement()

setTreeSignal

public void setTreeSignal(org.eclipse.swt.widgets.Tree treeSignal)
Sets the tree signal value.

Parameters:
treeSignal - The tree signal (Tree) parameter.
See Also:
getTreeSignal()

setupCommand

public void setupCommand(org.eclipse.swt.widgets.Composite composite)
Sets the up command value.

Parameters:
composite - The composite (Composite) parameter.
See Also:
getTreeCommand(), setTreeCommand(Tree)

setupFonts

public void setupFonts(org.eclipse.swt.widgets.Tree tree)
Sets the up fonts value.

Parameters:
tree - The tree (Tree) parameter.

setupMeasurement

public void setupMeasurement(org.eclipse.swt.widgets.Composite composite)
Sets the up measurement value.

Parameters:
composite - The composite (Composite) parameter.
See Also:
getTreeMeasurement(), setTreeMeasurement(Tree)

setupSignal

public void setupSignal(org.eclipse.swt.widgets.Composite composite)
Sets the up signal value.

Parameters:
composite - The composite (Composite) parameter.
See Also:
getTreeSignal(), setTreeSignal(Tree)

start

public void start()
Start the test case.


startThread

public void startThread()
Start thread.

See Also:
getThread(), setThread(Thread)

stop

public void stop()
Stops the test case.


widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Widget default selected with the specified e parameter.

Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
e - The e (SelectionEvent) parameter.

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Widget selected with the specified e parameter.

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
e - The e (SelectionEvent) parameter.
See Also:
widgetDefaultSelected(SelectionEvent)

2009-01-09 1.2.0

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