aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java
diff options
context:
space:
mode:
authorTeppo Kurki <teppo.kurki@vaadin.com>2015-06-03 14:26:35 +0300
committerVaadin Code Review <review@vaadin.com>2015-06-05 09:58:51 +0000
commitd5860be5b6043c9b6f9a1b5b1550b1666af2d6ef (patch)
treea3ece1ef0687829b8b81632cb5a87db6df1d2383 /uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java
parent3ecc805eff05fd8ba905890d0c90c07421d2172b (diff)
downloadvaadin-framework-d5860be5b6043c9b6f9a1b5b1550b1666af2d6ef.tar.gz
vaadin-framework-d5860be5b6043c9b6f9a1b5b1550b1666af2d6ef.zip
Use headerCaption as default hidingToggleCaption (#18028)
Change-Id: Ifaf288da98d6d1d1c02760784b832cb5b5d93c07
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java
index ecf3d53385..ef51cdf446 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java
@@ -908,6 +908,18 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> {
}
}, null, c);
+ createClickAction("Change header caption", getColumnProperty(c),
+ new Command<Grid, String>() {
+ int count = 0;
+
+ @Override
+ public void execute(Grid grid, String value, Object data) {
+ final String columnProperty = getColumnProperty((Integer) data);
+ grid.getColumn(columnProperty).setHeaderCaption(
+ columnProperty + " header " + count++);
+ }
+ }, null, c);
+
createCategory("Column " + c + " Width", getColumnProperty(c));
createClickAction("Auto", "Column " + c + " Width",