Table Cell Renderer Issue for multiple values

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Table Cell Renderer Issue for multiple values

Postby SandeepD » Mon Dec 06, 2010 9:33 pm

Hi,

I am facing following issue in my application.
The table cells in my application can have multiple values . The values are a set of Array or List of type lets say MyIPAddress.
I have written a renderer for MyIPAddress called MyIPAddressRenderer as below.

public class MyIPAddressRenderer extends ContextSensitiveCellRenderer implements ListCellRenderer {
// blah blah
...
//
@Override
public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
// implemeted here
}

//get & set icon implemented
//get & set tool tip implemented
}

Now the issue I am seeing is :
1) When I have single value in the table cell (say cell of IP address Column ) i.e. I have single IP Address, it showing the contents of cell properly.
That means IPaddress is coming with Icon and Tool tip. Works fine. No issues.

2) When I have multiple values i.e. multiple IP address to be displayed in the cell, somehow it is not showing Icon and tool tip text.

I have a feeling like somehow I might be doing something wrong either in registering the renderer OR not implemented something which I should have implements.

Appreciate any help in this regard.

Thanks,
Sandeep
SandeepD
 
Posts: 3
Joined: Mon Nov 08, 2010 11:18 pm

Re: Table Cell Renderer Issue for multiple values

Postby JIDE Support » Tue Dec 07, 2010 8:43 am

Can we have a test case for the issue? It's hard to tell where the issue is with current information. It should work as long as you set tooltip in your renderer component.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Table Cell Renderer Issue for multiple values

Postby SandeepD » Tue Dec 07, 2010 11:48 pm

Hi,

Actually it was an issue my ArrayObjectRenderer. So, it worked after fixing.

Sorry for posting this issue unnecessarily.

Thanks a lot for your time.

Sandeep
SandeepD
 
Posts: 3
Joined: Mon Nov 08, 2010 11:18 pm


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 65 guests