MeVisLab Web Toolkit Reference
Loading...
Searching...
No Matches
MLAB.GUI.WidgetControl Class Reference

This is the base class for all widget controls. More...

Inheritance diagram for MLAB.GUI.WidgetControl:
MLAB.GUI.WidgetControlModuleInterface MLAB.Core.Object MLAB.GUI.BaseBoxControl MLAB.GUI.ButtonControl MLAB.GUI.CheckBoxControl MLAB.GUI.ColorEditControl MLAB.GUI.ComboBoxControl MLAB.GUI.CommonButtonGroupControl MLAB.GUI.DateTimeControl MLAB.GUI.EmptyControl MLAB.GUI.FieldControl MLAB.GUI.FrameControl MLAB.GUI.GridControl MLAB.GUI.HyperTextControl MLAB.GUI.IconItemViewControl MLAB.GUI.ImageControl MLAB.GUI.LabelControl MLAB.GUI.LineEditControl MLAB.GUI.MLItemModelViewControl MLAB.GUI.NumberEditControl MLAB.GUI.PanelControl MLAB.GUI.ProgressBarControl MLAB.GUI.RemoteRenderingControl MLAB.GUI.SeparatorControl MLAB.GUI.SliderControl MLAB.GUI.SplitterControl MLAB.GUI.TabViewControl MLAB.GUI.TableControl MLAB.GUI.TextViewControl MLAB.GUI.VectorEditControl MLAB.GUI.WindowControl

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.

Detailed Description

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.

Definition at line 1467 of file GUI.py.

Constructor & Destructor Documentation

◆ __init__()

MLAB.GUI.WidgetControl.__init__ ( mdlTree,
module )

Creates a new MLAB.GUI.WidgetControl.

Parameters
mdlTreeThe MDL tree that defines this control and its sub controls.
moduleThe MLAB.Core.Module to which this control belongs.

Definition at line 1473 of file GUI.py.

Member Function Documentation

◆ destroy()

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.

Definition at line 1481 of file GUI.py.

◆ getName()

MLAB.GUI.WidgetControl.getName ( )

Returns the name of the control.

Returns
The name string.

Definition at line 1488 of file GUI.py.

◆ getQualifiedName()

MLAB.GUI.WidgetControl.getQualifiedName ( )

Returns the name of the control containing all sub module names.

Returns
The name string.

Definition at line 1495 of file GUI.py.


The documentation for this class was generated from the following file:
  • C:/jh/mevislab/5.0_0/build/doc.gen/public/SDK/MeVisLabWebToolkitReference/source/MLAB/GUI.py