IRISLIB database
dataView Class Reference

This abstract class defines the common interface needed by dataView components (the View part of the Model-View-Controller architecture). More...

Inheritance diagram for dataView:

Public Member Functions

_.Library.Status AcquireDataFromController ()
 Server-side method used by dataView implementation classes to. More...
 
 getController ()
 Get the dataController component associated with this dataView, if present. More...
 
 sendEventToController (reason, data1, data2, data3)
 If connected, send an event to a dataController. More...
 
 setControllerId (id)
 Set the controller id for this dataView and establish a connection. More...
 

Public Attributes

 controller
 Internal property. More...
 
 controllerId
 Optional. More...
 
 onnotifyView
 onnotifyView event handler: More...
 

Detailed Description

This abstract class defines the common interface needed by dataView components (the View part of the Model-View-Controller architecture).

Member Function Documentation

◆ AcquireDataFromController()

_.Library.Status AcquireDataFromController ( )

Server-side method used by dataView implementation classes to.

get values from the associated dataController, if present. This is typically called by components on the server before they are initially rendered in order to get initial data values.

◆ getController()

getController ( )

Get the dataController component associated with this dataView, if present.

Returns null if no there is no controller. This is used by dataView implementation classes.

◆ sendEventToController()

sendEventToController (   reason,
  data1,
  data2,
  data3 
)

If connected, send an event to a dataController.

This is used by dataView implementation classes. Possible values of reason include:
'propertyChange' - data1 is property name,data2 is the new value,data3 is the series number (if applicable).

◆ setControllerId()

setControllerId (   id)

Set the controller id for this dataView and establish a connection.

to the new controller. This is used by dataView implementation classes.

Member Data Documentation

◆ controller

controller

Internal property.


Used by server to hold a reference to the associated dataController object.  


Used by client to hold a reference to the associated <class>ZEN.Auxiliary.dataController</class> object.  

◆ controllerId

controllerId

Optional.

The id of the <class>ZEN.Auxiliary.dataController</class> object that

provides data for this dataView component.
If provided, this must be the valid id of a <class>ZEN.Auxiliary.dataController</class> object.  

◆ onnotifyView

onnotifyView

onnotifyView event handler:

This event is fired when a dataController connected to this dataView raises an event.