Gwt + CellTable.Style.DEFAULT_CSS
Using gwt 2.5.1
GWT project has main CSS file (proj.css), specified in the project html (proj.html).
New resource code:
Linking new resource code:
final CellTable<TableInfo> table = new CellTable<TableInfo>(20, (CellTable.Resources) GWT.create(TableRes.class));
Result:
Note:
What is wrong?
--
- <html>
- <head>
- ...
- <link type="text/css" rel="stylesheet" href="proj.css">
- ...
Another CSS file (Table.css) compiled with styles for the class CellTable. I took google`s basic style and changed it for myself.
New resource code:
- ...
- import com.google.gwt.user.cellview.client.CellTable;
- public interface TableRes extends CellTable.Resources {
- interface TableStyle extends CellTable.Style {
- }
- @Override
- @Source({ CellTable.Style.DEFAULT_CSS, "path/table.css" })
- TableStyle cellTableStyle();
- }
Linking new resource code:
final CellTable<TableInfo> table = new CellTable<TableInfo>(20, (CellTable.Resources) GWT.create(TableRes.class));
Result:
Style did not apply.
Note:
If i make a mistake in TableRes css path, host mode does not work. So path to table.css is ok.
What is wrong?
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+unsubscribe@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/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home