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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:26:08+00:00 2026-06-07T04:26:08+00:00

I have rendered a custom cell which combines an image and text. It looks

  • 0

I have rendered a custom cell which combines an image and text.
It looks like this:

   class ImageTextCell extends AbstractCell<String> 

My question is how to add this cell into celltable/datagrid.
I have tired this.

  Column<Message, String> iconColumn = new Column<Message, String>(new ImageTextCell())
            {
        @Override
        public String getValue(Message versionStatus) {

            return ? // I dont know what to type here. How to return the ImageTextCell object           }
    };
  • 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-07T04:26:10+00:00Added an answer on June 7, 2026 at 4:26 am

    The role of the Cell object is to turn a value into a piece of HTML. The role of the Column is to get that value from each row. For example, you have a bunch of Messages, each one on its own row – the Column should take a Message and figure out what String to pass to the Cell.

    The output of getValue will be fed into the input of render. The output of render should be the HTML you want to see in your app.

    Pseudo-codily, here’s what GWT does for you:

    for each Message in your table {
        pass the Message into Column.getValue and get out a String
        pass that String into Cell.render and get out some HTML
        add that HTML inside a <td> element in the table we're drawing
    }
    

    You just have to define Column.getValue and Cell.render so that this process makes the table you want.

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

Sidebar

Related Questions

I have a form which is rendered with radio buttons like so: <h2>How long
I have a custom cell renderer for a JList which displays a nested JList
I have a form which is like: class Address_info_updateForm(forms.Form): street = forms.CharField(label=_(Street), required=True) street2
I have a custom NSView (MyView), which is rendered by the NSViewCollectionItem. MyView has
I have created a custom server control. It looks great and the rendered HTML
I have a page which needs to be rendered in Quirks mode for the
I have the following table template that is rendered through knockout: <table class=gv data-bind=visible:
I have my on custom cell renderer and want to remove the border of
I have a situation where i need to implement a custom tree cell renderer.
While developing widgets (objects, which - rendered - use some custom javascript files), 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.