< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/cell/MapValueFactory.java

Print this page

        

@@ -47,17 +47,17 @@
  * for use within the {@link TableColumn}
  * {@link TableColumn#cellValueFactoryProperty() cell value factory}. An example
  * of how to use this class is:
  *
  * <pre><code>
- * ObservableList<Map> personsMapList = ...
+ * {@literal ObservableList<Map> personsMapList = ...
  *
- * TableColumn&lt;Map, String&gt; firstNameColumn = new TableColumn&lt;Map, String&gt;("First Name");
- * firstNameColumn.setCellValueFactory(new MapValueFactory&lt;String&gt;("firstName"));
+ * TableColumn<Map, String> firstNameColumn = new TableColumn<Map, String>("First Name");
+ * firstNameColumn.setCellValueFactory(new MapValueFactory<String>("firstName"));
  *
  * TableView<Map> table = new TableView<Map>(personMapList);
- * tableView.getColumns().setAll(firstNameColumn);
+ * tableView.getColumns().setAll(firstNameColumn);}
  * </code></pre>
  *
  * <p>In this example, there is a list of Map instances, where each Map instance
  * representsa single row in the TableView. The "firstName" string is used as a
  * key into this map, and the value corresponding to this key is returned, if
< prev index next >