Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTraverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/56591/#msg_56591
Originally posted by: raghavdasyam.gmail.com
Hello,
I am using gridviewer for Table.
I have a requirement:
On "Tab" key traverse should be happend between Cell Editors in the table.
Is the above requirement is possible? (With arrow keys traverse between
cells is already existing.)
Any reply is highly appriciated.
Advance Thanks.
Regards,
Raghava]]>2008-07-28T08:43:39-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/56700/#msg_56700
Raghava wrote:
> I am using gridviewer for Table.
>
> I have a requirement:
>
> On "Tab" key traverse should be happend between Cell Editors in the table.
>
> Is the above requirement is possible? (With arrow keys traverse between
> cells is already existing.)
You can extend ColumnViewerEditor class and override
processTraverseEvent method to calculate next cell and start editor in it.
Then you can set this editor to the grid viewer with
setColumnViewerEditor method.
--
Best regards,
Sergey.]]>Sergey Stepanenko2008-07-29T08:33:26-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591337/#msg_591337
Raghava wrote:
> I am using gridviewer for Table.
>
> I have a requirement:
>
> On "Tab" key traverse should be happend between Cell Editors in the table.
>
> Is the above requirement is possible? (With arrow keys traverse between
> cells is already existing.)
You can extend ColumnViewerEditor class and override
processTraverseEvent method to calculate next cell and start editor in it.
Then you can set this editor to the grid viewer with
setColumnViewerEditor method.
--
Best regards,
Sergey.]]>Sergey Stepanenko2008-07-29T08:33:26-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591374/#msg_591374
> Hi Raghava,
> Raghava wrote:
>> I am using gridviewer for Table.
>>
>> I have a requirement:
>>
>> On "Tab" key traverse should be happend between Cell Editors in the table.
>>
>> Is the above requirement is possible? (With arrow keys traverse between
>> cells is already existing.)
> You can extend ColumnViewerEditor class and override
> processTraverseEvent method to calculate next cell and start editor in it.
> Then you can set this editor to the grid viewer with
> setColumnViewerEditor method.
Hello Sergey,
Thanks for your reply...
I saw the code of "GridViewerEditor".Constructor is not exposed.I can't
extend GridViewerEditor.If i have to extend the ColumnViewerEditor,then i
have to implement lot of methods.Can you suggest me anything.
Thanks,
Raghava]]>Raghava Rao2008-08-01T11:25:44-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/56806/#msg_56806
> Hi Raghava,
> Raghava wrote:
>> I am using gridviewer for Table.
>>
>> I have a requirement:
>>
>> On "Tab" key traverse should be happend between Cell Editors in the table.
>>
>> Is the above requirement is possible? (With arrow keys traverse between
>> cells is already existing.)
> You can extend ColumnViewerEditor class and override
> processTraverseEvent method to calculate next cell and start editor in it.
> Then you can set this editor to the grid viewer with
> setColumnViewerEditor method.
Hello Sergey,
Thanks for your reply...
I saw the code of "GridViewerEditor".Constructor is not exposed.I can't
extend GridViewerEditor.If i have to extend the ColumnViewerEditor,then i
have to implement lot of methods.Can you suggest me anything.
Thanks,
Raghava]]>Raghava Rao2008-08-01T11:25:44-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/56832/#msg_56832
> Sergey Stepanenko wrote:
>> You can extend ColumnViewerEditor class and override
>> processTraverseEvent method to calculate next cell and start editor in
>> it.
>> Then you can set this editor to the grid viewer with
>> setColumnViewerEditor method.
> Hello Sergey,
>
>
> Thanks for your reply...
>
> I saw the code of "GridViewerEditor".Constructor is not exposed.I can't
> extend GridViewerEditor.If i have to extend the ColumnViewerEditor,then
> i have to implement lot of methods.Can you suggest me anything.
Yes, this is a kind of trick since GridViewerEditor is not extendable -
you can extend ColumnViewerEditor and just implement three abstract
methods setEditor, setLayoutData and updateFocusCell, and you can refer
to GridViewerEditor on how to implement them.]]>Sergey Stepanenko2008-08-01T14:32:05-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591383/#msg_591383
> Sergey Stepanenko wrote:
>> You can extend ColumnViewerEditor class and override
>> processTraverseEvent method to calculate next cell and start editor in
>> it.
>> Then you can set this editor to the grid viewer with
>> setColumnViewerEditor method.
> Hello Sergey,
>
>
> Thanks for your reply...
>
> I saw the code of "GridViewerEditor".Constructor is not exposed.I can't
> extend GridViewerEditor.If i have to extend the ColumnViewerEditor,then
> i have to implement lot of methods.Can you suggest me anything.
Yes, this is a kind of trick since GridViewerEditor is not extendable -
you can extend ColumnViewerEditor and just implement three abstract
methods setEditor, setLayoutData and updateFocusCell, and you can refer
to GridViewerEditor on how to implement them.]]>Sergey Stepanenko2008-08-01T14:32:05-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591430/#msg_591430
of CVS) which present how to reset it. You should use the factory
methods and pass the feature constants.
Tom
Sergey Stepanenko schrieb:
> Raghava wrote:
>> Sergey Stepanenko wrote:
>>> You can extend ColumnViewerEditor class and override
>>> processTraverseEvent method to calculate next cell and start editor
>>> in it.
>>> Then you can set this editor to the grid viewer with
>>> setColumnViewerEditor method.
>> Hello Sergey,
>>
>>
>> Thanks for your reply...
>>
>> I saw the code of "GridViewerEditor".Constructor is not exposed.I
>> can't extend GridViewerEditor.If i have to extend the
>> ColumnViewerEditor,then i have to implement lot of methods.Can you
>> suggest me anything.
>
> Yes, this is a kind of trick since GridViewerEditor is not extendable -
> you can extend ColumnViewerEditor and just implement three abstract
> methods setEditor, setLayoutData and updateFocusCell, and you can refer
> to GridViewerEditor on how to implement them.
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-08-04T10:01:41-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/56941/#msg_56941
of CVS) which present how to reset it. You should use the factory
methods and pass the feature constants.
Tom
Sergey Stepanenko schrieb:
> Raghava wrote:
>> Sergey Stepanenko wrote:
>>> You can extend ColumnViewerEditor class and override
>>> processTraverseEvent method to calculate next cell and start editor
>>> in it.
>>> Then you can set this editor to the grid viewer with
>>> setColumnViewerEditor method.
>> Hello Sergey,
>>
>>
>> Thanks for your reply...
>>
>> I saw the code of "GridViewerEditor".Constructor is not exposed.I
>> can't extend GridViewerEditor.If i have to extend the
>> ColumnViewerEditor,then i have to implement lot of methods.Can you
>> suggest me anything.
>
> Yes, this is a kind of trick since GridViewerEditor is not extendable -
> you can extend ColumnViewerEditor and just implement three abstract
> methods setEditor, setLayoutData and updateFocusCell, and you can refer
> to GridViewerEditor on how to implement them.
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-08-04T10:01:41-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591447/#msg_591447
> Is the default traversing not good enough? Please see the snippets (part
> of CVS) which present how to reset it. You should use the factory
> methods and pass the feature constants.
For me it wasn't enough because of requirements to move between editors
in cells when user press Arrow keys (possible with Ctrl, Shift, Alt) and
PageUp/PageDown, not only Tab key.
--]]>Sergey Stepanenko2008-08-04T12:37:34-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/56991/#msg_56991
> Is the default traversing not good enough? Please see the snippets (part
> of CVS) which present how to reset it. You should use the factory
> methods and pass the feature constants.
For me it wasn't enough because of requirements to move between editors
in cells when user press Arrow keys (possible with Ctrl, Shift, Alt) and
PageUp/PageDown, not only Tab key.
--]]>Sergey Stepanenko2008-08-04T12:37:34-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591452/#msg_591452
are jumping to the next one? The same is true for ARROW_DOWN/UP and
PAGE_DOWN/UP which e.g. people use it to select values from Combos or do
you talk about general navigation outside active
editors(Grid#setCellSelectionEnabled(true))
Tom
Sergey Stepanenko schrieb:
> Tom Schindl wrote:
>> Is the default traversing not good enough? Please see the snippets
>> (part of CVS) which present how to reset it. You should use the
>> factory methods and pass the feature constants.
>
> For me it wasn't enough because of requirements to move between editors
> in cells when user press Arrow keys (possible with Ctrl, Shift, Alt) and
> PageUp/PageDown, not only Tab key.
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-08-04T13:33:15-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/57019/#msg_57019
are jumping to the next one? The same is true for ARROW_DOWN/UP and
PAGE_DOWN/UP which e.g. people use it to select values from Combos or do
you talk about general navigation outside active
editors(Grid#setCellSelectionEnabled(true))
Tom
Sergey Stepanenko schrieb:
> Tom Schindl wrote:
>> Is the default traversing not good enough? Please see the snippets
>> (part of CVS) which present how to reset it. You should use the
>> factory methods and pass the feature constants.
>
> For me it wasn't enough because of requirements to move between editors
> in cells when user press Arrow keys (possible with Ctrl, Shift, Alt) and
> PageUp/PageDown, not only Tab key.
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-08-04T13:33:15-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591472/#msg_591472
> Hm. So if a user presses and ARROW_LEFT/RIGHT in an active editor your
> are jumping to the next one? The same is true for ARROW_DOWN/UP and
> PAGE_DOWN/UP which e.g. people use it to select values from Combos or do
> you talk about general navigation outside active
> editors(Grid#setCellSelectionEnabled(true))
I'm talking about navigation inside editors, and yes - when user press
for example ARROW_DOWN/UP we have to move to the cell in row below/up.
Instead of Combo we use our own control (because of special
functionality), and it should be opened with Alt+ArrowDown.
--]]>Sergey Stepanenko2008-08-04T14:01:43-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/57072/#msg_57072
> Hm. So if a user presses and ARROW_LEFT/RIGHT in an active editor your
> are jumping to the next one? The same is true for ARROW_DOWN/UP and
> PAGE_DOWN/UP which e.g. people use it to select values from Combos or do
> you talk about general navigation outside active
> editors(Grid#setCellSelectionEnabled(true))
I'm talking about navigation inside editors, and yes - when user press
for example ARROW_DOWN/UP we have to move to the cell in row below/up.
Instead of Combo we use our own control (because of special
functionality), and it should be opened with Alt+ArrowDown.
--]]>Sergey Stepanenko2008-08-04T14:01:43-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/57097/#msg_57097
ColumnViewerEditorActivationStrategy and allow users to customize it
there. Could you file a bug against Platform/UI and CC me on the bug.
Tom
Sergey Stepanenko schrieb:
> Tom Schindl wrote:
>> Hm. So if a user presses and ARROW_LEFT/RIGHT in an active editor your
>> are jumping to the next one? The same is true for ARROW_DOWN/UP and
>> PAGE_DOWN/UP which e.g. people use it to select values from Combos or
>> do you talk about general navigation outside active
>> editors(Grid#setCellSelectionEnabled(true))
>
> I'm talking about navigation inside editors, and yes - when user press
> for example ARROW_DOWN/UP we have to move to the cell in row below/up.
> Instead of Combo we use our own control (because of special
> functionality), and it should be opened with Alt+ArrowDown.
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-08-04T14:13:21-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591479/#msg_591479
ColumnViewerEditorActivationStrategy and allow users to customize it
there. Could you file a bug against Platform/UI and CC me on the bug.
Tom
Sergey Stepanenko schrieb:
> Tom Schindl wrote:
>> Hm. So if a user presses and ARROW_LEFT/RIGHT in an active editor your
>> are jumping to the next one? The same is true for ARROW_DOWN/UP and
>> PAGE_DOWN/UP which e.g. people use it to select values from Combos or
>> do you talk about general navigation outside active
>> editors(Grid#setCellSelectionEnabled(true))
>
> I'm talking about navigation inside editors, and yes - when user press
> for example ARROW_DOWN/UP we have to move to the cell in row below/up.
> Instead of Combo we use our own control (because of special
> functionality), and it should be opened with Alt+ArrowDown.
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-08-04T14:13:21-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/591656/#msg_591656
I got the solution for traverse between cells using Tab key with out
extending ColumnViewerEditor with below code.
Regrads,
Raghava]]>Raghava Rao2008-08-11T10:14:05-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/57587/#msg_57587
I got the solution for traverse between cells using Tab key with out
extending ColumnViewerEditor with below code.
Regrads,
Raghava]]>Raghava Rao2008-08-11T10:14:05-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/592495/#msg_592495
i am able traverse between cell using tab specified code in previous
message.
I created table in one editor.
but scrollbar of the editor is not moving according to tab move.
Scrollbar is moved with arrow key navigation.
do i need to do anything explicitly.
Advance thanks for response.
Regards,
Raghava]]>Raghava Rao2008-10-09T12:59:05-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/59900/#msg_59900
i am able traverse between cell using tab specified code in previous
message.
I created table in one editor.
but scrollbar of the editor is not moving according to tab move.
Scrollbar is moved with arrow key navigation.
do i need to do anything explicitly.
Advance thanks for response.
Regards,
Raghava]]>Raghava Rao2008-10-09T12:59:05-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/60033/#msg_60033
code in
GridViewerEditor#updateFocusCell it looks like this:
Raghava Rao schrieb:
> Hello,
>
> i am able traverse between cell using tab specified code in previous
> message.
>
> I created table in one editor.
> but scrollbar of the editor is not moving according to tab move.
>
> Scrollbar is moved with arrow key navigation.
>
> do i need to do anything explicitly.
>
> Advance thanks for response.
>
> Regards,
> Raghava
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-10-10T10:11:48-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/592533/#msg_592533
code in
GridViewerEditor#updateFocusCell it looks like this:
Raghava Rao schrieb:
> Hello,
>
> i am able traverse between cell using tab specified code in previous
> message.
>
> I created table in one editor.
> but scrollbar of the editor is not moving according to tab move.
>
> Scrollbar is moved with arrow key navigation.
>
> do i need to do anything explicitly.
>
> Advance thanks for response.
>
> Regards,
> Raghava
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2008-10-10T10:11:48-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/592565/#msg_592565
i tried in debug mode.it's going to updatefocuscell method.but Scrollbar
is not getting moved.
I created scrollbar on Grid.
For arrow keys scrollbar moving properly.
Advance Thanks for ur reply.
Thanks,
Raghava]]>Raghava Rao2008-10-10T21:37:58-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/60106/#msg_60106
i tried in debug mode.it's going to updatefocuscell method.but Scrollbar
is not getting moved.
I created scrollbar on Grid.
For arrow keys scrollbar moving properly.
Advance Thanks for ur reply.
Thanks,
Raghava]]>Raghava Rao2008-10-10T21:37:58-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/592574/#msg_592574
> Hello Tom,
> i tried in debug mode.it's going to updatefocuscell method.but Scrollbar
> is not getting moved.
> I created scrollbar on Grid.
> For arrow keys scrollbar moving properly.
> Advance Thanks for ur reply.
> Thanks,
> Raghava
Hello,
Can you sugggest me any other solution to make scrollabar update with Tab
traversing.
Advance thanks for your reply.
Thanks,
Raghava]]>Raghava Rao2008-10-14T14:28:43-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/60129/#msg_60129
> Hello Tom,
> i tried in debug mode.it's going to updatefocuscell method.but Scrollbar
> is not getting moved.
> I created scrollbar on Grid.
> For arrow keys scrollbar moving properly.
> Advance Thanks for ur reply.
> Thanks,
> Raghava
Hello,
Can you sugggest me any other solution to make scrollabar update with Tab
traversing.
Advance thanks for your reply.
Thanks,
Raghava]]>Raghava Rao2008-10-14T14:28:43-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/60250/#msg_60250
Is this a bug?
Can u suggest any solution to make it work.
please do the needful.
Advance thanks for reply.
Thanks,
Raghava]]>Raghava Rao2008-10-22T12:33:18-00:00Re: Traverse between cells using Tab key
https://www.eclipse.org/forums/index.php/mv/msg/17659/592627/#msg_592627
Is this a bug?