Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5927919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:14:02+00:00 2026-05-22T14:14:02+00:00

In GWT, I am using CellTable. When you mouse over the CellTable it highlights

  • 0

In GWT, I am using CellTable.

When you mouse over the CellTable it highlights each row.

How do change the behavior of the highlighting from the mouse over? Specifically:

  • change the color of highlighting
  • disable/enable
  • make it highlight only the specific grid item at your cursor (instead of the entire row)

( The current hack I have is to create a bunch of 1 column wide CellTables and add them to a VerticalPanel layout… creating the illusion that there is one CellTable and it highlights each grid according to your cursor. Is this bad? Why? performance? )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:14:03+00:00Added an answer on May 22, 2026 at 2:14 pm

    You will notice the CellTable uses a ResourceBundle, which means all the css styles get obfuscated … this makes it more difficult to override styles.

    The CellTable constructor will actually allow you to override the default ResourceBundle. So first, you need to create your own resource bundle like this:

    public interface CellTableResources extends Resources {
    
            public CellTableResources INSTANCE =
                    GWT.create(CellTableResources.class);
    
            /**
             * The styles used in this widget.
             */
            @Source("CellTable.css")
            CellTable.Style cellTableStyle();
    }
    

    Then you need to create your own CSS file. I recommend copying the CellTable style directly into your project and use that as a starting point. You can find it here:
    http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/CellTable.css

    Make sure the style is injected first, and then you just feed it into the CellTable’s constructor like this:

       CellTableResources.INSTANCE.cellTableStyle().ensureInjected();
       myCellTable = new CellTable<T>(Integer.MAX_VALUE,CellTableResources.INSTANCE);
    

    Specifically, you’ll want to tweak these styles:

    • cellTableKeyboardSelectedRow
    • cellTableKeyboardSelectedRowCell
    • cellTableSelectedRow
    • cellTableSelectedRowCell
    • cellTableKeyboardSelectedCell

    It is important to note that the cell table differentiates between the ‘selected row’ and the ‘keyboard selected row’. The selected row is the actual row selected (ie via SelectionModel). The keyboard selected row refers to what is highlighted when the user is pressing the up / down key, but does not mean the row is actually selected (if that makes sense).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rather peculiar problem. I am using CellTable from GWT 2.2 release.
Currently I change my locale in GWT using a javascript as a native code.
I am using GWT-RPC to populate Ext-GWT TreeGrids with data from a server. I
We are using the GWT-Presenter framework and attempting to use CellTable to put together
I am using GWT's CellTable for a non-editable number cell, and it works fine.
I am using the code from http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable to insert a checkbox column in a
I am using GWT ext and trying to get the values from page and
Does anyone know for an example of GWT's CellTable using RequestFactory and that table
I'm currently using a Gwt CellTable, bound to my GAE/Objectify backend via RPC calls.
I'm using GWT 2.4. I have a com.google.gwt.user.cellview.client.CellTable widget, but I'm having trouble figuring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.