|
MeVisLab Web Toolkit Reference
|
This is the base class for all widget controls. More...
Public Member Functions | |
| __init__ (mdlTree, module) | |
| Creates a new MLAB.GUI.WidgetControl. | |
| destroy () | |
| The destructor. | |
| getName () | |
| Returns the name of the control. | |
| getQualifiedName () | |
| Returns the name of the control containing all sub module names. | |
| Public Member Functions inherited from MLAB.GUI.WidgetControlModuleInterface | |
| createSubControl (mdlTree) | |
| Calls MLAB.Core.Module.createControl() and returns the control, or null if it could not be created. | |
| field (fieldName) | |
| Looks for a field and it by calling MLAB.Core.Module.getFieldByRawName(). | |
| getDOMDocument () | |
| Returns the owner document of this. | |
| getModule () | |
| Returns the module. | |
| log (message) | |
| Logs a message by calling MLAB.Core.Module.log(). | |
| logError (error) | |
| Logs an error message by calling MLAB.Core.Module.logError(). | |
| logException (exception) | |
| Logs an exception by calling MLAB.Core.Module.logException(). | |
| sendBaseFieldMessage (baseFieldMessageClass, data) | |
| Creates a base field message using the provided class and data. | |
| sendGenericRequest (request, args) | |
| Passes the request and arguments to MLAB.Core.Module.sendGenericRequest(). | |
| sendMessage (message) | |
| Sends the message via MLAB.Core.Module.sendMessage() to the server. | |
| setDOMDocument (A) | |
| Sets a new owner document to this. | |
| 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. | |
This is the base class for all widget controls.
The widget controls are based on the widget controls in MeVisLab, which have also a base class MLABWidgetControl.
| MLAB.GUI.WidgetControl.__init__ | ( | mdlTree, | |
| module ) |
Creates a new MLAB.GUI.WidgetControl.
| mdlTree | The MDL tree that defines this control and its sub controls. |
| module | The MLAB.Core.Module to which this control belongs. |
| MLAB.GUI.WidgetControl.destroy | ( | ) |
The destructor.
Calls the destructor of each child control. We do not need this to clear memory in Javascript, but it may be necessary to notify the server about a destroyed control. For example, the remote rendering control needs to send a MLAB.Core.RenderingRenderStopStreamingMessage on destruction.
Reimplemented in MLAB.GUI.RemoteRenderingControl.
| MLAB.GUI.WidgetControl.getName | ( | ) |
| MLAB.GUI.WidgetControl.getQualifiedName | ( | ) |