On 22 nov, 13:57, ART <[EMAIL PROTECTED]> wrote:
> The below code only can set one tooltip t o th imagae ,i have to set
> for each case one tooltip.i hope it is clear.Any way to do this?
How about the following?
> AbstractPrototpeImage img;
String title;
> int num=Integer.parseInt(name);
>
> if (cloType.endsWith("h"){
> switch(num)
> {
> case0:
> img =images.h_0();
title = "h_0";
> break;
> case1:
> img =images.h_1();
title = "h_1";
> break;
> case2:
> img =images.h_2();
title = "h_2";
> break;
>
> case3:
> img =images.h_3();
title = "h_3";
> break;
>
> case4:
> img =images.h_4();
title = "h_4";
> break;
>
> default:
> img=images.e_1();
title = "e_1";
> }
>
> final Image imgh=img.createImage();
imgh.setTitle(title);
> return imgh;
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---