Namespace: gui

MLJ. gui

MLJ.gui namespace

Author:
  • Stefano Gabriele
Source:

Classes

Param
Widget

Namespaces

component
widget

Methods

(static) disabledOnSceneEmpty(component)

Utility function to make a component automatically disabled if the scene doesn't contains layers or automatically enabled if the scene contains at least one layer

Parameters:
Name Type Description
component MLJ.gui.component.Component

The component to disable/enable

Author:
  • Stefano Gabriele
Source:

(static) getWidget(name) → {MLJ.gui.Widget}

Returns a widget by its name

Parameters:
Name Type Description
name String

The name of the widget

Author:
  • Stefano Gabriele
Source:
Returns:

The widget if it exists in MLJ.widget, null otherwise

Type
MLJ.gui.Widget

(static) installWidget(name, widget)

Installs a widget; technically sets the entry MLJ.widget[name] = widget

Parameters:
Name Type Description
name String

The name of the widget

widget MLJ.gui.Widget

The widget to be installed

Author:
  • Stefano Gabriele
Source:

(static) this.generateUID() → {String}

Returns an unique id; useful when it is necessary to add a UID to a GUI component

Author:
  • Stefano Gabriele
Source:
Returns:

The UID string

Type
String