should show only when a condition is true. How do I achieve that?
This is my code now:
Column<Person, String> myColumn = new Column<Person, String>(new
ButtonCell()) {
@Override
public String getValue(Person object) {
return "Button label";
}
};
myColumn.setFieldUpdater(new FieldUpdater<Person, String>() {
@Override
public void update(int index, final Person object, String
value) {
object.performOperationOnObject();
// and do some other stuff...
}
});
myCellTable.addColumn("", myColumn);
The button should only show up if the Person.showButton() == true.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment