|
MeVisLab Web Toolkit Reference
|
Public Member Functions | |
| createModule () | |
| createModuleContexts () | |
| Collects all DOM elements that have the "data-mevislab-create-macro" attribute and creates module contexts for each of them. | |
| destroyModule () | |
| disconnectModules () | |
| Calls MLAB.Core.Module.closeConnection() for each module. | |
| getMeVisLabData () | |
| Returns custom data attributes with the given tag name. | |
| getModule (moduleName) | |
| Returns the module by the given name. | |
| getModules () | |
| Returns all top level modules. | |
| hasAnyModule () | |
| Returns true if any module was created. | |
| notifyBodyIsVisible () | |
| Calls MLAB.Core.Module.setBodyIsVisible() on each module. | |
| showIDEs () | |
| Calls MLAB.Core.Module.showIDE() on each module. | |
| Public Member Functions inherited from MLAB.Core.Object | |
| __init__ () | |
| Creates a new MLAB.Core.Object. | |
| blockSignals (blocked) | |
| Sets if signals are blocked, which means that signals are suppressed in situations where they would have been emitted. | |
| connect (signal, receiver, slot) | |
| Connects a signal of this object to the slot of the receiver. | |
| connectCallback (signal, callback) | |
| Connects a signal of this object to the given callback function. | |
| connectSignal (signal, receiver, targetSignal) | |
| Connects a signal of this object to the signal of the receiver, so that if this signal is emitted, the target signal on the receiver is also emitted. | |
| disconnect (signal, receiver, signal) | |
| Disconnects a signal of this object from the slot of the receiver. | |
| disconnectCallback (signal, callback) | |
| Disconnects a signal of this object from the given callback function. | |
| disconnectReceiver (signal, receiver) | |
| Disconnects a signal of this object from all slots of the receiver. | |
| emit (signal) | |
| Emits a signal. | |
| isSignalRegistered () | |
| Returns true if the given signal is registered. | |
| registerSignal (signal) | |
| Registers a signal. | |
| signalsBlocked () | |
| Returns true if signals are blocked. | |
Protected Member Functions | |
| _createGUIFromDOMElements () | |
| _createModuleContext (data) | |
| This method creates an MLAB.Core.ModuleContext instance. | |
| _handleModuleContextReady (moduleContext, moduleCreationStatus) | |
| This method is passed as a callback to MLAB.Core.ModuleContext.setModuleContextReadyCallback(). | |
| _parseAttributeData () | |
| Returns an object with the attributes given in the argument string. | |
|
protected |
|
protected |
This method creates an MLAB.Core.ModuleContext instance.
The module type must be the ID of the DOM element. Optionally it may also include an instance name. If the module requires authentication a login dialog will be shown when the web socket connection to the module is established. A callback function that is called when all module windows have been created from the MDL can also be given.
| data | An object with at least the "module" attribute and optional an "instanceName" attribute. |
|
protected |
This method is passed as a callback to MLAB.Core.ModuleContext.setModuleContextReadyCallback().
It manages finished and failed module context creation. It also shows a login dialog if a module context is not ready because of missing authentication. If all module contexts are ready, then the module contexts are ready callback is called (see setModuleContextsReadyCallback()).
| moduleContext | An MLAB.Core.ModuleContext instance. |
| moduleCreationStatus | The module context creation status. See MLAB.Core.ModuleInfoMessage for possible values. |
|
protected |
| MLAB.GUI.ModuleContextCreator.createModuleContexts | ( | ) |
| MLAB.GUI.ModuleContextCreator.disconnectModules | ( | ) |
| MLAB.GUI.ModuleContextCreator.getMeVisLabData | ( | ) |
| MLAB.GUI.ModuleContextCreator.getModule | ( | moduleName | ) |
Returns the module by the given name.
The name may include multiple names divided by dots to access sub modules.
| moduleName | The module name. |
| MLAB.GUI.ModuleContextCreator.getModules | ( | ) |
Returns all top level modules.
| MLAB.GUI.ModuleContextCreator.hasAnyModule | ( | ) |
| MLAB.GUI.ModuleContextCreator.notifyBodyIsVisible | ( | ) |
| MLAB.GUI.ModuleContextCreator.showIDEs | ( | ) |
Calls MLAB.Core.Module.showIDE() on each module.