MLJ.gui namespace
- Source:
Classes
Namespaces
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 |
- Source:
(static) getWidget(name) → {MLJ.gui.Widget}
Returns a widget by its name
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the widget |
- 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 |
- Source:
(static) this.generateUID() → {String}
Returns an unique id; useful when it is necessary to add a UID to a GUI component
- Source:
Returns:
The UID string
- Type
- String