Thanks Abraham, working. On Oct 11, 5:37 pm, Sudhakar Abraham <[email protected]> wrote: > Subclass the CompositeCell class, override getConsumedEvents(), > onBrowserEvent() methods. > > //sample code > > public Cell getSampleCompositeCell() > { > final List hasCellAL = new ArrayList(); > hasCellAL.add(getDummyTextAreaCell()); > class YourCell extends CompositeCell > { > > @Override > public Set getConsumedEvents() > { > return Collections.singleton("contextmenu"); > } > > @Override > public void onBrowserEvent(Context context, Element parent, > Object value, NativeEvent event, ValueUpdater valueUpdater) > { > event.preventDefault(); > event.stopPropagation(); > Window.alert(" right click NativeEvent " + event); > //place your menu > } > > public YourCell (List<HasCell> hasCelList) > { > super(hasCelList); > } > } > > return new YourCell (hasCellAL); > } > > protected HasCell getDummyTextAreaCell() > { > return new HasCell() > { > > public Cell getCell() > { > return new TextInputCell(); > } > > public FieldUpdater getFieldUpdater() > { > return null; > } > > @Override > public Object getValue(Object object) > { > > return object.yourDomain_variable; > } > > }; > } > > //add compositecell to cellList > public void onModuleLoad() > { > CellList<String> cellList = new > CellList<String>(getSampleCompositeCell()); > cellList.setRowData(0, nameList_); > RootPanel.get().add(cellList); > > } > > S. Abrahamwww.DataStoreGwt.com > Persist objects directly in GAE
-- 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.
