new 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 tagIdobjectsArr -
addValuesToSelect(tagId, valuesArr)
-
Name Type Description tagIdvaluesArr -
addValueToSelect(tagId, value, parent, object)
-
Name Type Description tagIdvalueparentobject -
inherited addViewItem(viewItem)
-
Add viewItem to the view
Name Type Description viewItem -
inherited attachTo(divId)
-
Name Type Description divId -
inherited beforeAddingItems(options)
-
Name Type Description options -
createChartDialog(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, entityId)
-
Name Type Description nameendPointUrlofferingIDobsPropstartTimeendTimesyncMasterTimeentityId -
createGPSMarker(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, viewId, entityId)
-
Name Type Description nameendPointUrlofferingIDobsPropstartTimeendTimesyncMasterTimeviewIdentityId -
createH264VideoDialog(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, entityId)
-
Name Type Description nameendPointUrlofferingIDobsPropstartTimeendTimesyncMasterTimeentityId -
createMJPEGVideoDialog(name, endPointUrl, offeringID, obsProp, startTime, endTime, syncMasterTime, entityId)
-
Name Type Description nameendPointUrlofferingIDobsPropstartTimeendTimesyncMasterTimeentityId -
inherited getDataSourcesId(){Array}
-
Returns:
Type Description Array -
inherited getDivId(){string|*}
-
Returns:
Type Description string | * -
inherited getId(){string|*}
-
Returns:
Type Description string | * -
inherited handleEvents()
-
-
inherited hide()
-
-
onFormSubmit(event){boolean}
-
Name Type Description eventReturns:
Type Description boolean -
inherited onResize()
-
-
onSelectedOffering(event)
-
Name Type Description event -
onSelectedService(event)
-
Name Type Description event -
onSelectedType(event)
-
Name Type Description event -
removeAllFromSelect(tagId)
-
Name Type Description tagId -
inherited reset()
-
-
inherited selectDataView($super, dataSourcesIds, entitiesIds)
-
Should be called after receiving osh:SELECT_VIEW event
Name Type Description $superdataSourcesIdsentitiesIds -
inherited setData(dataSourceId, data)
-
Name Type Description dataSourceIddata -
inherited show(properties)
-
Show the view by removing display:none style if any.
Name Type Description properties -
inherited shows(properties)
-
Name Type Description properties