|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--context.arch.BaseObject | +--context.arch.widget.Widget | +--context.arch.widget.WDisplay
This class is a context widget that represents a display device. It currently doesn't provide any context but offers a single service DISPLAY_CHOICES, with a single function DISPLAY.
Widget
Field Summary | |
static java.lang.String |
CLASSNAME
Name of widget |
static int |
DEFAULT_PORT
Default port this widget runs on |
java.lang.String |
VERSION_NUMBER
Widget version number |
Fields inherited from class context.arch.widget.Widget |
attributes,
attributeTypes,
callbacks,
CLASS,
CurrentOffset,
DEFAULT_PORT,
id,
PUT_DATA,
PUT_DATA_REPLY,
QUERY,
QUERY_ATTRIBUTES,
QUERY_ATTRIBUTES_REPLY,
QUERY_CALLBACKS,
QUERY_CALLBACKS_REPLY,
QUERY_REPLY,
QUERY_SERVICES,
QUERY_SERVICES_REPLY,
QUERY_VERSION,
QUERY_VERSION_REPLY,
services,
SPACER,
storage,
subscribers,
TIMESTAMP,
UPDATE,
UPDATE_AND_QUERY,
UPDATE_AND_QUERY_REPLY,
VERSION,
VERSION_NUMBER |
Fields inherited from class context.arch.BaseObject |
communications,
EXIT_OK,
handlers,
ID,
parser,
PING,
PING_REPLY,
serviceHandlers |
Constructor Summary | |
WDisplay(java.lang.String device,
int port,
java.lang.String width,
java.lang.String height,
java.lang.String graphics)
Constructor that creates the widget for the given device and monitors communications on the given port . |
|
WDisplay(java.lang.String device,
int port,
java.lang.String width,
java.lang.String height,
java.lang.String graphics,
boolean storageFlag)
Constructor that creates the widget for the given device and monitors communications on the given port . |
|
WDisplay(java.lang.String device,
int port,
java.lang.String id,
java.lang.String width,
java.lang.String height,
java.lang.String graphics)
Constructor that creates the widget for the given device and monitors communications on the given port It also sets the id of this widget to the given id. |
|
WDisplay(java.lang.String device,
int port,
java.lang.String id,
java.lang.String width,
java.lang.String height,
java.lang.String graphics,
boolean storageFlag)
Constructor that creates the widget for the given device and monitors communications on the given port It also sets the id of this widget to the given id and sets storage functionality to storageFlag |
|
WDisplay(java.lang.String device,
java.lang.String width,
java.lang.String height,
java.lang.String graphics)
Constructor that creates the widget for the give device and monitors communications on the DEFAULT_PORT. |
|
WDisplay(java.lang.String device,
java.lang.String width,
java.lang.String height,
java.lang.String graphics,
boolean storageFlag)
Constructor that creates the widget for the give device and monitors communications on the DEFAULT_PORT. |
Method Summary | |
static void |
main(java.lang.String[] argv)
Temporary main method to create a widget with location and port specified by command line arguments |
void |
notify(java.lang.String event,
java.lang.Object data)
Called by the generator class when a significant event has occurred. |
protected AttributeNameValues |
queryGenerator()
This method returns an empty AttributeNameValues object. |
protected Attributes |
setAttributes()
This method implements the abstract method Widget.setAttributes(). |
protected Callbacks |
setCallbacks()
This method implements the abstract method Widget.setCallbacks(). |
protected Services |
setServices()
This method implements the abstract method Widget.setServices(). |
Methods inherited from class context.arch.widget.Widget |
addSubscriber,
canHandle,
canHandle,
canHandle,
canHandle,
executeService,
getAttributeType,
getCurrentTime,
getNewOffset,
getNewOffsetNoDelay,
isAttribute,
isCallback,
processCallbackReply,
putData,
queryAttributes,
queryCallbacks,
queryServices,
queryWidget,
removeSubscriber,
retrieveData,
runUserMethod,
runWidgetMethod,
sendToSubscribers,
setAttribute,
store,
store,
updateWidgetInformation |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String VERSION_NUMBER
public static final java.lang.String CLASSNAME
public static final int DEFAULT_PORT
Constructor Detail |
public WDisplay(java.lang.String device, java.lang.String width, java.lang.String height, java.lang.String graphics)
device
- Tag for the display devicewidth
- Width of the display in pixelsheight
- Height of the display in pixelsgraphics
- Type of display: text or graphicspublic WDisplay(java.lang.String device, java.lang.String width, java.lang.String height, java.lang.String graphics, boolean storageFlag)
device
- Tag for the display devicewidth
- Width of the display in pixelsheight
- Height of the display in pixelsgraphics
- Type of display: text or graphicsstorageFlag
- Flag to indicate whether or not to use storagepublic WDisplay(java.lang.String device, int port, java.lang.String width, java.lang.String height, java.lang.String graphics)
device
- Tag for the display deviceport
- Port to run the widget onwidth
- Width of the display in pixelsheight
- Height of the display in pixelsgraphics
- Type of display: text or graphicspublic WDisplay(java.lang.String device, int port, java.lang.String width, java.lang.String height, java.lang.String graphics, boolean storageFlag)
device
- Tag for the display deviceport
- Port to run the widget onwidth
- Width of the display in pixelsheight
- Height of the display in pixelsgraphics
- Type of display: text or graphicsstorageFlag
- Flag to indicate whether or not to use storage.public WDisplay(java.lang.String device, int port, java.lang.String id, java.lang.String width, java.lang.String height, java.lang.String graphics)
device
- Tag for the display deviceport
- Port to run the widget onid
- Widget idwidth
- Width of the display in pixelsheight
- Height of the display in pixelsgraphics
- Type of display: text or graphicspublic WDisplay(java.lang.String device, int port, java.lang.String id, java.lang.String width, java.lang.String height, java.lang.String graphics, boolean storageFlag)
device
- Tag for the display deviceport
- Port to run the widget onid
- Widget idwidth
- Width of the display in pixelsheight
- Height of the display in pixelsgraphics
- Type of display: text or graphicsstorageFlag
- Flag to indicate whether or not to use storageMethod Detail |
protected Attributes setAttributes()
protected Callbacks setCallbacks()
protected Services setServices()
DisplayChoiceService
protected AttributeNameValues queryGenerator()
public void notify(java.lang.String event, java.lang.Object data)
event
- Name of the event that has occurreddata
- Object containing relevant event dataWidget.sendToSubscribers(String, AttributeNameValues)
,
Widget.store(AttributeNameValues)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |