< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/cell/MapValueFactory.java
Print this page
*** 47,63 ****
* 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 = ...
*
! * 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);
* </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
--- 47,63 ----
* for use within the {@link TableColumn}
* {@link TableColumn#cellValueFactoryProperty() cell value factory}. An example
* of how to use this class is:
*
* <pre><code>
! * {@literal ObservableList<Map> personsMapList = ...
*
! * 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);}
* </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 >