Re: Add tooltips to images in an ImageBundle!

2008-11-24 Thread ART

thanks Mike.it woked.
Ann.

On Nov 21, 10:17 am, ART [EMAIL PROTECTED] wrote:
 Hi,
 How can I add tooltips to images in an ImageBundle using only GWT.Some
 code snippets please.
 thanks,
 Anitha.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-24 Thread ART

thanks Mike.It worked.
Ann.

On Nov 22, 2:27 pm, Thomas Broyer [EMAIL PROTECTED] wrote:
 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;

  }- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-22 Thread ART

Thanks Mike. My situation I have abstractPrototypeImage img and it has
5 prototype depeding on different conditions and I ave to add tooltip
to each and i am creating the image after all conditions.

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?

For example
AbstractPrototpeImage img;
int num=Integer.parseInt(name);

if (cloType.endsWith(h){
switch(num)
{
case0:
img =images.h_0();
break;
case1:
img =images.h_1();
break;
case2:
img =images.h_2();
break;

case3:
img =images.h_3();
break;

case4:
img =images.h_4();
break;

default:
img=images.e_1();



}
final Image imgh=img.createImage();
imgh.setTitle();
return imgh;
}

Thanks,
Ann.

On Nov 21, 12:40 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 private XYZImageBundle Images = (XYZImageBundle)GWT.create
 (XYZImageBundle.class);
 private Image logo= Images.XYZLogo().createImage();
 logo.setTitle(Click here to return to main screen);

 Straight out of my code in production, XYZ substituted for the real
 three letter acronym.  Also straight out of the book

 On Nov 21, 8:17 am, ART [EMAIL PROTECTED] wrote:



  Hi,
  How can I add tooltips to images in an ImageBundle using only GWT.Some
  code snippets please.
  thanks,
  Anitha.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-22 Thread Thomas Broyer


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 Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Add tooltips to images in an ImageBundle!

2008-11-21 Thread ART

Hi,
How can I add tooltips to images in an ImageBundle using only GWT.Some
code snippets please.
thanks,
Anitha.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-21 Thread [EMAIL PROTECTED]

private XYZImageBundle Images = (XYZImageBundle)GWT.create
(XYZImageBundle.class);
private Image logo= Images.XYZLogo().createImage();
logo.setTitle(Click here to return to main screen);

Straight out of my code in production, XYZ substituted for the real
three letter acronym.  Also straight out of the book

On Nov 21, 8:17 am, ART [EMAIL PROTECTED] wrote:
 Hi,
 How can I add tooltips to images in an ImageBundle using only GWT.Some
 code snippets please.
 thanks,
 Anitha.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---