Hi, everyone
I tried to put some images in gwt cell table where I used image cells
to do this. But those images turned out pretty large in the webpage. I
tried to use "aCellTable.setColumnWidth(column, width)", but it didn't
help. I know if only to display a single image, I can say "String url
= anImageResource.getUrl(); Image aImage = new Image(url);
aImage.setPixelSize(x,y);" things like that. But how can I scale an
image in a image cell / cell table?
Some of my codes:
CellTable<VehicleInfo> vehicleCellTable = new
CellTable<VehicleInfo>(1);
.....
Column<VehicleInfo,String> imageColumn = new
Column<VehicleInfo,String>(new ImageCell())
{
@Override
public String getValue(VehicleInfo object) {
return object.imageUrl;
}
};
vehicleCellTable.addColumn(imageColumn,"Image");
vehicleCellTable.setColumnWidth(imageColumn, "3em"); //doesn't help
.....
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.