java - GWT: Retrieve generated classname -


gwt: 2.7 gss

i retrieve parent (not first 1 in hierarchy) of element using classname.

to this, hoped use generated css classname cssresources doesn't give me same classname 1 used in dom.

class test {     interface style extends cssresource     {         string test();     }      public interface resource extends clientbundle     {         @source( "test.gss" )         style style();     }      public static resource res = gwt.create(resource.class); } 

  • resource result gwt.log(test.res.style().test());:

    [package-name]-[classname]-style-test

  • dom result (myrenderer uirenderer used style):

    [package-name]-[classname]_myrendererimpl_gencss_style-test

what should retrieve specific parent of element ?
is there best way ?

ps: don't use widget @ element.

this whole point (well, 1 of them) of cssresource: same class name in sources turned different ones once compiled, never fear name conflicts.

generated names depend on fully-qualified name of cssresource interface, have use exact same interface (you can use in different clientbundle interfaces, , that's source of bugs: https://code.google.com/p/google-web-toolkit/issues/detail?id=6144 )


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -