Hi,

I still have a question on that CellList example: I wonder where the 
CellList is created.

It seems that it is defined in the UIBinder code. There is a class 
ShowMorePagerPanel, which seems to hold the CellList. However this class is 
included twice in the UIBinder.

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
<ui:UiBinder
  xmlns:ui="urn:ui:com.google.gwt.uibinder"
  xmlns:g="urn:import:com.google.gwt.user.client.ui"
  xmlns:c='urn:import:com.google.gwt.user.cellview.client'
  xmlns:s="urn:import:mrs.client.mod.lecture.sample"
  >

  <ui:style>
    .scrollable {
      height: 400px;
      width: 250px;
      border: 1px solid #ccc;
      text-align: left;
    }
    
    .contactFormCell {
      padding-left: 20px;
    }
  </ui:style>

  <g:HTMLPanel>
    <table>
      <tr>
        <td
          valign='top'
          align='center'>
          <s:ShowMorePagerPanel
            addStyleNames='{style.scrollable}'
            ui:field='pagerPanel' />
          <s:RangeLabelPager
            ui:field='rangeLabelPager' />
        </td>
        <td
          class='{style.contactFormCell}'
          valign='top'
          align='center'>
          <s:ContactInfoForm
            ui:field='contactForm' />
          <br />
          <g:Button
            ui:field='generateButton'>
            <ui:msg
              key='cwCellListGenerateButton'>Generate 50 Contacts</ui:msg>
          </g:Button>
        </td>
      </tr>
      <tr>
        <td align='center'>
          <s:ShowMorePagerPanel ui:field='pager' />
          </td>
      </tr>
    </table>
  </g:HTMLPanel>
</ui:UiBinder>


I don't understand why this class is included twice. The second instance 
with an ui:field called "pager" is never referenced in the corresponding 
Java file.
On the other hand, I did not find the CellList anywhere else, so it must be 
included in ShowMorePagerPanel.

Could anyone give an explanation?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to