MeVisLab Web Toolkit Reference
Loading...
Searching...
No Matches
MLAB.GUI Namespace Reference

The GUI namespace. More...

Classes

class  Application
 The application class manages the steps to create the web application. More...
class  ApplicationLogger
class  ApplicationSettings
class  AuthenticationManager
class  BaseBoxControl
class  Box
class  BoxControl
class  Button
class  ButtonBoxControl
class  ButtonControl
class  CategoryControl
class  CheckBox
class  CheckBoxControl
class  ColorEdit
class  ColorEditControl
class  ComboBox
class  ComboBoxControl
class  ComboBoxItem
class  CommonButtonGroupControl
class  CommonButtonGroupItem
class  ComputedAttribute
class  DateTime
class  DateTimeControl
class  DerivedAttribute
class  EmptyControl
class  FieldControl
class  FrameControl
class  GridControl
class  HorizontalControl
class  HorizontalSplitterHandle
class  HorizontalSplitterResizeIndicator
class  HyperLabelControl
class  HyperText
class  HyperTextControl
class  IconItemView
 HTML container for the items. More...
class  IconItemViewControl
class  IconItemViewItem
class  Image
class  ImageControl
class  ItemExpressionParser
class  ItemModelView
class  ItemView
class  ItemViewColumn
class  ItemViewDerivedAttribute
class  ItemViewItem
class  ItemViewItemContainer
 Item container inside ItemView. More...
class  Label
class  LabelControl
class  LineEdit
class  LineEditControl
class  MLItemModelViewControl
class  ModuleContextCreator
class  NumberEdit
class  NumberEditControl
class  NumberValidator
class  Panel
class  PanelControl
class  PluginBase
class  ProgressBar
class  ProgressBarControl
class  PushButtonGroupControl
class  PushButtonGroupItem
class  RemoteRenderingControl
class  RemoteRenderingWidget
class  RemoteRenderingWidgetBase
 Base class for remote rendering widgets. More...
class  Separator
class  SeparatorControl
class  Slider
class  SliderControl
class  Splitter
class  SplitterControl
class  SplitterHandle
class  SplitterResizeIndicator
class  TabBar
class  Table
class  TableControl
class  TableDerivedAttribute
class  TabView
class  TabViewControl
class  TabViewItem
class  TabViewItemControl
class  TextView
class  TextViewControl
class  ToolButtonGroupControl
class  VectorEdit
class  VectorEditControl
class  VerticalControl
class  VerticalSplitterHandle
class  VerticalSplitterResizeIndicator
class  Widget
 The base class for widgets. More...
class  WidgetControl
 This is the base class for all widget controls. More...
class  WidgetControlFactory
class  WidgetControlModuleInterface
 Base class for MLAB.GUI.WidgetControl which is an interface for all module related communication. More...
class  WidgetFactory
class  WindowControl
class  WindowController
 A window controller creates MDL controls for modules using the MLAB.GUI.WidgetControlFactory from the MDL description of the module. More...

Functions

 addStyleSheetClass (domElement, styleSheetClass)
 Appends the given style sheet class to the DOM element.
 blurElement (domElement)
 Blurs (removes the focus) of the given DOM element.
 getDOMWindow (domElement)
 Returns the window of the given domElement.
 getGlobalPosition (domElement)
 Returns the global position of the given domElement.
 getNextID ()
 Increments the last id by 1 and returns it.
 hasStyleSheetClass (domElement, styleSheetClass)
 Returns true if the dom element has the given style sheet class, or false otherwise.
 isDOMElementEnabled ()
 Returns if the DOM element is enabled.
 isDOMElementVisible ()
 Returns if the DOM element is visible.
 removeStyleProperty (domElement, property)
 Remove a property from the style attribute of a DOM element.
 removeStyleSheetClass (domElement, styleSheetClass)
 Removes the given style sheet class from the DOM element.
 setDOMElementEnabled (domElement, enabled)
 Enables/disables the given DOM element.
 setDOMElementVisible (domElement, visible)
 Shows/hides the given DOM element.

Variables

int HORIZONTAL = 0
 Namespace constant.
int VERTICAL = 1
 Namespace constant.

Detailed Description

The GUI namespace.

Function Documentation

◆ addStyleSheetClass()

addStyleSheetClass ( domElement,
styleSheetClass )

Appends the given style sheet class to the DOM element.

It checks if the class was already added and ensures that the class is at the end of the class list.

Parameters
domElementThe DOM element.
styleSheetClassThe CSS class name.

Definition at line 1705 of file GUI.py.

◆ blurElement()

blurElement ( domElement)

Blurs (removes the focus) of the given DOM element.

On IE11 this may fail with an exception, which is silently ignored then (when the error number is 1).

Parameters
domElementThe DOM element.

Definition at line 1746 of file GUI.py.

◆ getDOMWindow()

getDOMWindow ( domElement)

Returns the window of the given domElement.

Parameters
domElementThe DOM element.
Returns
A window object.

Definition at line 1738 of file GUI.py.

◆ getGlobalPosition()

getGlobalPosition ( domElement)

Returns the global position of the given domElement.

Parameters
domElementThe DOM element.
Returns
An object with the properties x and y.

Definition at line 1730 of file GUI.py.

◆ getNextID()

getNextID ( )

Increments the last id by 1 and returns it.

The first id will be 1.

Definition at line 1649 of file GUI.py.

◆ hasStyleSheetClass()

hasStyleSheetClass ( domElement,
styleSheetClass )

Returns true if the dom element has the given style sheet class, or false otherwise.

Parameters
domElementThe DOM element.
styleSheetClassThe CSS class name.
Returns
true if the dom element has the given style sheet class, or false otherwise.

Definition at line 1695 of file GUI.py.

◆ isDOMElementEnabled()

isDOMElementEnabled ( )

Returns if the DOM element is enabled.

See also MLAB.GUI.setDOMElementEnabled()

Returns
Returns a boolean indicating whether the DOM element is enabled.

Definition at line 1686 of file GUI.py.

◆ isDOMElementVisible()

isDOMElementVisible ( )

Returns if the DOM element is visible.

See also MLAB.GUI.setDOMElementVisible()

Returns
Returns a boolean indicating whether the DOM element is visible.

Definition at line 1679 of file GUI.py.

◆ removeStyleProperty()

removeStyleProperty ( domElement,
property )

Remove a property from the style attribute of a DOM element.

Parameters
domElementThe DOM element.
propertyThe name of the property.

Definition at line 1722 of file GUI.py.

◆ removeStyleSheetClass()

removeStyleSheetClass ( domElement,
styleSheetClass )

Removes the given style sheet class from the DOM element.

No error is produces when the given style sheet class is not set on the DOM element.

Parameters
domElementThe DOM element.
styleSheetClassThe CSS class name.

Definition at line 1714 of file GUI.py.

◆ setDOMElementEnabled()

setDOMElementEnabled ( domElement,
enabled )

Enables/disables the given DOM element.

Enables/disables also its children, which do not belong to any widget, recursively.

Parameters
domElementThe DOM element.
enabledA boolean that indicates if the element is enabled or disabled.

Definition at line 1658 of file GUI.py.

◆ setDOMElementVisible()

setDOMElementVisible ( domElement,
visible )

Shows/hides the given DOM element.

Shows/hides also its children, which do not belong to any widget, recursively. The CSS class MLAB-GUI-ConcealedDOMElement is added to hidden elements, which by default sets the style display to 'none'. This corresponds to hiding widgets in MeVisLab, because the DOM elements do not occupy any space then. Using style visibility with the value 'hidden', would cause DOM element to be invisible, but it still occupies space.

Parameters
domElementThe DOM element.
visibleA boolean that indicates if the element is shown or hidden.

Definition at line 1672 of file GUI.py.

Variable Documentation

◆ HORIZONTAL

int MLAB.GUI.HORIZONTAL = 0

Namespace constant.

Definition at line 3 of file GUI.py.

◆ VERTICAL

int MLAB.GUI.VERTICAL = 1

Namespace constant.

Definition at line 6 of file GUI.py.