that simple !

A shame that it has so poor a documetation;

thanks and sorry for the trouble

Patrick
  ----- Original Message ----- 
  From: Alexandre Ardhuin 
  To: google-web-toolkit@googlegroups.com 
  Sent: Monday, April 11, 2011 10:36 AM
  Subject: Re: CellTable Row Color


  table.setRowStyles(new RowStyles<Person>() {
      @Override
      public String getStyleNames(Person p, int rowIndex) {
          if (p.isWoman()) {
              return "woman";
          } else {
              return "man";
          }
      }
  });

  and css rules :
  .woman {
    background-color: pink;
  }
  .man {
    background-color: blue;
  }

  Alexandre


  2011/4/11 Patrick Cailly <metronome.ba...@worldonline.fr>

    Any example showing this ?

    thanks anyway

    Patrick
      ----- Original Message ----- 
      From: Alexandre Ardhuin 
      To: google-web-toolkit@googlegroups.com 
      Sent: Monday, April 11, 2011 9:48 AM
      Subject: Re: CellTable Row Color


      You can use 
com.google.gwt.user.cellview.client.CellTable.setRowStyles(RowStyles<T>) to 
provide a class name by row.

      Alexandre


      2011/4/11 Patrick Cailly <metronome.ba...@worldonline.fr>

        Is it possible to change the bakcround colors of certain rows in a 
CellTable

        ie in a table of persons :
            men should be blue
            women should be pink

        Patrick
            


        -- 
        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+unsubscr...@googlegroups.com.
        For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




      -- 
      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+unsubscr...@googlegroups.com.
      For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


--------------------------------------------------------------------------

      Aucun virus trouvé dans ce message.
      Analyse effectuée par AVG - www.avg.fr
      Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011


    -- 
    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+unsubscr...@googlegroups.com.
    For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




  -- 
  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+unsubscr...@googlegroups.com.
  For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

------------------------------------------------------------------------------

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1321 / Base de données virale: 1500/3564 - Date: 10/04/2011

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to