new (require("nmodule/driver/rc/wb/mgr/DeviceMgr"))( [params])
API Status: Development
Instance for managing devices inside a container.
Extends:
Parameters:
| Name | Type | Argument | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
<optional> |
an object containing the constructor parameters. Properties
|
Methods
-
buildMainTableCell(column, row, dom)
-
Override of the base manager's build cell function.
Parameters:
Name Type Description columnmodule:nmodule/webEditors/rc/wb/table/model/Column The column for the cell
rowmodule:nmodule/webEditors/rc/wb/table/model/Row The row for the cell
domJQuery - Inherited From:
Returns:
- Type
- Promise
-
componentAdded(parent, child)
-
Function called when a new component is added. If the
component is a folder and the all descendants command is selected,
we want to subscribe to that folder to the correct depth.Parameters:
Name Type Description parentbaja.Component childbaja.Component - Inherited From:
-
componentChanged(comp)
-
Function called when a property of one of the row's subjects or descendants
changes. This is used to update the table when, for example, a property
on a point's proxy extension is changed.Parameters:
Name Type Description compbaja.Component The component notifying the changed property.
- Inherited From:
-
componentRemoved(value)
-
Function called when a subscribed component is removed. If the
component was a folder and the all descendants command is selected,
we want to unsubscribe to that folder.Parameters:
Name Type Description valuebaja.Component - Inherited From:
-
componentRenamed(comp)
-
Function called when the depth subscriber notifies a renamed component. This will
try to emit a 'changed' event on the component source.Parameters:
Name Type Description comp- Inherited From:
-
doDestroy()
-
Destroy the widget. This will clean up the event handler we have attached
for listening to descendant changes.- Inherited From:
Returns:
- Type
- *
-
doInitialize(dom)
-
Manager initialization. In addition to the base manager initialization, this will configure
double click handling on the table rows and ensure that the basic commands are in the
appropriate default state.Parameters:
Name Type Description domJQuery - Inherited From:
Returns:
- Type
- *
-
doLoad(comp)
-
Load the widget from the component. This will hook up the event handlers to the
depth subscriber used by this type.Parameters:
Name Type Description compbaja.Component - Inherited From:
Returns:
- Type
- Promise
-
finishMainTableRow(row, dom)
-
Overrides the basic manager
#finishMainTableRowfunction with some extra css information
specified on the dom for the table row.Parameters:
Name Type Description rowmodule:nmodule/webEditors/rc/wb/table/model/Row a table row instance
domJQuery - Inherited From:
-
getSubject(elem)
-
Get the subject via the manager's main table.
Parameters:
Name Type Description elem- Inherited From:
Returns:
- Type
- *
-
getSubscriptionDepth()
-
Get the configured component subscription depth for the driver manager.
This value is specified by the 'subscriptionDepth' parameter property
in the constructor.- Inherited From:
Returns:
- Type
- Number
-
makeCommands()
-
Return the default set of
Commandinstances for a device manager. The
basic set are commands for creating a new folder (if a folder type was
specified in the constructor's parameters), creating a new point type
and editing an existing point type.Concrete point manager types may override this function to append extra
commands and/or remove the default ones.- Inherited From:
Returns:
- Type
- Array.<module:bajaux/commands/Command>