pfiction
28 Aug 2008, 5:42 AM
Hi,
I implemented such simple TreeTable:
List<TreeTableColumn> columns = new ArrayList<TreeTableColumn>();
TreeTableColumn column = new TreeTableColumn("name", "Name", 300);
column.setMinWidth(75);
columns.add(column);
column = new TreeTableColumn("date", "Date", 170);
column.setRenderer(new DateTimeCellRenderer(DateTimeFormat.getMediumDateTimeFormat()));
columns.add(column);
column = new TreeTableColumn("size", "Size", 120);
columns.add(column);
TreeTableColumnModel cm = new TreeTableColumnModel(columns);
final TreeTable table = new TreeTable(cm);
table.setAnimate(false);
table.setItemIconStyle("icon-page");
RootPanel.get().add(table);
This code is in onModuleLoad method in MainModule class which extends EntryPoint.
But result is very poor. There is no graphic in TreeTable, there is only text and functionality. It seems like I missed some css files, but in MainModule.gwt.xml I used following definitiones:
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.extjs.gxt.ui.GXT'/>
<inherits name='com.extjs.gxt.themes.Themes' />
<stylesheet src="css/ext-all.css" />
I use only ExtGwt without ExtJs, I copied all css from ExtGwt download file to my project and set stylesheet on ext-all.css in MainModule.gwt.xml.
I tried to use DataPicker and in this case the result was proper. Graphic and functionality was good.
I see two possibility in this problem.
First one lack of css files
Second one - not proper implementation
I will be gratefull for your help.
pfiction.
I implemented such simple TreeTable:
List<TreeTableColumn> columns = new ArrayList<TreeTableColumn>();
TreeTableColumn column = new TreeTableColumn("name", "Name", 300);
column.setMinWidth(75);
columns.add(column);
column = new TreeTableColumn("date", "Date", 170);
column.setRenderer(new DateTimeCellRenderer(DateTimeFormat.getMediumDateTimeFormat()));
columns.add(column);
column = new TreeTableColumn("size", "Size", 120);
columns.add(column);
TreeTableColumnModel cm = new TreeTableColumnModel(columns);
final TreeTable table = new TreeTable(cm);
table.setAnimate(false);
table.setItemIconStyle("icon-page");
RootPanel.get().add(table);
This code is in onModuleLoad method in MainModule class which extends EntryPoint.
But result is very poor. There is no graphic in TreeTable, there is only text and functionality. It seems like I missed some css files, but in MainModule.gwt.xml I used following definitiones:
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.extjs.gxt.ui.GXT'/>
<inherits name='com.extjs.gxt.themes.Themes' />
<stylesheet src="css/ext-all.css" />
I use only ExtGwt without ExtJs, I copied all css from ExtGwt download file to my project and set stylesheet on ext-all.css in MainModule.gwt.xml.
I tried to use DataPicker and in this case the result was proper. Graphic and functionality was good.
I see two possibility in this problem.
First one lack of css files
Second one - not proper implementation
I will be gratefull for your help.
pfiction.