From 6214afcd5ff1c82f62ac2d1c56ff455f0e15b3c4 Mon Sep 17 00:00:00 2001 From: Marcus Hellberg Date: Mon, 29 Aug 2016 12:52:00 -0700 Subject: Fixed event name to match example code Change-Id: Id9333bae30c7bf5c24dcd0aca1cbee671c28910e --- documentation/datamodel/datamodel-fields.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'documentation/datamodel') diff --git a/documentation/datamodel/datamodel-fields.asciidoc b/documentation/datamodel/datamodel-fields.asciidoc index f6d1530420..651def13a6 100644 --- a/documentation/datamodel/datamodel-fields.asciidoc +++ b/documentation/datamodel/datamodel-fields.asciidoc @@ -35,7 +35,7 @@ By listening to the event, we can find out the new value of the field and whethe [source,java] ---- TextField nameField = new TextField("Enter your name"); -nameField.addValueChangeListener(clickEvent -> { +nameField.addValueChangeListener(event -> { String origin = event.isUserOriginated() ? "by the user" : "from code"; -- cgit v1.2.3