Hi Joel,
sorry for the late reply.
(see inline)
Joel Silva wrote:
Hi guys.
Does anyone knows how I can create a tree of information for a contact?
What I want is to reproduce the type of behavior of the Groups that have
contacts inside. I want to have a contact and then expand this one and
see a couple of information. I'm trying to manipulate the
ContactListCellRenderer.java for a while now but until now I couldn't do
it...
It won't be so easy to do that:( As you may have already noticed we use a JList, instead of JTree to represent the contact list in the GUI and actually the 'tree' view there is simulated.
Some of the logic is in ContactListCellRenderer, as you mentioned, and the modification you should do there is the easy part, you could only add another type of objects that is represented differently in the list.
The difficult part would be with the ContactListModel, which is the ListModel used for the ContactList. Actually the ContactListModel uses directly the MetaContactListService as a datasource and there we have only two types of objects - MetaContactGroup-s and MetaContact-s. In order to achieve your goal you should write your own ListModel.
Otherwise you could easily show the information you need in a tool tip, but it depends a lot on your needs. If you choose to change the tool tip of a contact you could have a look in the same ContactListCellRenderer.
And another thing, how do you edit the Layout of the SipCommunicator
with a Visual editor?? The ones I've tried to use can't give me a
general idea of what I try to edit...
That's because we haven't used any visual editors, when writing the code. I'm now having a look at the Jigloo GUI Builder for Eclipse and will try to make the code compatible with such editors. So, this is coming soon.
Hope that all this helps.
Regards,
Yana
ยทยทยท
BR,
Joel Silva
Analyst
........................................................................
.....................................
Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 .
mailto:joel.silva@novabase.pt <mailto:joel.silva@novabase.pt> www.novabase.pt <http://www.novabase.pt/>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net