[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
addValidValue with image parameter  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

I use the "ValidValuesBinding.addValidValue(java.lang.String value, java.lang.String text, java.lang.String valuecomment, java.lang.String image)" method to decorate some combox items with images (but without valuecomment). This particular feature is not documented in the demo workplace (workpage "Image in front of text") but I was able to use it.

However, it was a little bit tricky: I had to set withvaluecomment to true.
This causes that the text of each combox item becomes bold, what I don't really want in this case.

May be we need an attribute "withimage" to uncouple or may be simply display always the image if set?

Kind regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi Daniel.

there is a fabulous demo "Double Line Item" in the demo workplace, that shows the usage with image... ;-)

The issue is: when rendering images then typcially the images need a certain size to be meaningful - so we by default open the "double line mode". In this the first line is drawn in bold the seoncd one in normal font...

The whole combobox looks much nicer if you find some second text to add a comment, so that a second text line is output.

Can you send a screenshot of your exampple?

Thanks! Björn

Björn Müller, CaptainCasa GmbH
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn,

I think that images 16x16 may be meaningful in some cases, e.g. country flags. Also, in the "Double Line Item" workpage, the delete.png (16x16) seems too enlarged to me.

I enclose examples with "famfamfam" flags 16x16 that I would like to use.

Regards, Daniel
[Thumb - flags_comment.png]
 Filename flags_comment.png [Disk] Download
 Description double line
 Filesize 11 Kbytes
 Downloaded:  420 time(s)

[Thumb - flags_nocomment.png]
 Filename flags_nocomment.png [Disk] Download
 Description Single line
 Filesize 7 Kbytes
 Downloaded:  393 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...OK, will update the bold output... - really does not look too nice...

Thanks +
Regards!

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team