Package 

Class TableView


  • 
    public class TableView<T extends Object>
    extends UIComponent
                        

    A TableView may be used to visualize a data table.

    The items list is used as the data model. The columns list defines how the data is represented.

    Simplified example on how the columns list is used to represent the data:

    items: 1, 2, 3

    columns: ("first", {x -> x+1}, 10),

        ("second", {x -> "nice string " + x}, 14),
    
        ("third", {x -> "" + x*x + "!"}, 10)

    Representation:

    |first |second |third |

    |----------|--------------|----------|

    |2 |nice string 1 |1! |

    |3 |nice string 2 |4! |

    |4 |nice string 3 |9! |