|
|
|
Re: Grid - Cell Height [message #21026 is a reply to message #20439] |
Tue, 12 December 2006 10:56  |
Eclipse User |
|
|
|
I'm working on setItemHeight in Grid.
Naren wrote:
> Hi Chris,
>
> While I was trying to do this I noticed that
> void newItem(GridItem item, int index) {
> ..............
>
> if (items.size() == 1)
> rowHeight = computeRowHeight(sizingGC);
> }
>
> which means that rowHeight is based on row 1 and is computed once during
> the creation and cannot be changed later
>
> say, If I create
> class MyTable extends Grid
> and still cannot override either
> newItem (package access)
> computeRowHeight (private)
> rowHeight (private)
>
> In my case, I need to set the itemheight if the shell is resized (all
> the rows will be of same height). I tried to change font height to
> reflect this, font in the table changes but not the item height.
>
> Please, let me know if there is any other way to reflect this behavior.
>
> Thanks
>
> Naren
>
> Chris Gross wrote:
>
>> This is currently only possible if you write your own custom cell
>> renderer.
>
>> -Chris
>
>> Naren wrote:
>>> How to set cell height in Grid?
>>>
>>> Naren
>>>
>
>
|
|
|
|
Re: Grid - Cell Height [message #572644 is a reply to message #17963] |
Tue, 12 December 2006 10:53  |
Eclipse User |
|
|
|
Hi Chris,
While I was trying to do this I noticed that
void newItem(GridItem item, int index) {
..............
if (items.size() == 1)
rowHeight = computeRowHeight(sizingGC);
}
which means that rowHeight is based on row 1 and is computed once during
the creation and cannot be changed later
say, If I create
class MyTable extends Grid
and still cannot override either
newItem (package access)
computeRowHeight (private)
rowHeight (private)
In my case, I need to set the itemheight if the shell is resized (all the
rows will be of same height). I tried to change font height to reflect
this, font in the table changes but not the item height.
Please, let me know if there is any other way to reflect this behavior.
Thanks
Naren
Chris Gross wrote:
> This is currently only possible if you write your own custom cell renderer.
> -Chris
> Naren wrote:
>> How to set cell height in Grid?
>>
>> Naren
>>
|
|
|
Re: Grid - Cell Height [message #572705 is a reply to message #20439] |
Tue, 12 December 2006 10:56  |
Eclipse User |
|
|
|
I'm working on setItemHeight in Grid.
Naren wrote:
> Hi Chris,
>
> While I was trying to do this I noticed that
> void newItem(GridItem item, int index) {
> ..............
>
> if (items.size() == 1)
> rowHeight = computeRowHeight(sizingGC);
> }
>
> which means that rowHeight is based on row 1 and is computed once during
> the creation and cannot be changed later
>
> say, If I create
> class MyTable extends Grid
> and still cannot override either
> newItem (package access)
> computeRowHeight (private)
> rowHeight (private)
>
> In my case, I need to set the itemheight if the shell is resized (all
> the rows will be of same height). I tried to change font height to
> reflect this, font in the table changes but not the item height.
>
> Please, let me know if there is any other way to reflect this behavior.
>
> Thanks
>
> Naren
>
> Chris Gross wrote:
>
>> This is currently only possible if you write your own custom cell
>> renderer.
>
>> -Chris
>
>> Naren wrote:
>>> How to set cell height in Grid?
>>>
>>> Naren
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03925 seconds