=====================
SplineTable (hwx.gui)
=====================

A table used to display/edit a Spline.

Inherits:
  - :ref:`Table (hwx.gui)`

--------------
Public Methods
--------------

  +----------------------------------------+
  | onSelectionChangeHandler_ (self)       |
  +----------------------------------------+
  | onValueChangeHandler_ (self, row, col) |
  +----------------------------------------+
  | setSpline_ (self, spline)              |
  +----------------------------------------+

--------------
Method Details
--------------

.. _onSelectionChangeHandler:
.. method:: onSelectionChangeHandler(self)

Callback method when selected cells changed.

.. _onValueChangeHandler:
.. method:: onValueChangeHandler(self, row, col)

Acts when a user changes a value in one the fields.

If the value is valid, it updates the data model, else it resets to pre-changed value.

:param row: The row index of the table.
:type row: int
:param col: The column index of the table.
:type col: int


.. _setSpline:
.. method:: setSpline(self, spline)

Sets the tables cell values from the spline values.

It gets called from the SplineEditor when the spline changes.

:param spline: A spline containing x/y values to be set.
:type spline: Spline