Hi Brad, In Step 3, "CellTable<Resource">" should be "CellTable<MyObject>", right?
I'm having some problems. When I follow your code (and my adjustment to Step 3), I end up with two "Matched CSS Rules" when I inspect my table in the browser. My custom CSS is there, but so is the original, and the original is taking precedence over the custom. I seem to be close... any ideas? ~Owen On 29 oct, 22:51, bradr <brad.rydzew...@gmail.com> wrote: > To do this, you have to override the CellTable's default style. > Because CellTable uses a CssResource, which ultimately gets obfuscated > when you compile, you have to create your own implementation and pass > it to the CellTable in the constructor. > > Here is how I did it: > > Step 1) Create your own implementation of the Resource > > import com.google.gwt.core.client.GWT; > import com.google.gwt.user.cellview.client.CellTable; > import com.google.gwt.user.cellview.client.CellTable.Resources; > public interface MyCellTableResources extends Resources { > > public MyCellTableResources INSTANCE = > GWT.create(MyCellTableResources.class); > > /** > * The styles used in this widget. > */ > @Source("CellTable.css") > CellTable.Style cellTableStyle(); > > } > > Step 2) Copy the CellTable.css file into your project (from gwt trunk) > into the same package as your Resource implementation. Customize the > css until it meets your style needs. > > Step 3) When you create an instance of the CellTable, give it your > your custom CssResource: > > myTable = new > CellTable<Resource>(Integer.MAX_VALUE,CellTableResources.INSTANCE); > > Hope that helps! > > On Oct 29, 11:55 am, bond <daniele.re...@gmail.com> wrote: > > > > > > > > > Hi, > > is possibile to remove the box around the single cell that appears > > when I click on a cell? > > > Thanks very much > > > Best regards -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.