Class: DiscoveryView

OSH.UI. DiscoveryView

Example

var discoveryView = new OSH.UI.DiscoveryView("discovery-container",{
services: ["http://sensiasoft.net:8181/"],
views: [{
name: 'Video dialog(H264)',
type : OSH.UI.DiscoveryView.Type.DIALOG_VIDEO_H264
},{
name: 'Video dialog(MJPEG)',
type : OSH.UI.DiscoveryView.Type.DIALOG_VIDEO_MJPEG
},{
name: 'Chart dialog',
type : OSH.UI.DiscoveryView.Type.DIALOG_CHART
}
]
});

//------ More complex example
var discoveryView = new OSH.UI.DiscoveryView("",{
services: ["http://sensiasoft.net:8181/"], // server list
css: "discovery-view",
dataReceiverController:dataProviderController, // add custom dataProviderController
swapId: "main-container", // add a divId to swap data for inner dialog
entities: [androidEntity], // add entities
views: [{
name: 'Leaflet 2D Map',
viewId: leafletMainView.id,
type : OSH.UI.DiscoveryView.Type.MARKER_GPS
}, {
name: 'Cesium 3D Globe',
viewId: cesiumMainMapView.id,
type : OSH.UI.DiscoveryView.Type.MARKER_GPS
},{
name: 'Video dialog(H264)',
type : OSH.UI.DiscoveryView.Type.DIALOG_VIDEO_H264
},{
name: 'Video dialog(MJPEG)',
type : OSH.UI.DiscoveryView.Type.DIALOG_VIDEO_MJPEG
},{
name: 'Chart dialog',
type : OSH.UI.DiscoveryView.Type.DIALOG_CHART
}
]
});

Extends

Members

staticOSH.UI.DiscoveryView.TypeObject

The different type of discovery.

Methods

addObjectsToSelect(tagId, objectsArr)

Name Type Description
tagId
objectsArr

addValuesToSelect(tagId, valuesArr)

Name Type Description
tagId
valuesArr

addValueToSelect(tagId, value, parent, object)

Name Type Description
tagId
value
parent
object

inherited addViewItem(viewItem)

Add viewItem to the view

Name Type Description
viewItem
Name Type Description
divId

inherited beforeAddingItems(options)

Name Type Description
options

createChartDialog(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, entityId)

Name Type Description
name
endPointUrl
offeringID
obsProp
startTime
endTime
syncMasterTime
entityId

createGPSMarker(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, viewId, entityId)

Name Type Description
name
endPointUrl
offeringID
obsProp
startTime
endTime
syncMasterTime
viewId
entityId

createH264VideoDialog(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, entityId)

Name Type Description
name
endPointUrl
offeringID
obsProp
startTime
endTime
syncMasterTime
entityId

createMJPEGVideoDialog(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, entityId)

Name Type Description
name
endPointUrl
offeringID
obsProp
startTime
endTime
syncMasterTime
entityId

inherited getDataSourcesId(){Array}

Returns:
Type Description
Array

inherited getDivId(){string|*}

Returns:
Type Description
string | *
Returns:
Type Description
string | *

onFormSubmit(event){boolean}

Name Type Description
event
Returns:
Type Description
boolean
Name Type Description
event
Name Type Description
event
Name Type Description
event
Name Type Description
tagId

inherited selectDataView($super, dataSourcesIds, entitiesIds)

Should be called after receiving osh:SELECT_VIEW event

Name Type Description
$super
dataSourcesIds
entitiesIds

inherited setData(dataSourceId, data)

Name Type Description
dataSourceId
data

Show the view by removing display:none style if any.

Name Type Description
properties
Name Type Description
properties