title: Add  Icon in a Column of CellTable in GWT
body: <p>With all the values in textcoloumn.</p>
  
  <p>I want to add image cell.</p>
  
  <p><strong>I don't want use Gwt-Ext or Smart client.</strong> </p>
  
  <p>My code </p>
  
  <pre><code>private CellTable&lt;FDocument&gt; getDocumentTable() {
          if (documentTable == null) {
              documentTable = new CellTable&lt;FDocument&gt;();
              documentTable.setSize("600px", "300px");
              documentTable.addColumn(nameColumnD, "NAME");
              documentTable.addColumn(sizeColumnD, "SIZE");
              documentTable.addColumn(modified_by_ColumnD, "MODIFIED BY");
              documentTable.addColumn(dateColumnD, "MODIFIED ON");
              documentTable.addColumn(majorVersion, "Major Version");
  
  
          }
          return documentTable;
      }
  
  TextColumn&lt;FDocument&gt; nameColumnD = new TextColumn&lt;FDocument&gt;() {
              @Override
              public String getValue(FDocument object) {
                  return object.getName();
              }
          };          
          TextColumn&lt;FDocument&gt; sizeColumnD = new TextColumn&lt;FDocument&gt;() {
              @Override
              public String getValue(FDocument object) {
                  return object.getSize();                            
              }
          };
  
  ..// similarly all the coloumn.
  </code></pre>
  
  <p>I want to add to image Cell. How to do it.</p>
  
  <hr>
  
  <p><strong>edited</strong></p>
  
  <pre><code>ImageCell imageCell=new ImageCell();
          Column&lt;FDocument,String&gt; iconColumn = new Column&lt;FDocument, String&gt;(imageCell){
  
              @Override
              public String getValue(FDocument object) {
                  // TODO Auto-generated method stub
                  return object.getImageUrl(object);
              }
  
          };
  </code></pre>
  
  <p>in FDocument Class </p>
  
  <p>public String getImageUrl(FilenetDocument object){</p>
  
  <pre><code>            if(object.getMimeType().equals("text/plain")){
          return "url(Txt16.gif)";
      }else{
          if(object.getMimeType()=="application/x-filenet-publishtemplate"){
              return "url(PublishTemplate16.gif)";
          }else{
              if(object.getMimeType()=="application/x-filenet-filetype-msg"){
                  return "url(Msg16.gif)";
              }else{
                  if(object.getMimeType()=="application/x-filenet-workflowdefinition"){
                      return "url(WorkflowDefinition16.gif)";
                  }else{
                      if(object.getMimeType()=="application/msword"){
                          return "url(Doc16.gif)";
                      }else{
                          return "url(Txt16.gif)";
                      }
  
                  }
  
              }
          }
      }
  </code></pre>