|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcontext.arch.widget.WidgetHandle
This class implements a widget handler object, encapsulating the information needed to subscribe to a widget. Agathe: I modified this class so that it may also specify conditions and attributes conditions TODO: removed conditions, must replace with queryitem
WidgetHandles| Constructor Summary | |
WidgetHandle(java.lang.String id,
java.lang.String hostname,
int port)
Basic constructor that creates a WidgetHandle object. |
|
WidgetHandle(java.lang.String id,
java.lang.String hostname,
java.lang.String port)
Basic constructor that creates a WidgetHandle object. |
|
| Method Summary | |
Attributes |
getAttributes()
Return the Attributes of the subscription |
java.lang.String |
getHostName()
Returns the name of the subscriber's host computer |
java.lang.String |
getId()
Returns the id of the subscriber |
int |
getPort()
Returns the port number to send info to |
void |
setAttributes(Attributes atts)
Sets the Attributes for the widget subscription |
void |
setHostName(java.lang.String hostname)
Sets the name of the subscriber's host computer |
void |
setId(java.lang.String id)
Sets the id of the subscriber |
void |
setPort(int port)
Sets the port number to send info to |
java.lang.String |
toString()
Returns a printable version of the object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WidgetHandle(java.lang.String id,
java.lang.String hostname,
int port)
id - ID of the widget being subscribed tohostname - Name of the widget's host computerport - Port number of the widget
public WidgetHandle(java.lang.String id,
java.lang.String hostname,
java.lang.String port)
id - ID of the widget being subscribed tohostname - Name of the widget's host computerport - Port number of the widget| Method Detail |
public java.lang.String getId()
public void setId(java.lang.String id)
id - ID of the subscriberpublic java.lang.String getHostName()
public void setHostName(java.lang.String hostname)
hostname - Name of the subscriber's host computerpublic int getPort()
public void setPort(int port)
port - Port number to send information topublic void setAttributes(Attributes atts)
atts - public Attributes getAttributes()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||