Implement table selection

Per https://github.com/clearsightstudio/ProMotion/issues/571.
Added this method to accept a new value for `selected` and handle it properly.