How can I get the content of the edited fields after that I set the table isEditable(true);
I tried to read so many examples but none of them take the edited data.
could someone plz help me because I tried alot !!! thank u !!!
How can I get the content of the edited fields after that I set the table isEditable(true);
I tried to read so many examples but none of them take the edited data.
could someone plz help me because I tried alot !!! thank u !!!
Table editMode is quite limited:
Here is a simple example on how to construct a container outside the table and listen to property changes in that.
IndexedContainer container = new IndexedContainer();
container.addContainerProperty("name", String.class, "");
for (int i = 0; i < 500; i++) {
Integer rowid = new Integer(i);
container.addItem(rowid);
container.getContainerProperty(rowid, "name").setValue("Row " + i);
}
container.addListener(new Property.ValueChangeListener() {
public void valueChange(ValueChangeEvent event) {
Property p = event.getProperty();
mainWindow.showNotification("A row was changed to " + p);
}
});
Table t = new Table(null, container);
t.setEditable(true);
Because editMode is quite limited, you might want to consider not using it and using a generated column instead.
Thank u very much !!! but can u plz show me an example pf how to use generated columns ??!!
Thank u again =)