Help modifying celltable styles with gss

2016-11-16 Thread Raymond Hawkins
I'm in the process of updating to GWT 2.8, and I have the following code 
from 2.7:
public interface DataGridResource extends DataGrid.Resources {
  public interface Style2 extends Style {}

  @Source({DataGrid.Style.DEFAULT_CSS, "MaterialDataGrid.css"})
  Style2 dataGridStyle();
}

Following the instructions on 
http://www.gwtproject.org/articles/gss_migration.html, I'm trying to switch 
to using all gss. however, when I try to change MaterialDataGrid.css 
to MaterialDataGrid.gss, I get the following error: "[ERROR] Only either 
css files or gss files are supported on one interface".

I assume this is because "You cannot mix css and gss on the same method 
(@Source annotation)." and DataGrid.Style.DEFAULT_CSS points 
to com/google/gwt/user/cellview/client/DataGrid.css. 

If I manually use "com/google/gwt/user/cellview/client/DataGrid.gss", it 
works fine, but there doesn't appear to be a constant for the gss path. Am 
I missing anything here, or should I just either use the full path in my 
code or replace ".css" with ".gss" on DataGrid.Style.DEFAULT_CSS?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Integrate PayPal Express Checkout Flow in a project that use GWT-RPC

2015-07-08 Thread Raymond Hawkins
Without spending a whole lot of time on it, if you want to use GWT-RPC I 
think you'd basically copy most of the code from expresscheckout.java into 
your server-side RPC call so that it's calling paypalfunctions's 
"CallShortcutExpressCheckout" from paypalfunctions.java directly.

You'll need to handle the session stuff differently somehow though, either 
passing the amount and token back and forth from the client or storing it 
on the server some other way.

Good luck!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GSS Media Query Variables

2015-07-06 Thread Raymond Hawkins
I'll try to try it with 2.8 at some point.  Was just hoping maybe somebody 
else had tried to do the same thing and found a work-around. Because my 
snippet doesn't work.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unwanted DataGrid cell padding / indentation

2015-07-06 Thread Raymond Hawkins
That was my thinking as well.

On Monday, July 6, 2015 at 9:39:06 AM UTC-4, Jens wrote:
>
>
> That padding is on the td element itself though. Not the div inside of it. 
>> Or maybe that varies based on the browser?
>>
>
> GWT's DataGrid.gss file only sets padding on the td element 
> (dataGridHeader, dataGridFooter and dataGridCell). The padding on the div 
> inside that td.dataGridCell element is defined somewhere else in the app. 
> Maybe somewhere in the app there is a css rule like td > div { padding: .. 
> } or similar that causes the additional padding. Or the Cell itself renders 
> it with that padding.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unwanted DataGrid cell padding / indentation

2015-07-06 Thread Raymond Hawkins
That padding is on the td element itself though. Not the div inside of it. 
Or maybe that varies based on the browser?

On Saturday, July 4, 2015 at 5:14:05 AM UTC-4, Thomas Broyer wrote:
>
> That style comes from the default DataGrid styling: 
> https://github.com/gwtproject/gwt/blob/2.7.0/user/src/com/google/gwt/user/cellview/client/DataGrid.css
>  
>
> Pass a custom ClientBundle and CssResource to the DataGrid constructor to 
> change it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unwanted DataGrid cell padding / indentation

2015-07-03 Thread Raymond Hawkins
Actually I can't find thing since DataGrid came out that would add styling 
to a div inside of it.

I'd try doing a search on your whole code-base for "dataGridCell>div" to 
see if you're overwriting that style somewhere. Note that if you are, the 
override won't work that way once compiled.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unwanted DataGrid cell padding / indentation

2015-07-03 Thread Raymond Hawkins
That's very odd.  I didn't look real long, but I can't find anything in GWT 
2.8, 2.7, or 2.6 that would add styling for dataGridCell>div.  May I ask 
what version of GWT you're using?

On Friday, July 3, 2015 at 11:50:09 AM UTC-4, Julien wrote:
>
> Thank you for your answer !
> I think too that the style of the div inside td is the issue
>
> I can see that this div gets this padding from this css rule :
>
> .com-google-gwt-user-cellview-client-DataGrid-Style-dataGridCell*>div* {
>   *padding: 2px 15px;*
>   overflow: hidden;
> }
>
> which is defined in a 

Re: Unwanted DataGrid cell padding / indentation

2015-07-03 Thread Raymond Hawkins
The  inside the  shouldn't have any padding by default.  I would 
inspect that element and find out what css is giving it padding.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GSS Media Query Variables

2015-07-03 Thread Raymond Hawkins
Thanks!

I posted there to try to help with the bug, if indeed there is a bug.

My issue is that I want to define pixel numbers in one place and use those 
in my media queries. And I can't seem to get that to work.

I can do:
@def QUERY screen and (min-width: 600px);
@media QUERY {}

and that'll work just fine.  But if I do:
@def SIZE 600px;
@def QUERY screen and (min-width: SIZE);
@media QUERY {}

it results in "@media screen and (min-width: SIZE) {}" rather than the 
expected "@media screen and (min-width: 600px) {}"

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GSS Media Query Variables

2015-07-02 Thread Raymond Hawkins
Does anyone have any ideas for how I can use gss variables when defining a 
media query? I see this bug 
report about it not working, but was wondering if anyone has a work-around. 
I'd like to keep all my breakpoint defines in one place.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.