Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jface tableviewer navigating  RSS feed

 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i am very frustrated that i cant find a solution
to navigating a jface table. it seems that some things in swt, java, and hibernate are so cool but sometimes it is hard to come up with an answer.
all i'd like to do is be able to let the user navigate a jface table with either a tab key or arrow. to be specific on a tab press move the focus to the next cell in the same row. or shift-tab to go back.

is there a simple way to implement some sort of jface navigation? if not, i will have to make a form because i cant have someone click on every cell to edit a single cell by itself. maybe there is some key mapping i am unaware of that does this and i just dont know it.

thanks for any help.
i better get some sleep.
work is early tomorrow.

thanks,
jim
 
jim mcnamara
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi-

i looked at this some more. the code sample i was fooling with was from p.231 of my swt book by jackwind li guojie. i decided that it is getting coordinates from the mousedown which are translated to a point and the item is assigned its value based on that point. etc. and jackwind summarizes by saying the cell position is located.

so basically if i want the tab to go to a cell position, i need to tell it which cell position. and i need a mouse click each time to determine that. that is why i cant just tell tab to go to next cell. it doesnt know where.

that is my best guess why using code like on p.231 i cant use tab to navigate the cells.

i could be wrong but i tried anyways.
it looks like i will use a form for editing data because i cant get table navigation to work in the table editor or jface viewer.

did anyone else run up against this? or did you all code circles around me?

thanks for any insight on this.
back to the drawing board.

jim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!