Sunday, October 31, 2010

Re: GWT 2.1 CELL TABLE

Thanks very much bradr!!

I'll try you suggestions!!

Daniele

On 29 Ott, 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment