Find column selected index or row selected index of a table

Post here questions and problems related to oXygen frameworks/document types.
Isabelle
Posts: 168
Joined: Fri Jan 20, 2017 1:11 pm

Find column selected index or row selected index of a table

Post by Isabelle »

Hello,

We use version 26.0.0.0 of oxygen sdk.

We need to retrieve the indexes of the selected row or column in a table.
For now, I have found this :

Code: Select all

authorAccess.getEditorAccess().getAuthorSelectionModel().getSelectionInterpretationMode().name()
This tells us if it is a row or column selection (TABLE_ROW or TABLE_COLUMN).
But how do I find the index of it ?

Thanks,
Regards
Isabelle
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Find column selected index or row selected index of a table

Post by Radu »

Hi Isabelle,
There is no index information in that SelectionInterpretationMode object.
Maybe you can use this API "ro.sync.ecss.extensions.api.AuthorAccess.getTableAccess()" after you map an offset to a node (ro.sync.ecss.extensions.api.AuthorDocumentController.getNodeAtOffset(int)).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply