You need custom cell that overrides render method to choose proper
cell to render. Something like this:

MyCell extends AbstractCell .....
.....
...
@Override
        public void render(Cell.Context context, C value,
com.google.gwt.safehtml.shared.SafeHtmlBuilder sb) {
                Cell<C> cell = getCell(context, value);
                actual = cell;
                cell.render(context, value, sb);
        };

public abstract Cell<C> getCell(Cell.Context context, C value);

Actual cell should be stored to be receiver of browser events in
onBrowserEvent

@Override
        public void onBrowserEvent(Cell.Context context, Element parent, C
value, NativeEvent event, ValueUpdater<C> valueUpdater) {
                if (actual == null) {
                        return;
                } else {
                        actual.onBrowserEvent(context, parent, value, event, 
valueUpdater);
                }
        };


On Aug 11, 9:13 am, vaibhav bhalke <[email protected]> wrote:
> Hi,
>
> How to add empty row in celltable with different celltype ?
>
> 4 columns present in my celltable i.e
> DatePickerCell,EditTextCell,NumberCell,SelectionCell
>
> I can able to set record values in cell with different celltype.
>
> I want to add empty row with different cell type in celltable also want few
> of them editable and rest are non-editable.
>
> I want to do MassUpdate in Celltable.So I required 1st row as empty because
> whenever I will change value in particular cell which editable then all
> values in that column should be updated immediately
>
> Suppose I edited value in edittextcell of 1st empty row then all values in
> same column should be edited immediately.
>
> Any help or guidance in this matter would be appreciated
>
> --
> Best Regards,
> Vaibhav Bhalke
>
> <http://about.me/vaibhavbhalke>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to