Module view.ParamWidget
Handles the creation of widgets to allow the user to change network parameters.
Functions
NumberEntry:get () | Gets the value from the entry. |
NumberEntry:set (value) | Sets the value of the entry. |
OptionEntry:get () | Gets the value from the entry. |
OptionEntry:set (value) | Sets the value of the entry. |
ParamWidget.new (param) | Factory to create entries for params. |
(private) NumberEntry.new (param) | Constructor. |
(private) OptionEntry.new (param) | Constructor. |
(private) OptionEntry:create_model (param) | Creates a TreeModel for the parameter. |
Functions
- NumberEntry:get ()
-
Gets the value from the entry.
Return value:
Value from the entry - NumberEntry:set (value)
-
Sets the value of the entry.
Parameters
- value: New value of the entry
- OptionEntry:get ()
-
Gets the value from the entry.
Return value:
Value from the entry - OptionEntry:set (value)
-
Sets the value of the entry.
Parameters
- value: New value of the entry
- ParamWidget.new (param)
-
Factory to create entries for params.
Parameters
- param: Parameter to construct a entry for
Return value:
New ParamWidget instance. the entry widget. - (private) NumberEntry.new (param)
-
Constructor.
Parameters
- param: NetworkParam to create a widget for
Return value:
New instance of NumberEntry - (private) OptionEntry.new (param)
-
Constructor.
Parameters
- param: NetworkParam to create a widget for
Return value:
New instance of OptionEntry - (private) OptionEntry:create_model (param)
-
Creates a TreeModel for the parameter.
Parameters
- param: