How can I get the value from a Textfield from a table cell?

My Vaadin application has a table in it. I need to get the value from a particular cell of the table.
How can I do it?

I tried using methods such as:

mainTable.getContainerProperty(1, “Task”).getValue().toString());

to no avail. How can I get the text written inside the TextField which is in the table?

I only get " com.vaadin.ui.TextField@1260bbe1 " as value.

mainTable.getContainerProperty(1, “Task”).getValue().getValue()

Thank you!

That put me in the right direction.
In my case the solution was this:

(((AbstractField) mainTable
.getContainerProperty(1, “Task”).getValue()).getValue());