Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Set Text for a Header in Grid
Set Text for a Header in Grid [message #41241] Wed, 24 October 2007 06:29 Go to next message
Eclipse UserFriend
Originally posted by: sania124.yahoo.com

Hi

I am creating a Grid with column and row headers.I want to know how to set
text for the cell(header) that is the intersection point of the column and
row headers.

Thanks
Sania
Re: Set Text for a Header in Grid [message #41491 is a reply to message #41241] Wed, 24 October 2007 15:20 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Sania,

Use GridItem#setHeaderText(String).

Regards,
-Chris

sania wrote:
> Hi
> I am creating a Grid with column and row headers.I want to know how to
> set text for the cell(header) that is the intersection point of the
> column and row headers.
>
> Thanks
> Sania
>
Re: Set Text for a Header in Grid [message #41753 is a reply to message #41491] Thu, 25 October 2007 05:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sania124.yahoo.com

Hi

Thanks for the reply ...
I think I didnt explain my problem clearly....

I have a grid with both column and row headers....
I could set the text for the row headers of GridItems using
GridItem.setHeaderText()...

But I want to set the text for the cell that preceeds column 0...
I cannot use GridItem.setHeaderText()here cause there is no GridItem here
....

Hope I am clear this time

Thanks
Sania
Re: Set Text for a Header in Grid [message #41996 is a reply to message #41753] Thu, 25 October 2007 14:34 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Oh I see. There is no text attribute for that piece. You could write
your own renderer for it and call setTopLeftRenderer().

-Chris

sania wrote:
> Hi
> Thanks for the reply ...
> I think I didnt explain my problem clearly....
>
> I have a grid with both column and row headers....
> I could set the text for the row headers of GridItems using
> GridItem.setHeaderText()...
>
> But I want to set the text for the cell that preceeds column 0...
> I cannot use GridItem.setHeaderText()here cause there is no GridItem
> here ...
>
> Hope I am clear this time
> Thanks
> Sania
>
Re: Set Text for a Header in Grid [message #585494 is a reply to message #41241] Wed, 24 October 2007 15:20 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Hi Sania,

Use GridItem#setHeaderText(String).

Regards,
-Chris

sania wrote:
> Hi
> I am creating a Grid with column and row headers.I want to know how to
> set text for the cell(header) that is the intersection point of the
> column and row headers.
>
> Thanks
> Sania
>
Re: Set Text for a Header in Grid [message #585642 is a reply to message #41491] Thu, 25 October 2007 05:22 Go to previous message
Eclipse UserFriend
Originally posted by: sania124.yahoo.com

Hi

Thanks for the reply ...
I think I didnt explain my problem clearly....

I have a grid with both column and row headers....
I could set the text for the row headers of GridItems using
GridItem.setHeaderText()...

But I want to set the text for the cell that preceeds column 0...
I cannot use GridItem.setHeaderText()here cause there is no GridItem here
....

Hope I am clear this time

Thanks
Sania
Re: Set Text for a Header in Grid [message #585757 is a reply to message #41753] Thu, 25 October 2007 14:34 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Oh I see. There is no text attribute for that piece. You could write
your own renderer for it and call setTopLeftRenderer().

-Chris

sania wrote:
> Hi
> Thanks for the reply ...
> I think I didnt explain my problem clearly....
>
> I have a grid with both column and row headers....
> I could set the text for the row headers of GridItems using
> GridItem.setHeaderText()...
>
> But I want to set the text for the cell that preceeds column 0...
> I cannot use GridItem.setHeaderText()here cause there is no GridItem
> here ...
>
> Hope I am clear this time
> Thanks
> Sania
>
Previous Topic:Grid : When Headers meet Footers
Next Topic:Grid: How can I find out if the row or column is selected?
Goto Forum:
  


Current Time: Thu Mar 28 16:22:22 GMT 2024

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top