Re: how to create an anchor column in a celltable

2018-08-30 Thread Ousti Driss
Problem solved, thank you everyone, a special thank to hy On Wednesday, August 29, 2018 at 6:52:36 PM UTC+2, hy wrote: > > Create a class that renders anchor like below: > > public class CustomAnchorCell > extends ClickableTextCell { > > private String itsHref = ""; > private bool

Re: how to create an anchor column in a celltable

2018-08-30 Thread Ousti Driss
Problem solved, thank you everyone, a special thank to hy On Tuesday, August 28, 2018 at 6:00:00 PM UTC+2, Ousti Driss wrote: > > Hey everyone, > > I'm writing the code of a simple web app using gwt, I have a Celltable all > its columns are String type, > one of the columns is a url column , I wa

Re: how to create an anchor column in a celltable

2018-08-29 Thread hy
Create a class that renders anchor like below: public class CustomAnchorCell extends ClickableTextCell { private String itsHref = ""; private boolean isEnabled = true; public CustomAnchorCell(String inHref) { super(); itsHref = inHref; } public Custom

Re: how to create an anchor column in a celltable

2018-08-29 Thread Ousti Driss
What I want is when you click on the cell a new tab opens with the url you clicked, my string url column is filled with the response I get from the servlet can you please give me more details on the alternative response. On Wednesday, August 29, 2018 at 3:45:27 PM UTC+2, Thomas Broyer wrote: > >

Re: how to create an anchor column in a celltable

2018-08-29 Thread Thomas Broyer
If you want to display text as-is (e.g. not a link), then you can use a ClickableTextCell (see it live, with source code, in http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellSampler), the FieldUpdater will be called when the cell is clicked. Alternatively, you could use a Tex

Re: how to create an anchor column in a celltable

2018-08-29 Thread Josselin Bardet
Hi, You can use a custom cell to do what you want. You can look at the ButtonCell class for exemple The render() method is called for each row of the cell table, you can make your link there @see com.google.gwt.cell.client.ButtonCell Le mar. 28 août 2018 à 18:00, Ousti Driss a écrit : > Hey

how to create an anchor column in a celltable

2018-08-28 Thread Ousti Driss
Hey everyone, I'm writing the code of a simple web app using gwt, I have a Celltable all its columns are String type, one of the columns is a url column , I want to make this column clickable, which means once you click on a cell of this column, you are redicted to the url shown, is that possibl