Tuesday, May 25, 2021

Re: Meaning of @ImportedWithPrefix?

Yes, make a dummy style resource where all class names are marked @external (http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#External_and_legacy_scopes) and override the methods of CellTable.Style to annotate them with @ClassName to match the CSS class names you used in the stylesheet.
(technically, you could also probably pass your own implementation of CellTable.Resources where the CellTable.Style methods return constants and ensureInjected() is a no-op)

On Thursday, May 20, 2021 at 6:07:19 PM UTC+2 ime...@gmail.com wrote:
Understood. While we are here, is it possible to switch CellTable or DataGrid to the same external CSS model used by Panels, Dialogs etc?

On Thursday, May 20, 2021 at 6:05:16 AM UTC-7 t.br...@gmail.com wrote:
Yes.
Note that you can put CellTable.Style.DEFAULT_CSS into your @Source to combine the default styles with yours.

On Thursday, May 20, 2021 at 1:42:12 AM UTC+2 ime...@gmail.com wrote:
Yes, thank you.

Actually, I was trying to figure out how to style CellTable (or DataGrid) so I started digging into the code. I found this thread, is this the right way to go about it?



On Wednesday, May 19, 2021 at 2:24:45 AM UTC-7 lofid...@gmail.com wrote:
Will this article help you?


ime...@gmail.com schrieb am Mittwoch, 19. Mai 2021 um 00:42:09 UTC+2:
I'm trying to understand how styling works in CellTable. The line # 298 has BasicStyle annotated with @ImportedWithPrefix("gwt-CellTable"). I'm curious, how's 'gwt-CellTable' literal come into picture, and what does it do?

/**
* Styles used by {@link BasicResources}.
*/
@ImportedWithPrefix("gwt-CellTable")
interface BasicStyle extends Style {
/**
* The path to the default CSS styles used by this resource.
*/
String DEFAULT_CSS = "com/google/gwt/user/cellview/client/CellTableBasic.css";

}

Thanks!

Slava

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/80df9d30-cd29-45b3-a1c8-32a6f68e95c6n%40googlegroups.com.

No comments:

Post a Comment