Home » Eclipse Projects » Nebula » Grid renderer to be aware of editor started or not.
Grid renderer to be aware of editor started or not. [message #49289] |
Wed, 13 February 2008 15:55 |
Eclipse User |
|
|
|
Originally posted by: svo.ciklum.net
Hi,
We're working on our custom cell renderer for grid, and we need to be
aware of editor, if it's started or not, to make visual adjustments. How
can I get this information from renderer code, if we use GridTableViewer
for creating and maintaining the grid?
Regards,
Stanislav
|
|
| |
Re: Grid renderer to be aware of editor started or not. [message #49361 is a reply to message #49331] |
Wed, 13 February 2008 16:28 |
Eclipse User |
|
|
|
Originally posted by: svo.ciklum.net
Hi,
Sorry, I was not clear enough. We need to know, if editing is started in
the cell, which is currently being processed by renderer. Moreover, we
are using 3.3 API - 'ViewerColumn.setEditingSupport()' to assign cell
editors.
Stanislav
Tom Schindl wrote:
> Stanislav Vodetskyi schrieb:
>> Hi,
>>
>> We're working on our custom cell renderer for grid, and we need to be
>> aware of editor, if it's started or not, to make visual adjustments.
>> How can I get this information from renderer code, if we use
>> GridTableViewer for creating and maintaining the grid?
>>
>> Regards,
>> Stanislav
>
> ColumnViewer#isEditorActive()?
>
> Tom
>
|
|
| |
Re: Grid renderer to be aware of editor started or not. [message #49421 is a reply to message #49391] |
Wed, 13 February 2008 17:26 |
Eclipse User |
|
|
|
Originally posted by: svo.ciklum.net
Hi,
Thanks a lot! :)
Stanislav
Tom Schindl wrote:
> Stanislav Vodetskyi schrieb:
>> Hi,
>>
>> Sorry, I was not clear enough. We need to know, if editing is started
>> in the cell, which is currently being processed by renderer. Moreover,
>> we are using 3.3 API - 'ViewerColumn.setEditingSupport()' to assign
>> cell editors.
>>
>
> So you need to know if the active editor is exactly in the cell?
> I think you need to track this your own:
>
> A) By overloading:
> - EditingSupport#initializeCellEditorValue
> - EditingSupport#saveCellEditorValue
> and tracking the current activate cell-editor
>
> B) Registering yourself as a listener to ColumnViewerEditor
> and tracking the current activate cell-editor
>
> C) Using reflection and accessing the private-var cell in
> ColumnViewerEditor
>
> D) If you have turned on Cell-Navigation you could:
> 1. Test if a CellEditor is active
> 2. Calling GridViewer#getFocusCell()
>
> Tom
>
|
|
| |
Re: Grid renderer to be aware of editor started or not. [message #588567 is a reply to message #49331] |
Wed, 13 February 2008 16:28 |
blutkind Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi,
Sorry, I was not clear enough. We need to know, if editing is started in
the cell, which is currently being processed by renderer. Moreover, we
are using 3.3 API - 'ViewerColumn.setEditingSupport()' to assign cell
editors.
Stanislav
Tom Schindl wrote:
> Stanislav Vodetskyi schrieb:
>> Hi,
>>
>> We're working on our custom cell renderer for grid, and we need to be
>> aware of editor, if it's started or not, to make visual adjustments.
>> How can I get this information from renderer code, if we use
>> GridTableViewer for creating and maintaining the grid?
>>
>> Regards,
>> Stanislav
>
> ColumnViewer#isEditorActive()?
>
> Tom
>
|
|
| | |
Goto Forum:
Current Time: Thu Apr 18 10:46:07 GMT 2024
Powered by FUDForum. Page generated in 0.02706 seconds
|