[go: up one dir, main page]

Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid - Custom Cell Border / Width
Grid - Custom Cell Border / Width [message #17948] Tue, 28 November 2006 21:08 Go to next message
Eclipse UserFriend
Originally posted by: x_naren.hotmail.com

How to set Grid Cell Border Color / width / Height / Font?
basically a cell with custom properties? or custom cell

Naren
Re: Grid - Custom Cell Border / Width [message #17976 is a reply to message #17948] Tue, 28 November 2006 21:55 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Have you read the javadoc? GridItem#setBackground,
GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...

You can completely control the rendering of the cell by implementing
your own cell renderer using GridColumn#setCellRenderer, but its as
simple as it may appear.

-Chris

Naren wrote:
> How to set Grid Cell Border Color / width / Height / Font? basically a
> cell with custom properties? or custom cell
>
> Naren
>
Re: Grid - Custom Cell Border / Width [message #18089 is a reply to message #17976] Thu, 30 November 2006 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: x_naren.hotmail.com

Thanks Chris,

I should have been more specific.

I was not referring to cell background/foreground colors, but I was
referring towards cell BORDER colors/border line width and cell height.

Also, is there an example for setcellrenderer?

Thanks

Naren

Chris Gross wrote:

> Have you read the javadoc? GridItem#setBackground,
> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...

> You can completely control the rendering of the cell by implementing
> your own cell renderer using GridColumn#setCellRenderer, but its as
> simple as it may appear.

> -Chris

> Naren wrote:
>> How to set Grid Cell Border Color / width / Height / Font? basically a
>> cell with custom properties? or custom cell
>>
>> Naren
>>
Re: Grid - Custom Cell Border / Width [message #18668 is a reply to message #18089] Thu, 30 November 2006 15:56 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
There is currently no way to change the line color, line width or cell
height without writing a custom cell renderer.

There isn't any special examples for cell renderers other than the code
for the default grid cell renderer in CVS. Sorry.

-Chris

Naren wrote:
> Thanks Chris,
>
> I should have been more specific.
>
> I was not referring to cell background/foreground colors, but I was
> referring towards cell BORDER colors/border line width and cell height.
>
> Also, is there an example for setcellrenderer?
>
> Thanks
>
> Naren
>
> Chris Gross wrote:
>
>> Have you read the javadoc? GridItem#setBackground,
>> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...
>
>> You can completely control the rendering of the cell by implementing
>> your own cell renderer using GridColumn#setCellRenderer, but its as
>> simple as it may appear.
>
>> -Chris
>
>> Naren wrote:
>>> How to set Grid Cell Border Color / width / Height / Font? basically
>>> a cell with custom properties? or custom cell
>>>
>>> Naren
>>>
>
>
Re: Grid - Custom Cell Border / Width [message #569728 is a reply to message #17948] Tue, 28 November 2006 21:55 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Have you read the javadoc? GridItem#setBackground,
GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...

You can completely control the rendering of the cell by implementing
your own cell renderer using GridColumn#setCellRenderer, but its as
simple as it may appear.

-Chris

Naren wrote:
> How to set Grid Cell Border Color / width / Height / Font? basically a
> cell with custom properties? or custom cell
>
> Naren
>
Re: Grid - Custom Cell Border / Width [message #570053 is a reply to message #17976] Thu, 30 November 2006 15:48 Go to previous message
Naren is currently offline NarenFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks Chris,

I should have been more specific.

I was not referring to cell background/foreground colors, but I was
referring towards cell BORDER colors/border line width and cell height.

Also, is there an example for setcellrenderer?

Thanks

Naren

Chris Gross wrote:

> Have you read the javadoc? GridItem#setBackground,
> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...

> You can completely control the rendering of the cell by implementing
> your own cell renderer using GridColumn#setCellRenderer, but its as
> simple as it may appear.

> -Chris

> Naren wrote:
>> How to set Grid Cell Border Color / width / Height / Font? basically a
>> cell with custom properties? or custom cell
>>
>> Naren
>>
Re: Grid - Custom Cell Border / Width [message #570257 is a reply to message #18089] Thu, 30 November 2006 15:56 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
There is currently no way to change the line color, line width or cell
height without writing a custom cell renderer.

There isn't any special examples for cell renderers other than the code
for the default grid cell renderer in CVS. Sorry.

-Chris

Naren wrote:
> Thanks Chris,
>
> I should have been more specific.
>
> I was not referring to cell background/foreground colors, but I was
> referring towards cell BORDER colors/border line width and cell height.
>
> Also, is there an example for setcellrenderer?
>
> Thanks
>
> Naren
>
> Chris Gross wrote:
>
>> Have you read the javadoc? GridItem#setBackground,
>> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...
>
>> You can completely control the rendering of the cell by implementing
>> your own cell renderer using GridColumn#setCellRenderer, but its as
>> simple as it may appear.
>
>> -Chris
>
>> Naren wrote:
>>> How to set Grid Cell Border Color / width / Height / Font? basically
>>> a cell with custom properties? or custom cell
>>>
>>> Naren
>>>
>
>
Previous Topic:Reactions to CompositeTable API
Next Topic:Grid - Customize Cell Selection
Goto Forum:
  


Current Time: Fri Dec 13 17:31:54 GMT 2024

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

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

Back to the top