Re: Incubator ScrollTable how to remove icon right-top corner

2009-05-14 Thread jay

My solution is this:
1. Create a new CSS class:
.not-displayed {
display: none !important;
}

2. In my PagingScrollTable subclass's ctor:
  for ( int index = 0, numWidgets = getWidgetCount(); index 
numWidgets; index++ ) {
Widget widget = getWidget( index );
if ( widget instanceof Image ) {
  // Well, we can't remove the widget...AbstractScrollTable
prevents that. So, add a style that
  //  will cause it to not be displayed...
  widget.addStyleName( not-displayed );
  break;
}
  }

I know it's fragile, but having the button just confuses my users.

Please...make sure that when this widget graduates to core that:
  1. This button's behavior is configurable
  2. The button's presence is configurable

thanks,

jay

On May 11, 3:55 pm, Sumit Chandel sumitchan...@google.com wrote:
 Hi Mike,
 A possible solution would be to subclass the PagingOptionsImages image
 bundle interface and place your own images named the same as the
 PagingOptionsImages methods in your subclass package. This should replace
 the standard paging table images with your own (which I think in your case
 would be blank images).

 Alternatively, you could override the methods in the PagingOptionsImages in
 your subclass and @gwt.resource annotations pointing to images with names of
 your choice.

 Hope that helps,
 -Sumit Chandel



 On Thu, May 7, 2009 at 2:26 PM, mdwarne mike.wa...@gmail.com wrote:

  Hi,

  I'm not sure if this is the right place for incubator questions. I
  haven't been able to find the incubator group.

  I am using the scroll table from the incubator,  it has a small icon
  (2 mini arrows pointing left and right).
  I would like to remove/hide this icon.

  Any ideas?
  Thanks,
  Mike.
--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Incubator ScrollTable how to remove icon right-top corner

2009-05-11 Thread Sumit Chandel
Hi Mike,
A possible solution would be to subclass the PagingOptionsImages image
bundle interface and place your own images named the same as the
PagingOptionsImages methods in your subclass package. This should replace
the standard paging table images with your own (which I think in your case
would be blank images).

Alternatively, you could override the methods in the PagingOptionsImages in
your subclass and @gwt.resource annotations pointing to images with names of
your choice.

Hope that helps,
-Sumit Chandel

On Thu, May 7, 2009 at 2:26 PM, mdwarne mike.wa...@gmail.com wrote:


 Hi,

 I'm not sure if this is the right place for incubator questions. I
 haven't been able to find the incubator group.

 I am using the scroll table from the incubator,  it has a small icon
 (2 mini arrows pointing left and right).
 I would like to remove/hide this icon.

 Any ideas?
 Thanks,
 Mike.



 


--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Incubator ScrollTable how to remove icon right-top corner

2009-05-07 Thread mdwarne

Hi,

I'm not sure if this is the right place for incubator questions. I
haven't been able to find the incubator group.

I am using the scroll table from the incubator,  it has a small icon
(2 mini arrows pointing left and right).
I would like to remove/hide this icon.

Any ideas?
Thanks,
Mike.



--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---