public class ClickableSafeHtmlCell extends AbstractCellSafeHtml {
/**
* Construct a new ClickableSafeHtmlCell.
*/
public ClickableSafeHtmlCell() {
super(click, keydown);
}
@Override
public void onBrowserEvent(Context context, Element parent, SafeHtml value,
NativeEvent event,
Hi,
can I add an anchor object to a cell table?
I just found TextColumn as the only reasonable subclass of Column:
TextColumnEntry col_myCol = new TextColumnEntry()
But I need a type where I can insert an anchor...
And hints?
Thanks
Magnus
--
You received this message because you are
write your own cell override method render
hth
On Sat, Jan 28, 2012 at 1:46 PM, Magnus alpineblas...@googlemail.comwrote:
Hi,
can I add an anchor object to a cell table?
I just found TextColumn as the only reasonable subclass of Column:
TextColumnEntry col_myCol = new TextColumnEntry()
Thank you, but it is not clear yet:
Could you please mention the class that I should subclass?
And what should I use instead of TextCell?
Thanks!
TextColumnEntry myCol = new TextColumnEntry()
{
@Override
public String getValue(Entry obj)
{
return (obj.myAttribute);
}
};
--
See docs:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/GVWxakQw59sJ.
You will use the Column class directly and tell it to use your custom cell:
Column col = new ColumnEntry, String(new YourCustomCell()) {
@Override
public String getValue(Entry obj)
{
return (obj.myAttribute);
}
}
How to implement a custom cell can be found in the documentation.
check out the gwt-showcase for some examples.
On Sat, Jan 28, 2012 at 4:37 PM, Andrea Boscolo andrew...@gmail.com wrote:
See docs:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html
--
You received this message because you are subscribed to the Google Groups
Google