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 7971803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:42:49+00:00 2026-06-04T07:42:49+00:00

I am trying to create a cell browser , gettign help from GWT Showcase

  • 0

I am trying to create a cell browser , gettign help from GWT Showcase

Here i am creating CellBrowser

        final MultiSelectionModel<MyDTO> selectionModel = new MultiSelectionModel<MyDTO>();

        CellBrowser cellBrowser = new CellBrowser(new ContactTreeViewModel(selectionModel), null);

What i am not getting is that , What is ContactTreeViewModel? I have read the class contacttreeviewmodel in GwtShowcase , but couldnt understand, what is it exactly

thanks for the help

  • 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-06-04T07:42:51+00:00Added an answer on June 4, 2026 at 7:42 am

    It’s your view model, that is the interface between the tree view and your actual model (in MVC or MVP parlance). The CellBrowser (same for a CellTree) will ask your TreeViewModel for the nodes of the tree (in the form of NodeInfo objects), their children, how to display them (the associated Cell), how to select them (the associated SelectionModel: you can have a tree where you can only select nodes from the 2nd level, and/or only one node per branch at the 2nd level, or any node, or …), and finally how to update them (the ValueUpdater).

    Basically (disclaimer: this is a simplification of the process!), each level in the tree is a CellList that a NodeInfo is responsible for. The setDataDisplay associates that CellList with the NodeInfo so that changes to the model can be reflected in the tree, then the Cell, ProvidesKey, SelectionModel and ValueUpdater all have the same behavior as for a CellList. The CellBrowser asks your NodeInfo for them in order to setup the CellList. When expanding a node, the CellBrowser asks your TreeViewModel for the NodeInfo associated to the expanded node and uses it to create a new CellList.

    The ContactTreeViewModel from the Showcase is thus a specific implementation of the TreeViewModel to display contacts (the model) as a tree.

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

Sidebar

Related Questions

I am trying to create a link from a cell on one sheet to
I'm trying to create an icon/widget (1 cell x 1 cell) that can be
Ok so I am trying create a login script, here I am using PHP5
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
I'm trying to create a tableview which contains different types of table cell but
I am trying to set a custom style to a GWT CellBrowser widget using
I am trying to create a custom cell for my UITableView. I am using
I'm trying to create a table with each cell having a fixed width but
I'm trying to create an HTML/CSS-based week calendar using CSS display:table-cell styling on the
I am trying to create a scrollable panel within a table cell. What I

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.